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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

Get request to fetch data

I have made a keyboard where users can search, and there are two buttons to search images and the search feed. When a user writes something and clicks on any button, I want to search that user-typed query, I have to make a get request to a backend to get data, but this is not succeeding, this API call is succeeding if I write this in source/main.brs just for testing.

Below my code pictures you can check

Please help me, I am stucked here, tell me what I am missing, or any resource where can I read this thing clearly


0 Kudos
Channel Surfer

Re: Get request to fetch data

You need to use a task to make network calls you can’t do them in your ui components. 

Here is the documentation and they have a small sample of using one to load grid content.