Roku Developer Program

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

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
Level 8

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.