REST API using Zend Framework
REST API using Zend Framework
Has anyone attempted to use REST in order to consume data from ServiceDesk?
Here's a sample of how I'd expect the syntax to go:
$client = new Zend_Rest_Client('http://192.168.1.1/sdpapi/request/');
$data = array('TECHNICIAN_KEY' => '89921878-F6A9-48B7-9676-4F8816EEC6E5',
'OPERATION_NAME' => 'GET_REQUEST');
$result = $client->restPost('/sdpapi/request/9567', $data);
echo $result;
Running this returns the following XML:
<operation name="GET_REQUEST">
<result>
<status>Failed</status>
<message>Error when performing required operation.</message>
</result>
</operation>
Can anyone help point me in the right direction?