REST API - How can get contact with contact folder

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
eggeggeg
Posts: 1
Joined: Tue Apr 06, 2021 6:00 am

REST API - How can get contact with contact folder

Postby eggeggeg » Tue Apr 06, 2021 6:14 am

I want to get all Contacts with all contacts folder

my contacts folder is

contacts
contacts/111
contacts/222

I can use the following to get contacts, but the contacts of 111 and 222 cannot get

Code: Select all

curl -k 'https://localhost:7071/home/user6@labtest.com/Contacts?fmt=json?auth=qp&zauthtoken=xxxxx'


I have to do this to get

Code: Select all

curl -k 'https://localhost:7071/home/user6@labtest.com/Contacts/111?fmt=json?auth=qp&zauthtoken=xxxxx'
curl -k 'https://localhost:7071/home/user6@labtest.com/Contacts/222?fmt=json?auth=qp&zauthtoken=xxxxx'


I tried this method but it doesn't work

Code: Select all

curl -k 'https://localhost:7071/home/user6@labtest.com/Contacts?query=under:Contacts&fmt=json?auth=qp&zauthtoken=xxxxx'


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 3 guests