sj_dev
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020
09:28 AM
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?