use of io.plaidapp.data.api.ClientAuthInterceptor in project plaid by nickbutcher.
the class DesignerNewsPrefs method createApi.
private void createApi() {
final OkHttpClient client = new OkHttpClient.Builder().addInterceptor(new ClientAuthInterceptor(accessToken, BuildConfig.DESIGNER_NEWS_CLIENT_ID)).build();
final Gson gson = new Gson();
api = new Retrofit.Builder().baseUrl(DesignerNewsService.ENDPOINT).client(client).addConverterFactory(new DenvelopingConverter(gson)).addConverterFactory(GsonConverterFactory.create(gson)).build().create(DesignerNewsService.class);
}
Aggregations