Package com.ardoq
Class ArdoqClient
java.lang.Object
com.ardoq.ArdoqClient
public class ArdoqClient extends Object
ArdoqClient connects to your Ardoq installation via it's REST-apis.
You can connect with token authentication or username and password.
- Author:
- Erik Bakstad
-
Constructor Summary
Constructors Constructor Description ArdoqClient(String endpoint, String token)Connects to your Ardoq installation with token authentication.ArdoqClient(String endpoint, String token, long connectionTimeoutSeconds, long readTimeoutSeconds)Connects to your Ardoq installation with token authentication.ArdoqClient(String endpoint, String username, String password)Connects to Ardoq with username and password **We Strongly suggest that you connect with a token instead**ArdoqClient(String endpoint, String username, String password, long connectionTimeoutSeconds, long readTimeoutSeconds)Connects to Ardoq with username and password **We Strongly suggest that you connect with a token instead**ArdoqClient(String endpoint, String username, String password, org.apache.http.client.config.RequestConfig defaultRequestConfig)Connects to Ardoq with username and password and a custom request configuration **We Strongly suggest that you connect with a token instead**ArdoqClient(String endpoint, String username, String password, org.apache.http.client.HttpClient client)Connects to Ardoq with username and password, and a custom HTTP client **We Strongly suggest that you connect with a token instead**ArdoqClient(String endpoint, String token, org.apache.http.client.config.RequestConfig defaultRequestConfig)Connects to your Ardoq installation with token authentication and a custom request configuration.ArdoqClient(String endpoint, String token, org.apache.http.client.HttpClient client)Connects to Ardoq with token authentication, and a custom client -
Method Summary
Modifier and Type Method Description AttachmentServiceattachment()BatchServicebatch()ComponentServicecomponent()FieldServicefield()SimpleModelServicemodel()ReferenceServicereference()voidsetLogLevel(retrofit.RestAdapter.LogLevel level)Set log levelArdoqClientsetOrganization(String org)Sets the organization you wish to work on.TagServicetag()WorkspaceServiceworkspace()Creates a workspaceService that allows you to do operations with our Workspace API
-
Constructor Details
-
ArdoqClient
Connects to your Ardoq installation with token authentication.- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)token- The token generated via Profile -> APIS token that you wish to authenticate with
-
ArdoqClient
Connects to Ardoq with token authentication, and a custom client- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)token- The token generated via Profile -> APIS token that you wish to authenticate withclient- pre-instantiated HttpClient
-
ArdoqClient
public ArdoqClient(String endpoint, String token, long connectionTimeoutSeconds, long readTimeoutSeconds)Connects to your Ardoq installation with token authentication.- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)token- The token generated via Profile -> APIS token that you wish to authenticate withconnectionTimeoutSeconds- HttpClient connection timeout in seconds (defaults to 15s)readTimeoutSeconds- HttpClient read timeout in seconds (defaults to 20s)
-
ArdoqClient
public ArdoqClient(String endpoint, String token, org.apache.http.client.config.RequestConfig defaultRequestConfig)Connects to your Ardoq installation with token authentication and a custom request configuration.- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)token- The token generated via Profile -> APIS token that you wish to authenticate withdefaultRequestConfig- User provided org.apache.http.client.config.RequestConfig (for setting i.e. proxy settings etc.)
-
ArdoqClient
Connects to Ardoq with username and password **We Strongly suggest that you connect with a token instead**- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username- Your usernamepassword- Your password
-
ArdoqClient
public ArdoqClient(String endpoint, String username, String password, org.apache.http.client.HttpClient client)Connects to Ardoq with username and password, and a custom HTTP client **We Strongly suggest that you connect with a token instead**- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username- Your usernamepassword- Your passwordclient- pre-instantiated HttpClient
-
ArdoqClient
public ArdoqClient(String endpoint, String username, String password, org.apache.http.client.config.RequestConfig defaultRequestConfig)Connects to Ardoq with username and password and a custom request configuration **We Strongly suggest that you connect with a token instead**- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username- Your usernamepassword- Your passworddefaultRequestConfig- User provided org.apache.http.client.config.RequestConfig (for setting i.e. proxy settings etc.)
-
ArdoqClient
public ArdoqClient(String endpoint, String username, String password, long connectionTimeoutSeconds, long readTimeoutSeconds)Connects to Ardoq with username and password **We Strongly suggest that you connect with a token instead**- Parameters:
endpoint- The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username- Your usernamepassword- Your passwordconnectionTimeoutSeconds- HttpClient connection timeout in seconds (defaults to 15s)readTimeoutSeconds- HttpClient read timeout in seconds (defaults to 20s)
-
-
Method Details
-
setLogLevel
public void setLogLevel(retrofit.RestAdapter.LogLevel level)Set log level- Parameters:
level- log level
-
setOrganization
Sets the organization you wish to work on. If you have a private organization account, please use this!- Parameters:
org- The organization account, default is the global Ardoq account (Personal)- Returns:
- this ArdoqClient
-
workspace
Creates a workspaceService that allows you to do operations with our Workspace API- Returns:
- WorkspaceService
-
component
-
batch
-
reference
-
tag
-
field
-
attachment
-
model
-