joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016
11:29 AM
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?
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
2 REPLIES 2
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016
11:43 AM
Re: Deep Linking from within app - how?
Duh. Needs to be a "POST" not a "GET" - working now, thanks all!!!
aspiring
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016
02:44 PM
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