vznzj7
10 years agoVisitor
Device Linking using InstantTV for Channel Creation
I am using InstantTV for creating my channel. It was cool up until this point wherein I have to link my Channel to the Roku devices.
I was able to get the authorisation code in the TV (which in turn generates the registration xml file in my S3 bucket). However I dont have the server side code to validate the code and generate an response so that users can be linked.
The PHP code that they provided creates 2 xml files, one for linking and another for adding the user. here are the 2 sample files. Even if I upload these 2 files manually into my amazon buckets, that still doesnt work.
Linking.xml
=================
<?xml version="1.0" ?>
<linkResponse>
<status>success</status>
<deviceID>xxxxx</deviceID>
<customerID>xxxx</customerID>
<customerEmail>xxx</customerEmail>
<creationTime>2015-08-11T17:36:01.666Z</creationTime>
<command>Activate</command>
</linkResponse>
Account.xml
==================
<?xml version="1.0" ?>
<account>
<tokens>
<token>xxxxx</token>
<deviceID>xxx</deviceID>
<deviceTypeID>xxx</deviceTypeID>
<firmwareVersion>xxx</firmwareVersion>
<requestTime>2015-08-11T17:36:01.666Z</requestTime>
</tokens>
<maximumDevices/>
<customerEmail>xxxx</customerEmail>
<creationTime>2015-08-11T17:36:01.666Z</creationTime>
</account>
There are no sample server side code available anywhere to do this coding for the PHP. Got little lost. InstantTV support is also not forthcoming on how to set this up. Any guidance would definitely helpful.
I just need to know once the user enters the code in the website, What happens on the backhand, what are the files generated? how should those file be stored in the amazon bucket?
I was able to get the authorisation code in the TV (which in turn generates the registration xml file in my S3 bucket). However I dont have the server side code to validate the code and generate an response so that users can be linked.
The PHP code that they provided creates 2 xml files, one for linking and another for adding the user. here are the 2 sample files. Even if I upload these 2 files manually into my amazon buckets, that still doesnt work.
Linking.xml
=================
<?xml version="1.0" ?>
<linkResponse>
<status>success</status>
<deviceID>xxxxx</deviceID>
<customerID>xxxx</customerID>
<customerEmail>xxx</customerEmail>
<creationTime>2015-08-11T17:36:01.666Z</creationTime>
<command>Activate</command>
</linkResponse>
Account.xml
==================
<?xml version="1.0" ?>
<account>
<tokens>
<token>xxxxx</token>
<deviceID>xxx</deviceID>
<deviceTypeID>xxx</deviceTypeID>
<firmwareVersion>xxx</firmwareVersion>
<requestTime>2015-08-11T17:36:01.666Z</requestTime>
</tokens>
<maximumDevices/>
<customerEmail>xxxx</customerEmail>
<creationTime>2015-08-11T17:36:01.666Z</creationTime>
</account>
There are no sample server side code available anywhere to do this coding for the PHP. Got little lost. InstantTV support is also not forthcoming on how to set this up. Any guidance would definitely helpful.
I just need to know once the user enters the code in the website, What happens on the backhand, what are the files generated? how should those file be stored in the amazon bucket?