Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmo
Newbie

How to extract data from Roku by using Web serviecs API

Hi

I'm looking for help, i'm trying to extraction of data (billing, etc.) by using my API key,  i read the doc but don't understand how to do a REST API and how to fill information at the endpoint Url

Any information will be useful

0 Kudos
1 REPLY 1
chaklasiyanikun
Roku Guru

Re: How to extract data from Roku by using Web serviecs API

I don't know what you are doing exactly. I pick one extraction of data 

'Make API call to get detailed metadata for each channel
'Here also use Foreach loop for multiple API call
        ch = "APILink" 'Here File Call From Server
        rxfer.SetUrl(ch)
        raw = rxfer.GetToString()        
        channelJSON = ParseJSON(raw)
        ' create a node for the channel and set its metadata fields
        channelNode = CreateObject("roSGNode", "ContentNode")
        channelNode.title = channelJSON.JSONField ' Here you write JSON Field name
        channelNode.hdposterurl = channelJSON.JSONField

Here the REST API Documentation.  Here the question of  JSON parsing using Brightscript for Roku app

Here.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.