3
I make a call to recover some data and the second call - which should be made inside the first one - uses one of the fields of the previous call.
val restApi = retrofit.create(RestAPI::class.java)
testAPI.searchDoc("language", "title_query")
        .subscribeOn(Schedulers.io())
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe { p0 ->
             /** É aqui onde eu quero recuperar os dados de p0 e com eles fazer 
                 a segunda chamada. **/
            }
        }
As I use one of the fields of the first call to make the second? I am using Kotlin and working with Rxjava.
Short question: How I use the recovered data in the first call to make the second one within Rxandroid?