Open
Description
I've got a situation where I need to log in and then fetch useful data. Unfortunately, the login is via a form and the site times out pretty fast. Therefore, I'd need to perform two (or more) calls in sequence (i.e. make sure the login call finished before executing the second one). So far I came with 2 variants:
- enqueue the second call from within the
onResponse()
of the first one - Use Observables with map()
Is there an advised approach for this?
PS: Also on SO.