If you don't find an answer, please click here to post your question.
Reply
Occasional Collector
Posts: 3
Registered: ‎05-10-2017

Live REST Api with Javascript

Good afternoon,

I'm doing one dashboard with Javascritpt to show me my running channels in one sight, but I'm having problems retrieving the JSON that is provided with https://live.ooyala.com/v3/channels. Do you have more documentation about this API?

Thanks.

Occasional Collector
Posts: 3
Registered: ‎05-10-2017

Re: Live REST Api with Javascript

Update:

I'm doing it in a web application, in the same browser I'm logged with the Ooyala account, and I think the problem is in the session cookie or the access allow origin.

Thanks again.

Ooyalan
Posts: 22
Registered: ‎01-03-2017

Re: Live REST Api with Javascript

Hi Klaussius,

 

Here you can find more documentation of the LIVE API
https://apidocs.ooyala.com/live_api/index.html

 

What you can try is to use our ScratchPad: https://api.ooyala.com/docs/api_scratchpad

You just need to put your API Key and Secret key. Those you can get them from Backlot in Account -> Developer

 

Regards,
Ooyala Technical Support.

Occasional Collector
Posts: 3
Registered: ‎05-10-2017

Re: Live REST Api with Javascript

[ Edited ]

Thanks for your answer,

 

What I'm trying to do is a get on /v3/channels, but I have as response 'unknown request' in the scratchpad, also using my Backlot credentials. I also see in the scratchpad that I'm calling api.ooyala.com instead of live.ooyala.com/v3.

Is there a way to do that http request using cURL?

 

I also noticed that changing on the query "api" and using "live" I have a JSON as answer.

 

Thanks very much.

Highlighted
Ooyalan
Posts: 22
Registered: ‎01-03-2017

Re: Live REST Api with Javascript

Hi,

 

Correct, scratchpad is using api.ooyala and not live.ooyala

In order to do so, you will need to generate your own script to generate the signature. Or use that method, run the API on scratchpad and change "live" instead of "api".

 

Here is how to generate the signature: http://help.ooyala.com/video-platform/tasks/api_signing_requests.html

 

Yes, It is possible via cURL or via postman but as I mentioned. You need to generate your signing request.