zimbra-api / soap-api

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

Hi, Can i use this as sign in service with zimbra's account ? #1

Closed teknosains closed 8 years ago

teknosains commented 10 years ago

I meant to make a single-sign-on service with zimbra email, can use this class ?

teknosains commented 10 years ago

I test it and got error

Parse error: syntax error, unexpected 'instance' (T_STRING), expecting variable (T_VARIABLE) or '$'

at this line

$api = new \Zimbra\AdminFactory::instance('https://dcdc.mydomain.net:7071/');

xrevenge commented 9 years ago

Hello,

I have the same problem. I can not use zimbra-api projetc.

Any ideaa?

Setitch commented 9 years ago

I fixed it using

    $js = new \Zimbra\Enum\RequestFormat('js');
    $api = new \Zimbra\Admin\Http('https://mailrelayserver.com/service/soap/', $js);

As for some reason the code provided in ,,tutorial'' was not working for me either.