public class ArdoqClient extends Object
| Constructor and Description |
|---|
ArdoqClient(String endpoint,
String token)
Connects to your Ardoq installation with token authentication.
|
ArdoqClient(String endpoint,
String token,
org.apache.http.client.HttpClient client)
Connects to Ardoq with token authentication, and a custom client
|
ArdoqClient(String endpoint,
String token,
long connectionTimeoutSeconds,
long readTimeoutSeconds)
Connects to your Ardoq installation with token authentication.
|
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 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,
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 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**
|
| Modifier and Type | Method and Description |
|---|---|
AttachmentService |
attachment() |
BatchService |
batch() |
ComponentService |
component() |
FieldService |
field() |
SimpleModelService |
model() |
ReferenceService |
reference() |
void |
setLogLevel(retrofit.RestAdapter.LogLevel level)
Set log level
|
ArdoqClient |
setOrganization(String org)
Sets the organization you wish to work on.
|
TagService |
tag() |
WorkspaceService |
workspace()
Creates a workspaceService that allows you to do operations with our Workspace API
|
public ArdoqClient(String endpoint, String token)
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 withpublic ArdoqClient(String endpoint, String token, org.apache.http.client.HttpClient client)
endpoint - token - client - public ArdoqClient(String endpoint, String token, long connectionTimeoutSeconds, long readTimeoutSeconds)
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)public ArdoqClient(String endpoint, String token, org.apache.http.client.config.RequestConfig defaultRequestConfig)
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.)public ArdoqClient(String endpoint, String username, String password)
endpoint - The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username - Your usernamepassword - Your passwordpublic ArdoqClient(String endpoint, String username, String password, org.apache.http.client.HttpClient client)
endpoint - The Ardoq installation you wish to connect to (e.g. https://app.ardoq.com)username - Your usernamepassword - Your passwordpublic ArdoqClient(String endpoint, String username, String password, org.apache.http.client.config.RequestConfig defaultRequestConfig)
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.)public ArdoqClient(String endpoint, String username, String password, long connectionTimeoutSeconds, long readTimeoutSeconds)
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)public void setLogLevel(retrofit.RestAdapter.LogLevel level)
level - public ArdoqClient setOrganization(String org)
org - The organization account, default is the global Ardoq account (Personal)public WorkspaceService workspace()
public ComponentService component()
public BatchService batch()
public ReferenceService reference()
public TagService tag()
public FieldService field()
public AttachmentService attachment()
public SimpleModelService model()
Copyright © 2018. All rights reserved.