Package com.xero.api.client
Class IdentityApi
- java.lang.Object
-
- com.xero.api.client.IdentityApi
-
public class IdentityApi extends Object
IdentityApi has methods for interacting with all endpoints in the API set
-
-
Constructor Summary
Constructors Constructor Description IdentityApi()IdentityApiIdentityApi(ApiClient apiClient)IdentityApi
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)convert 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.ApiClientgetApiClient()get ApiClientList<Connection>getConnections(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 getInstanceStringgetUserAgent()get user agentvoidsetApiClient(ApiClient apiClient)set ApiClientvoidsetUserAgent(String userAgent)set user agent
-
-
-
Constructor Detail
-
IdentityApi
public IdentityApi()
IdentityApi
-
IdentityApi
public IdentityApi(ApiClient apiClient)
IdentityApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Detail
-
getInstance
public static IdentityApi getInstance(ApiClient apiClient)
IdentityApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
public ApiClient getApiClient()
get ApiClient- Returns:
- apiClient the current ApiClient
-
setApiClient
public void setApiClient(ApiClient apiClient)
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
public void setUserAgent(String userAgent)
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
public String getUserAgent()
get user agent- Returns:
- String of user agent
-
deleteConnection
public void deleteConnection(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:
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
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:
id- Unique identifier for retrieving single objectaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getConnections
public List<Connection> getConnections(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:
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
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:
authEventId- Filter by authEventIdaccessToken- Authorization token for user set in header of each request- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
public ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
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
-
-