Package com.xero.api.client
Class IdentityApi
java.lang.Object
com.xero.api.client.IdentityApi
IdentityApi has methods for interacting with all endpoints in the API set
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert intput to byte arrayvoiddeleteConnection(String accessToken, UUID id) Deletes a connection for this user (i.e.com.google.api.client.http.HttpResponsedeleteConnectionForHttpResponse(String accessToken, UUID id) Deletes a connection for this user (i.e.get ApiClientgetConnections(String accessToken, UUID authEventId) Retrieves the connections for this user Override the base server url that include versioncom.google.api.client.http.HttpResponsegetConnectionsForHttpResponse(String accessToken, UUID authEventId) Retrieves the connections for this user Override the base server url that include versionstatic IdentityApigetInstance(ApiClient apiClient) IdentityApi getInstanceget user agentvoidsetApiClient(ApiClient apiClient) set ApiClientvoidsetUserAgent(String userAgent) set user agent
-
Constructor Details
-
IdentityApi
public IdentityApi()IdentityApi -
IdentityApi
IdentityApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Details
-
getInstance
IdentityApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
-
setApiClient
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
-
deleteConnection
Deletes 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:
accessToken- Authorization token for user set in header of each requestid- Unique identifier for retrieving single object- 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 Deletes 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:
accessToken- Authorization token for user set in header of each requestid- Unique identifier for retrieving single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getConnections
Retrieves 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:
accessToken- Authorization token for user set in header of each requestauthEventId- Filter by authEventId- 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 Retrieves 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:
accessToken- Authorization token for user set in header of each requestauthEventId- Filter by authEventId- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
convert intput to byte array- Parameters:
is- InputStream the server status code returned- Returns:
- byteArrayInputStream a ByteArrayInputStream
- Throws:
IOException- for failed or interrupted I/O operations
-