Class IdentityApi

java.lang.Object
com.xero.api.client.IdentityApi

public class IdentityApi
extends Object
  • Constructor Details

    • IdentityApi

      public IdentityApi()
    • IdentityApi

      public IdentityApi​(ApiClient apiClient)
  • Method Details

    • getInstance

      public static IdentityApi getInstance​(ApiClient apiClient)
    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
    • setUserAgent

      public void setUserAgent​(String userAgent)
    • getUserAgent

      public String getUserAgent()
    • deleteConnection

      public void deleteConnection​(String accessToken, UUID id) throws IOException
      Allows you to delete a connection for this user (i.e. disconnect a tenant) Override the base server url that include version

      204 - Success - connection has been deleted no content returned

      404 - Resource not found

      Parameters:
      id - Unique identifier for retrieving single object
      accessToken - 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

      public List<Connection> getConnections​(String accessToken, UUID authEventId) throws IOException
      Allows you to retrieve the connections for this user Override the base server url that include version

      200 - Success - return response of type Connections array with 0 to n Connection

      Parameters:
      authEventId - Filter by authEventId
      accessToken - 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

      public ByteArrayInputStream convertInputToByteArray​(InputStream is) throws IOException
      Throws:
      IOException