"destruk" wrote:
Thanks for that - It would still be a good idea to include that information in the DeviceRegistrationAndLinking.pdf. That uses the serial number during the linking process, which RokuKevin said to not do. "We do not advise linking via serial number and will ask you to change it if detected when you publish your channel." Linking can be done without using a serial number, it's just more of a pain in the butt.
He's saying not to use the serial number as the actual link. You
can use it to identify for linking. In fact, the example in the DeviceRegistrationAndLinking.pdf actually uses it, but it's used to generate a separate unique identifier for the actual link that gets stored on the box and your server.
Note in the below example XML, the "deviceID"/serial number is sent in with the request, but a new "deviceToken" is generated and returned. That "deviceToken" is what should be used for future authentication/identification with the server.
Request
<linkAccount>
<regCode> (current registration code from PreRegistration request) </regCode>
<deviceID> (unique id/serial number for the device) </deviceID>
<deviceTypeID>(opaque string identifying device type) </deviceTypeID>
</linkAccount>
Response
<result>
<status> success/failure </status>
<deviceToken> (opaque encrypted string for future requests) </deviceToken>
<customerId> (optional customer ID if required by partner) </customerId>
<creationTime> (optional ISO8601 date/time value) </creationTime>
</result>
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)