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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sj_dev
Binge Watcher

Create requests and make api call

There are multiple requests in the application.

For each API there are different headers, params, content type, url etc which needs to be created and pass to rourltransfer

 

Also before each API we need to check IF cookies and token are valid or not. If not valid we need to first make a cookie refresh API call, after success we proceed with the actual requests

 

Please let me know if there is any standard way of doing the same?

 

Can we have some kind of inheritance for doing the same?

 

 

0 Kudos