public class AccessTokensApi
extends java.lang.Object
| Constructor | Description |
|---|---|
AccessTokensApi() |
|
AccessTokensApi(ApiClient apiClient) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteToken(java.lang.String tokenId) |
Delete an access token by ID.
|
com.squareup.okhttp.Call |
deleteTokenAsync(java.lang.String tokenId,
ApiCallback<java.lang.Void> callback) |
Delete an access token by ID.
|
com.squareup.okhttp.Call |
deleteTokenCall(java.lang.String tokenId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteToken
|
ApiResponse<java.lang.Void> |
deleteTokenWithHttpInfo(java.lang.String tokenId) |
Delete an access token by ID.
|
ApiClient |
getApiClient() |
|
Token |
getToken(java.lang.String tokenId) |
Get a single access token by ID.
|
com.squareup.okhttp.Call |
getTokenAsync(java.lang.String tokenId,
ApiCallback<Token> callback) |
Get a single access token by ID.
|
com.squareup.okhttp.Call |
getTokenCall(java.lang.String tokenId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getToken
|
Tokens |
getTokens(java.lang.Boolean showAll) |
Returns a list of tokens in the account.
|
com.squareup.okhttp.Call |
getTokensAsync(java.lang.Boolean showAll,
ApiCallback<Tokens> callback) |
Returns a list of tokens in the account.
|
com.squareup.okhttp.Call |
getTokensCall(java.lang.Boolean showAll,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getTokens
|
ApiResponse<Tokens> |
getTokensWithHttpInfo(java.lang.Boolean showAll) |
Returns a list of tokens in the account.
|
ApiResponse<Token> |
getTokenWithHttpInfo(java.lang.String tokenId) |
Get a single access token by ID.
|
Token |
patchToken(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta) |
Modify an access token by ID.
|
com.squareup.okhttp.Call |
patchTokenAsync(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Token> callback) |
Modify an access token by ID.
|
com.squareup.okhttp.Call |
patchTokenCall(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for patchToken
|
ApiResponse<Token> |
patchTokenWithHttpInfo(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta) |
Modify an access token by ID.
|
Token |
postToken(TokenBody tokenBody) |
Create a new token.
|
com.squareup.okhttp.Call |
postTokenAsync(TokenBody tokenBody,
ApiCallback<Token> callback) |
Create a new token.
|
com.squareup.okhttp.Call |
postTokenCall(TokenBody tokenBody,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for postToken
|
ApiResponse<Token> |
postTokenWithHttpInfo(TokenBody tokenBody) |
Create a new token.
|
Token |
resetToken(java.lang.String tokenId,
java.lang.Long expiry) |
Reset an access token's secret key with an optional expiry time for the old key.
|
com.squareup.okhttp.Call |
resetTokenAsync(java.lang.String tokenId,
java.lang.Long expiry,
ApiCallback<Token> callback) |
Reset an access token's secret key with an optional expiry time for the old key.
|
com.squareup.okhttp.Call |
resetTokenCall(java.lang.String tokenId,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for resetToken
|
ApiResponse<Token> |
resetTokenWithHttpInfo(java.lang.String tokenId,
java.lang.Long expiry) |
Reset an access token's secret key with an optional expiry time for the old key.
|
void |
setApiClient(ApiClient apiClient) |
public AccessTokensApi()
public AccessTokensApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call deleteTokenCall(java.lang.String tokenId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
tokenId - The access token ID. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteToken(java.lang.String tokenId)
throws ApiException
tokenId - The access token ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteTokenWithHttpInfo(java.lang.String tokenId) throws ApiException
tokenId - The access token ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteTokenAsync(java.lang.String tokenId,
ApiCallback<java.lang.Void> callback)
throws ApiException
tokenId - The access token ID. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getTokenCall(java.lang.String tokenId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
tokenId - The access token ID. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Token getToken(java.lang.String tokenId) throws ApiException
tokenId - The access token ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Token> getTokenWithHttpInfo(java.lang.String tokenId) throws ApiException
tokenId - The access token ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getTokenAsync(java.lang.String tokenId,
ApiCallback<Token> callback)
throws ApiException
tokenId - The access token ID. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getTokensCall(java.lang.Boolean showAll,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
showAll - If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Tokens getTokens(java.lang.Boolean showAll) throws ApiException
showAll - If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Tokens> getTokensWithHttpInfo(java.lang.Boolean showAll) throws ApiException
showAll - If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getTokensAsync(java.lang.Boolean showAll,
ApiCallback<Tokens> callback)
throws ApiException
showAll - If set to true, and the authentication access token has the \"Admin\" role, personal access tokens for all members will be retrieved. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call patchTokenCall(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
tokenId - The access token ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Token patchToken(java.lang.String tokenId, java.util.List<PatchOperation> patchDelta) throws ApiException
tokenId - The access token ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Token> patchTokenWithHttpInfo(java.lang.String tokenId, java.util.List<PatchOperation> patchDelta) throws ApiException
tokenId - The access token ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call patchTokenAsync(java.lang.String tokenId,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Token> callback)
throws ApiException
tokenId - The access token ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call postTokenCall(TokenBody tokenBody, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
tokenBody - Create a new access token. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Token postToken(TokenBody tokenBody) throws ApiException
tokenBody - Create a new access token. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Token> postTokenWithHttpInfo(TokenBody tokenBody) throws ApiException
tokenBody - Create a new access token. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call postTokenAsync(TokenBody tokenBody, ApiCallback<Token> callback) throws ApiException
tokenBody - Create a new access token. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call resetTokenCall(java.lang.String tokenId,
java.lang.Long expiry,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
tokenId - The access token ID. (required)expiry - An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Token resetToken(java.lang.String tokenId, java.lang.Long expiry) throws ApiException
tokenId - The access token ID. (required)expiry - An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Token> resetTokenWithHttpInfo(java.lang.String tokenId, java.lang.Long expiry) throws ApiException
tokenId - The access token ID. (required)expiry - An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call resetTokenAsync(java.lang.String tokenId,
java.lang.Long expiry,
ApiCallback<Token> callback)
throws ApiException
tokenId - The access token ID. (required)expiry - An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object