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

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 2
RokuMarkn
Visitor

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
Visitor

Re: Deep Linking with mediaType

Blast, good catch. Thanks!
0 Kudos