Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
bbrouse
Level 7

Deep Linking with mediaType

I'm integrating Roku's deep linking functionality into our channel, and am running into a roadblock when I try and test. I want to pass both contentID and mediaType as arguments on channel launch, but I can only get one or the other to successfully pass into the main function.

The docs say that this curl command should do the trick
curl -d '' http://192.168.1.114:8060/launch/dev?contentID=13234


That works fine and dandy if you want to pass just contentID. If you try this:
curl -d '' http://192.168.1.114:8060/launch/dev?contentID=13234&mediaType=series

then it still only passes contentID into main.

I also tried passing the arguments in as POST data, but that doesn't fly:
curl -d 'contentID=13234&mediaType=series' http://192.168.1.114:8060/launch/dev


Am I doing something wrong here?
0 Kudos
2 Replies
RokuMarkn
Level 7

Re: Deep Linking with mediaType

I'm guessing you neglected to quote the URL, which is necessary since most shells interpret the ampersand.

--Mark
0 Kudos
bbrouse
Level 7

Re: Deep Linking with mediaType

Blast, good catch. Thanks!
0 Kudos