January 2018
Intermediate to advanced
434 pages
14h 1m
English
Using RxJava with Retrofit is quite simple; let's take a look at the following steps:
Retrofit.Builder() .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .client(okHttpClient) .baseUrl(AppConstants.INSTAGRAM_BASE_URL) .build()
interface InstagramApiService { @FormUrlEncoded @POST("oauth/authorize") fun getRedirectCode(@Field("client_id") client_id: String, @Field("redirect_uri") redirect_uri: String, ...Read now
Unlock full access