Results 1 to 4 of 4

Thread: zimbra contacts in php

  1. #1
    ayahuasca1986 is offline Starter Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    6

    Default zimbra contacts in php

    Hello,
    First of all, i am new to zimbra and i am very interested in what it could mean to me.

    I am trying to get my contacts from zimbra in my php website.
    I have seen the option to share your contactbook but this way i get a csv with the contacts but without an identifying field. So i was trying to connect using ldap. With ldap you actually don't get the adres book but the GAL. Is there a way to get the adresbook trough ldap?

    Next thing i was trying to do is to get information trough SOAP.

    Is SOAP the correct way to get the contacts from zimbra?

    Thanks for the answers.

  2. #2
    ljm
    ljm is offline Project Contributor
    Join Date
    May 2006
    Posts
    81
    Rep Power
    9

    Default

    A users' addressbook isn't exposed via ldap.

    Assuming you want a users's addressbook and not GAL, the options are:

    • use SOAP - if you search for "PHP SOAP" here on the forums you will get a sense of what is involved
    • use the REST API to get the addressbook as a .csv
      This is probably the least work to implement, because it is a simple http GET and then .csv parsing.
    Zindus - contact sync for Thunderbird and Zimbra

  3. #3
    ayahuasca1986 is offline Starter Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    6

    Default

    Quote Originally Posted by ljm View Post
    A users' addressbook isn't exposed via ldap.

    Assuming you want a users's addressbook and not GAL, the options are:

    • use SOAP - if you search for "PHP SOAP" here on the forums you will get a sense of what is involved
    • use the REST API to get the addressbook as a .csv
      This is probably the least work to implement, because it is a simple http GET and then .csv parsing.
    I don't mean the GAL indeed. i have been looking at these .csv but the first thing i noticed is: you don't get an identifier. If i want to use this list in another system, and the name of a person changes, i can't see it was the same person. I think i have to take a better look al SOAP. Thanks for your answer.

  4. #4
    timow is offline New Member
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    6

    Default

    Hi,

    I would still prefer the REST API. This is much easier than SOAP.
    You don't have to use csv as output. Indead within PHP it would be much easier to use either xml or json. With json you can use json_decode and then you have all your contacts in a array. Both formats include IDs that you cab use to identify the entries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 02-25-2008, 07:28 PM
  2. Replies: 22
    Last Post: 12-02-2007, 05:05 PM
  3. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM
  4. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM
  5. port 7071 not listening OS X install
    By leeimber in forum Installation
    Replies: 7
    Last Post: 03-21-2006, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •