Results 1 to 5 of 5

Thread: zimbra PHP-SOAP API (with GET Params)

  1. #1
    gunthor is offline Junior Member
    Join Date
    May 2010
    Posts
    7
    Rep Power
    5

    Default zimbra PHP-SOAP API (with GET Params)

    I've made a simple API to controll zimbra with for PHP or even GET params. It isn't full ready or tested yet, but the main tasks works fine now. Maybe the one or other want to extend, test or improve it (or translate it, currently its written and commented in German...)

    theres also no authentification now (e.g. md5), only an restriction for local Ip's.

    so long, have fun

    Günther

    p.s.: you shouldn't forget .htaccess
    Attached Files Attached Files

  2. #2
    stiller is offline Partner (VAR/HSP)
    Join Date
    May 2008
    Posts
    92
    Rep Power
    7

    Default excellent

    Excellent work. How does this relate to the PHP class in the sticky?

    @Moderators: Perhaps make this a sticky as well?

    @Zimbra: Considering the amount of work and discussions concerning PHP/Perl/Other classes for zimbra SOAP/REST communication, perhaps it would be a good idea to collect those in a wiki, documenting the differences, improvements, problems, etc. If that hasn't been done already.

    Delivering a complete SDK with these classes would be even better of course. This would greatly reduce the learning curve for new developers.
    Snelbij | Uw informatie ter beschikking.
    https://www.snelbij.nl

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Quote Originally Posted by stiller View Post
    Excellent work. How does this relate to the PHP class in the sticky?

    @Moderators: Perhaps make this a sticky as well?
    It should go in the wiki, it's a Community resource and is available to anyone to add their information to it.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    gunthor is offline Junior Member
    Join Date
    May 2010
    Posts
    7
    Rep Power
    5

    Default

    yep, the documentation has to be done, unfortunately i've no time at the moment... a documentation is written once, but read oft-times...

    a short introduction can I give you now:

    $zimbraction=new zimbraaction(); (also not named in convention, as i see now... ) is the controller for the actions, coded in the GET-cmd string. In his constructor, it makes an instance of ZimbraSoap API $this->z=new zimbraSoapApi().

    The controller has this main functions:

    $zimbraction->dofixedarglength($cmd, $cmdarray);
    $zimbraction->dovararglength($cmd, $cmdarray);

    for admin controlls (admin get logged in), segmented for defined params, and dynamical params (afterward i see, it's not well structured! there is much to rework!)

    $zimbraction->douserfixargs($cmd, $cmdarray);
    for actions, which the user must do (e.g. search folder or something). the user get preAuth.

    $zimbraction->getnewmails($cmd, $cmdarray);$zimbraction->cal($cmd, $cmdarray); $zimbraction->newmsg($cmd, $cmdarray);
    => user functions, which aren't ready now, but working fine. they must be adjust and extend for useful working.

    zimbraSoapApi:

    divided into 3 main parts: admin, user and upload actions. The user/admin get automatically logged on; it uses the cached auth-tokens and times. If they are out of time or incorrect, they get renewed. The pear XML-serializer makes an array out of the xml response.

    Upload is developed with curl. An image with web-url get uploaded into a local directory.

    hope, you could help me to make it much more usable!

    regards

    gunthor

  5. #5
    gunthor is offline Junior Member
    Join Date
    May 2010
    Posts
    7
    Rep Power
    5

    Default Update

    Hi,

    i tried to structure the SOAP Kit and modulize it, so that it can be extended easily.
    It's quite easier as before, and no there is also a Shell-feature, where zmpov commands (or all other linux commands) can be used.

    I also began to documentate the whole thing in english.

    Not ready yet, but maybe you can give me feedback or improve/add some sections. At the moment I try to improve the error handling and logging classes....

    It would be great, if you'll get part of this project!

    gunthor's zimbraControl at gunthor - GitHub

    so long, enjoy life


    Günther
    Attached Files Attached Files
    Last edited by gunthor; 07-07-2010 at 05:09 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 15
    Last Post: 11-24-2009, 08:46 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. /tmp filling
    By Nutz in forum Administrators
    Replies: 8
    Last Post: 02-22-2008, 02:00 AM
  4. Replies: 31
    Last Post: 12-15-2007, 09:05 PM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 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
  •