zimbra-api / soap-api

Zimbra SOAP client in PHP language
BSD 3-Clause "New" or "Revised" License
63 stars 50 forks source link

Client Api Acces #22

Open xrevenge opened 7 years ago

xrevenge commented 7 years ago

Hello,

Is it possible to access to the non-admin API in order to create/modify tasks for example ?

If not, can i use a part of your code to implement this possibility ?

Thx

IlyasDeckers commented 7 years ago

Something like this

$account = new \Zimbra\Struct\AccountSelector(\Zimbra\Enum\AccountBy::NAME(), 'username');
$api = \Zimbra\Mail\MailFactory::instance('https://localhost/service/soap');
$api->auth($account, 'password');

$api->createTask()

From $api object, you can access to all zimbra mail api.

https://github.com/zimbra-api/mail/blob/master/Tests/Request/CreateTaskTest.php https://github.com/zimbra-api/zimbra-api/issues/11

xrevenge commented 7 years ago

Ok Thx, I'll check that this evening. Sebastien