@Component public class OAuth1RetrofitWrapper extends Object
| Constructor and Description |
|---|
OAuth1RetrofitWrapper(okhttp3.OkHttpClient okHttpClient) |
| Modifier and Type | Method and Description |
|---|---|
OAuth1RetrofitWrapper |
baseUrl(String baseUrl)
Method used to set the baseUrl for the requests
|
retrofit2.Retrofit |
build()
Method used to obtain the
Retrofit class used for the API calls |
OAuth1RetrofitWrapper |
sign(String oauthConsumerKey,
String oauthConsumerSecret)
Method used to sign with the given oauthConsumerKey and oauthConsumerSecret
|
@Autowired public OAuth1RetrofitWrapper(okhttp3.OkHttpClient okHttpClient)
public OAuth1RetrofitWrapper baseUrl(String baseUrl)
public OAuth1RetrofitWrapper sign(String oauthConsumerKey, String oauthConsumerSecret)
public retrofit2.Retrofit build()
Retrofit class used for the API callsCopyright © 2021 Pivotal Software, Inc.. All rights reserved.