|
PHP Sample API Code
This is using PHP5 using the built in SOAP extension. Make sure you have SOAP extension installed.
ini_set("soap.wsdl_cache_enabled", "0");
$client = new SoapClient("http://api.centraldesktop.com/soap/v0.1.alpha/CentralDesktopCompany.wsdl");
try {
print_r(
$client->GetWorkspaces(
'yourcompanyapikey',
'yourcompanyguid'
)
);
} catch (SoapFault $exception) {
echo $exception;
}
|
