Your Digital Media Has Never Looked So Good

Search found 5 matches

by mitchr181
Sat Jun 08, 2019 9:02 am
Forum: Roku Developer Program
Topic: SetURL Not Setting URL
Replies: 5
Views: 493

Re: SetURL Not Setting URL

plreq.gettofile("tmp:/" + channel) code = readasciifile("tmp:/" + channel) Brightscript Debugger> p code Brightscript Debugger>  Still nothing. Even though I'm using an old API, I don't think that's contributing to this problem. Even if the API was dead, I should still be able t...
by mitchr181
Sat Jun 08, 2019 8:27 am
Forum: Roku Developer Program
Topic: SetURL Not Setting URL
Replies: 5
Views: 493

Re: SetURL Not Setting URL

Just tried it, no dice. I also tried plreq.GetToString() just to see if there was any response at all, but the response string was empty and plreq.GetUrl() was also still empty.
code             roString (2.1 was String) refcnt=1 val:""
by mitchr181
Sat Jun 08, 2019 7:52 am
Forum: Roku Developer Program
Topic: SetURL Not Setting URL
Replies: 5
Views: 493

SetURL Not Setting URL

I have this code chunk that does an API request and should save the response to a file, but it doesn't. 'channel' is a String. plReq = CreateObject("roURLTransfer") plReq.AddHeader("Client-ID", *my API key*) plReq.SetURL("https://usher.twitch.tv/api/channel/hls/" + chan...
by mitchr181
Sat Jun 08, 2019 7:48 am
Forum: Roku Developer Program
Topic: String Concatenation
Replies: 3
Views: 447

Re: String Concatenation

Ah I feel like a real idiot, thank you!
by mitchr181
Sat Jun 08, 2019 5:36 am
Forum: Roku Developer Program
Topic: String Concatenation
Replies: 3
Views: 447

String Concatenation

I have this code that builds a URL for doing API requests: Function buildURL(channel As String, token As String, sig As String) as String   Return "https://usher.twitch.tv/api/channel/hls/" + channel + ".m3u8?player=twitchweb&token=" + token + "&sig=" + sig &quo...