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: 
keshavphp
Visitor

how to register the myweb site and roku linking

Dear all
When the user come to my web site and they will regster . After how to send the data to roku. i see in example in doc... it's xml. What is end point on roku like. how to send the data to roku. i konw the php and curl. any one now about this plz let me know.
Request1
<preRegistration>
<deviceID>(unique id/serial number for the device) </deviceID>
<deviceTypeID>(optional opaque string identifying device type) </deviceTypeID>
<firmwareVersion>(optional major.minor.build) </firmwareVersion>
</preRegistration >
Response
<result>
<status> success/failure </status>
<regCode> (small ~5 character code customer will enter onto web site) </regCode>
<retryInterval> (polling interval in secs to detect completion (e.g. 30) </retryInterval>
<retryDuration> (max duration in secs for retries (e.g. 900) ) </retryDuration>
</result>


Please give me Clear idea plz
0 Kudos
3 REPLIES 3
jbrave
Channel Surfer

Re: how to register the myweb site and roku linking

use rourltransfer:

xfer=createobject("roURLTransfer")
xml=createobject("RoXMLElement")
xfer.seturl("http://mywebsite.com/xml")
xmlbody=xfer.GetToString()

if xml.Parse(xmlbody) then
'do your xml processing here
else
print "xml parse failed"
end if

Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
keshavphp
Visitor

Re: how to register the myweb site and roku linking

Thanks for your replay.

where i use this code in roku box or my web site. when the use come to my web site http://www.mywebsite.com/roku he will reigster the web site right so how to pass the data to roku web site.
0 Kudos
RokuKevin
Visitor

Re: how to register the myweb site and roku linking

You website will interact with your user database and produce XML responses like in the sample. The code jbrave listed above is BrightScript that runs on the Roku Streaming Player.

--Kevin
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.