Package com.xero.api.client
Class IdentityApi
java.lang.Object
com.xero.api.client.IdentityApi
public class IdentityApi extends Object
-
Constructor Summary
Constructors Constructor Description IdentityApi()IdentityApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)voiddeleteConnection(String accessToken, UUID id)Allows you to delete a connection for this user (i.e.com.google.api.client.http.HttpResponsedeleteConnectionForHttpResponse(String accessToken, UUID id)ApiClientgetApiClient()List<Connection>getConnections(String accessToken, UUID authEventId)Allows you to retrieve the connections for this user Override the base server url that include versioncom.google.api.client.http.HttpResponsegetConnectionsForHttpResponse(String accessToken, UUID authEventId)static IdentityApigetInstance(ApiClient apiClient)StringgetUserAgent()voidsetApiClient(ApiClient apiClient)voidsetUserAgent(String userAgent)
-
Constructor Details
-
IdentityApi
public IdentityApi() -
IdentityApi
-
-
Method Details
-
getInstance
-
getApiClient
-
setApiClient
-
setUserAgent
-
getUserAgent
-
deleteConnection
Allows you to delete a connection for this user (i.e. disconnect a tenant) Override the base server url that include version204 - Success - connection has been deleted no content returned
404 - Resource not found
- Parameters:
id- Unique identifier for retrieving single objectaccessToken- Authorization token for user set in header of each request- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteConnectionForHttpResponse
public com.google.api.client.http.HttpResponse deleteConnectionForHttpResponse(String accessToken, UUID id) throws IOException- Throws:
IOException
-
getConnections
Allows you to retrieve the connections for this user Override the base server url that include version200 - Success - return response of type Connections array with 0 to n Connection
- Parameters:
authEventId- Filter by authEventIdaccessToken- Authorization token for user set in header of each request- Returns:
- List<Connection>
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getConnectionsForHttpResponse
public com.google.api.client.http.HttpResponse getConnectionsForHttpResponse(String accessToken, UUID authEventId) throws IOException- Throws:
IOException
-
convertInputToByteArray
- Throws:
IOException
-