public class IdentityApi extends Object
| Constructor and Description |
|---|
IdentityApi() |
IdentityApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayInputStream |
convertInputToByteArray(InputStream is) |
void |
deleteConnection(String accessToken,
UUID id)
Allows you to delete a connection for this user (i.e.
|
com.google.api.client.http.HttpResponse |
deleteConnectionForHttpResponse(String accessToken,
UUID id) |
ApiClient |
getApiClient() |
List<Connection> |
getConnections(String accessToken)
Allows you to retrieve the connections for this user
Override the base server url that include version
|
com.google.api.client.http.HttpResponse |
getConnectionsForHttpResponse(String accessToken) |
static IdentityApi |
getInstance(ApiClient apiClient) |
String |
getUserAgent() |
void |
setApiClient(ApiClient apiClient) |
void |
setUserAgent(String userAgent) |
public IdentityApi()
public IdentityApi(ApiClient apiClient)
public static IdentityApi getInstance(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void setUserAgent(String userAgent)
public String getUserAgent()
public void deleteConnection(String accessToken, UUID id) throws IOException
204 - Success - connection has been deleted no content returned
404 - Resource not found
id - Unique identifier for retrieving single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteConnectionForHttpResponse(String accessToken, UUID id) throws IOException
IOExceptionpublic List<Connection> getConnections(String accessToken) throws IOException
200 - Success - return response of type Connections array with 0 to n Connection
accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getConnectionsForHttpResponse(String accessToken) throws IOException
IOExceptionpublic ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
IOExceptionCopyright © 2020. All rights reserved.