XIBO API data access issue

Asked by Jayakanthan

Hi,
I installed xibo-server-160 locally and working fine. I am creating a Javascript application as client to interact with the server. I am trying to connect to server using oauth technology using jQuery. I can able to communicate with server and can create a oauth_token. Below the parameters I could able to generate.
oauth_consumer_key
oauth_nonce
oauth_signature
oauth_signature_method
oauth_timestamp
oauth_token

And finally I am trying to get Rest Data and trying to get data for following URL.

http://ip/xibo-server-160/services.php?service=rest&method=version&response=json

But I don't get response data, below what I see in the Browser Console NET tab ( FireBug)

Response Headers :-
Connection close
Content-Length 0
Content-Type text/html
Date Tue, 04 Mar 2014 03:44:22 GMT
Server Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8y DAV/2 PHP/5.4.10
X-Powered-By PHP/5.4.10
X-XRDS-Location http://10.1.128.50:81/xibo-server-160/services.php/service.php?xrds

Request Headers :
Accept */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Authorization OAuth realm="",oauth_consumer_key="0f3b016034a30d5826f06897465f3e04053147020",oauth_signature_method="HMAC-SHA1",oauth_token="ae0b9aab55d88d0250027ee9b14737d9053153511",oauth_timestamp="1393904662",oauth_nonce="c5NRrX",oauth_signature="zE7hfb02J%2F%2FAck4eZY5ANoxt2tM%3D"
Cache-Control max-age=0
Connection keep-alive
Cookie PHPSESSID=6cecde6f5b77a685483cdf866a1a34c8
Host 10.1.128.50:81
Referer http://10.1.128.50:81/dsignage-v1/1.ds1.0/index.html
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0
X-Requested-With
--------
But returning error to $.ajax error callback function with following error codes
readyState=4
responseText=""
status="error"

I feel like almost reached and suffering to solve to get REST Data

Please help

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jayakanthan (jklanka) said :
#1

Please help on this. Do I need to pass any more header with this to get data. with the GET Request.

Revision history for this message
Alex Harrington (alexharrington) said :
#2

JSON responses aren't supported on the API - only XML at the moment.

Please see the docs which do state that.
http://xibo.org.uk/manual/index.php?toc=developer_api&p=admin/api_methods

Can you help with this problem?

Provide an answer of your own, or ask Jayakanthan for more information if necessary.

To post a message you must log in.