Package com.mypurecloud.sdk.v2.api
Class TokensApi
java.lang.Object
com.mypurecloud.sdk.v2.api.TokensApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteToken(DeleteTokenRequest request) Delete all auth tokens for the specified user.deleteToken(ApiRequest<Void> request) Delete all auth tokens for the specified user.voiddeleteToken(String userId) Delete all auth tokens for the specified user.voidDelete auth token used to make the request.voiddeleteTokensMe(DeleteTokensMeRequest request) Delete auth token used to make the request.deleteTokensMe(ApiRequest<Void> request) Delete auth token used to make the request.Delete auth token used to make the request.deleteTokenWithHttpInfo(String userId) Delete all auth tokens for the specified user.getTokensMe(GetTokensMeRequest request) Fetch information about the current tokengetTokensMe(ApiRequest<Void> request) Fetch information about the current tokengetTokensMe(Boolean preserveIdleTTL) Fetch information about the current tokengetTokensMeWithHttpInfo(Boolean preserveIdleTTL) Fetch information about the current tokenGet the current Idle Token Timeout ValuegetTokensTimeout(GetTokensTimeoutRequest request) Get the current Idle Token Timeout ValuegetTokensTimeout(ApiRequest<Void> request) Get the current Idle Token Timeout ValueGet the current Idle Token Timeout ValuevoidVerify user tokenvoidheadTokensMe(HeadTokensMeRequest request) Verify user tokenheadTokensMe(ApiRequest<Void> request) Verify user tokenVerify user tokenputTokensTimeout(PutTokensTimeoutRequest request) Update or Enable/Disable the Idle Token TimeoutputTokensTimeout(ApiRequest<IdleTokenTimeout> request) Update or Enable/Disable the Idle Token TimeoutUpdate or Enable/Disable the Idle Token TimeoutUpdate or Enable/Disable the Idle Token Timeout
-
Constructor Details
-
TokensApi
public TokensApi() -
TokensApi
-
-
Method Details
-
deleteToken
Delete all auth tokens for the specified user.- Parameters:
userId- User ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTokenWithHttpInfo
Delete all auth tokens for the specified user.- Parameters:
userId- User ID (required)- Throws:
IOException- if the request fails to be processed
-
deleteToken
Delete all auth tokens for the specified user.- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteToken
Delete all auth tokens for the specified user.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
deleteTokensMe
Delete auth token used to make the request.- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTokensMeWithHttpInfo
Delete auth token used to make the request.- Throws:
IOException- if the request fails to be processed
-
deleteTokensMe
Delete auth token used to make the request.- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTokensMe
Delete auth token used to make the request.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getTokensMe
Fetch information about the current token- Parameters:
preserveIdleTTL- preserveIdleTTL indicates whether the idle token timeout should be reset or preserved. If preserveIdleTTL is true, then TTL value is not reset. If unset or false, the value is reset. (optional)- Returns:
- TokenInfo
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTokensMeWithHttpInfo
Fetch information about the current token- Parameters:
preserveIdleTTL- preserveIdleTTL indicates whether the idle token timeout should be reset or preserved. If preserveIdleTTL is true, then TTL value is not reset. If unset or false, the value is reset. (optional)- Returns:
- TokenInfo
- Throws:
IOException- if the request fails to be processed
-
getTokensMe
Fetch information about the current token- Parameters:
request- The request object- Returns:
- TokenInfo
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTokensMe
Fetch information about the current token- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getTokensTimeout
Get the current Idle Token Timeout Value- Returns:
- IdleTokenTimeout
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTokensTimeoutWithHttpInfo
Get the current Idle Token Timeout Value- Returns:
- IdleTokenTimeout
- Throws:
IOException- if the request fails to be processed
-
getTokensTimeout
public IdleTokenTimeout getTokensTimeout(GetTokensTimeoutRequest request) throws IOException, ApiException Get the current Idle Token Timeout Value- Parameters:
request- The request object- Returns:
- IdleTokenTimeout
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTokensTimeout
Get the current Idle Token Timeout Value- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
headTokensMe
Verify user token- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
headTokensMeWithHttpInfo
Verify user token- Throws:
IOException- if the request fails to be processed
-
headTokensMe
Verify user token- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
headTokensMe
Verify user token- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
putTokensTimeout
Update or Enable/Disable the Idle Token Timeout- Parameters:
body- (optional)- Returns:
- IdleTokenTimeout
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putTokensTimeoutWithHttpInfo
public ApiResponse<IdleTokenTimeout> putTokensTimeoutWithHttpInfo(IdleTokenTimeout body) throws IOException Update or Enable/Disable the Idle Token Timeout- Parameters:
body- (optional)- Returns:
- IdleTokenTimeout
- Throws:
IOException- if the request fails to be processed
-
putTokensTimeout
public IdleTokenTimeout putTokensTimeout(PutTokensTimeoutRequest request) throws IOException, ApiException Update or Enable/Disable the Idle Token Timeout- Parameters:
request- The request object- Returns:
- IdleTokenTimeout
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
putTokensTimeout
public ApiResponse<IdleTokenTimeout> putTokensTimeout(ApiRequest<IdleTokenTimeout> request) throws IOException Update or Enable/Disable the Idle Token Timeout- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-