public class FodApiConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SIZE |
| Constructor and Description |
|---|
FodApiConnection(String key,
String secret,
String baseUrl,
String apiUrl)
Constructor that encapsulates the apiConnection
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate()
Used for authenticating in the case of a time out using the saved apiConnection credentials.
|
String |
getApiUrl() |
String |
getBaseUrl() |
okhttp3.OkHttpClient |
getClient() |
String |
getKey() |
String |
getSecret() |
String |
getToken() |
void |
retireToken()
Retire the current token.
|
public static final int MAX_SIZE
public void authenticate()
throws IOException
IOExceptionpublic void retireToken()
throws IOException
IOExceptionpublic String getToken()
public String getKey()
public String getSecret()
public String getBaseUrl()
public String getApiUrl()
public okhttp3.OkHttpClient getClient()
Copyright © 2016–2017. All rights reserved.