Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joetesta
Level 11

Deep Linking from within app - how?

Hello -

I'm trying to set up a "deeplink" to launch one app from another.  In my code I'm able to verify the target app in question is installed by using "Instr" on the result returned from
"http://localhost:8060/query/apps"

However when I then try to launch said installed target app, it's not working, returning a '400' error:
"http://localhost:8060/launch/XXXXX" (where XXXX is the actual ID number of the installed target app)
Request Failed: (400)

What am I doing wrong, any suggestions?

        o = CreateObject("roUrlTransfer")
        o.SetUrl("http://localhost:8060/" + action + "/XXXXX")
        result = o.GetToString()
aspiring
0 Kudos
2 REPLIES 2
joetesta
Level 11

Re: Deep Linking from within app - how?

Duh.  Needs to be a "POST" not a "GET" - working now, thanks all!!!
aspiring
0 Kudos
EnTerr
Level 11

Re: Deep Linking from within app - how?

Yes. Rule of thumb in RESTful interfaces - 

  • if you want to get some info (query) - GET it

  • if you want to change state (action) - POST it
0 Kudos