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:

  1.         $client = new Zend_Rest_Client('http://192.168.1.1/sdpapi/request/');

  2.         $data = array('TECHNICIAN_KEY' => '89921878-F6A9-48B7-9676-4F8816EEC6E5',
  3.                       'OPERATION_NAME' => 'GET_REQUEST');

  4.         $result = $client->restPost('/sdpapi/request/9567', $data);

  5.         echo $result;

Running this returns the following XML:

  1. <operation name="GET_REQUEST">
  2. <result>
  3. <status>Failed</status>
  4. <message>Error when performing required operation.</message>
  5. </result>
  6. </operation>

Can anyone help point me in the right direction?

                  New to ADSelfService Plus?