Results 1 to 10 of 10

Thread: zcs-php - yet another PHP SOAP API library

  1. #1
    gionn is offline New Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    3

    Default zcs-php - yet another PHP SOAP API library

    Hi, today we have released an almost-feature-full PHP classes to interact with a Zimbra server via the SOAP API.

    https://github.com/libersoft/zcs-php

    Feedback and patches are welcome.
    Last edited by gionn; 01-23-2012 at 01:45 PM.

  2. #2
    maxxer's Avatar
    maxxer is offline Trained Alumni
    Join Date
    Feb 2009
    Location
    Lecco, Italy
    Posts
    552
    Rep Power
    7

    Default

    Great, I'll give a look soon, thanks!
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  3. #3
    deepblue is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    223
    Rep Power
    9

    Default

    Quote Originally Posted by gionn View Post
    Hi, today we have released an almost-feature-full PHP classes to interact with a Zimbra server via the SOAP API.
    I just gave it a try:

    PHP Code:
    $newAccount $zimbra->createAccount(array(
        
    'name' => 'foo@bar.com',
        
    'password' => 'Strong_Password',
        
    'givenName' => 'John',
        
    'sn' => 'Doe',
      )); 
    I got:

    Code:
    ]PHP Fatal error:  Class 'Account' not found in ZimbraAdmin.php on line 223
    The account was created however... Am I some class definitions missing?

    Regards
    Thomas

  4. #4
    gionn is offline New Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    3

    Default

    Quote Originally Posted by deepblue View Post
    Code:
    ]PHP Fatal error:  Class 'Account' not found in ZimbraAdmin.php on line 223
    The account was created however... Am I some class definitions missing?
    Definitively yes, we have developed this classes for a management interface based on Symfony 1.4, which its autoloader made us forget about model classes.

    I've included those missing classes, you should include them as in the updated README.txt if you aren't already using an autoloader in your project.

    Let me know if you face any other problem.

  5. #5
    14therock is offline Starter Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    3

    Default

    Hi, I was wondering if you're still working on classes/functions for managing and sharing folders/calendars?

    Regards
    Jordy

  6. #6
    gionn is offline New Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    3

    Default

    Currently we aren't working on calendars interactions since we are fine with the currently available functions.

    Patches and pull requests on GH are always welcome.

  7. #7
    14therock is offline Starter Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    3

    Default

    Okay! Maybe you can help me do the following:

    I am a complete beginner in the SOAP API. I have found my way in creating/managing accounts and domains, but this is just a bit too complex for me.

    For a simple application I want to share folders (calendars).

    I've tried a lot(GetFolderRequest, BatchRequest, etc) but I still get the following error:

    SoapFault exception: [soap:Sender] unknown document: ns1:GetFolderRequest in ...

    I hope you know what might cause this error.
    If you want to see the code, I will post it. But I think I'm just forgetting something simple..

  8. #8
    samirfor is offline New Member
    Join Date
    Jul 2011
    Posts
    5
    Rep Power
    4

    Default

    I really thankful for libersoft zcs-php project.

    All I need to know is how to search in the list of accounts for a specific term (ex: "acc" matches with "account@domain.com"), since I can not load all accounts.
    I tried this:

    PHP Code:
    $result $zimbra->getAccounts(array(
            
    'domain' => 'mydomain.com',
            
    'offset' => 0,
            
    'limit' => 100,
    )); 
    But I get this:
    Code:
    An unexpected error has occurred (account.TOO_MANY_SEARCH_RESULTS)
    So that I can do what I want, I got to know some way of sending a request with at least one parameter limiting.

  9. #9
    samirfor is offline New Member
    Join Date
    Jul 2011
    Posts
    5
    Rep Power
    4

    Default

    I really thankful for libersoft zcs-php project.

    All I need to know is how to search in the list of accounts for a specific term (ex: "acc" matches with "account@domain.com"), since I can not load all accounts.
    I tried this:

    PHP Code:
    $result $zimbra->getAccounts(array(
            
    'domain' => 'mydomain.com',
            
    'offset' => 0,
            
    'limit' => 100,
    )); 
    But I get this:
    Code:
    An unexpected error has occurred (account.TOO_MANY_SEARCH_RESULTS)
    So that I can do what I want, I got to know some way of sending a request with at least one parameter limiting.

  10. #10
    gabrielpah is offline Starter Member
    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    1

    Default get email zimbra account

    How can i get the inbox mails about specific account?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 45
    Last Post: 10-11-2012, 12:52 AM
  2. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 01:00 AM
  3. Trouble Sending mail - All Messages deferred!
    By SiteDiscovery in forum Administrators
    Replies: 7
    Last Post: 09-03-2009, 04:52 AM
  4. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 PM
  5. ZCS 3.2 Beta Available
    By KevinH in forum Announcements
    Replies: 31
    Last Post: 07-07-2006, 03:46 PM

Tags for this Thread

Posting Permissions

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