Roku Developer Program

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

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