Package video.api.client.api.clients
Class UploadTokensApi
java.lang.Object
video.api.client.api.clients.UploadTokensApi
public class UploadTokensApi
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classUploadTokensApi.APIlistRequest -
Constructor Summary
Constructors Constructor Description UploadTokensApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description UploadTokencreateToken(TokenCreatePayload tokenCreatePayload)Generate an upload token Use this endpoint to generate an upload token.ApiResponse<UploadToken>createTokenWithHttpInfo(TokenCreatePayload tokenCreatePayload)Generate an upload token Use this endpoint to generate an upload token.voiddeleteToken(java.lang.String uploadToken)Delete an upload token Delete an existing upload token.ApiResponse<java.lang.Void>deleteTokenWithHttpInfo(java.lang.String uploadToken)Delete an upload token Delete an existing upload token.ApiClientgetApiClient()UploadTokengetToken(java.lang.String uploadToken)Show upload token You can retrieve details about a specific upload token if you have the unique identifier for the upload token.ApiResponse<UploadToken>getTokenWithHttpInfo(java.lang.String uploadToken)Show upload token You can retrieve details about a specific upload token if you have the unique identifier for the upload token.UploadTokensApi.APIlistRequestlist()List all active upload tokens.voidsetApiClient(ApiClient apiClient)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UploadTokensApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
deleteToken
Delete an upload token Delete an existing upload token. This is especially useful for tokens you may have created that do not expire.- Parameters:
uploadToken- The unique identifier for the upload token you want to delete. Deleting a token will make it so the token can no longer be used for authentication. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content - 404 Not Found -
-
deleteTokenWithHttpInfo
public ApiResponse<java.lang.Void> deleteTokenWithHttpInfo(java.lang.String uploadToken) throws ApiExceptionDelete an upload token Delete an existing upload token. This is especially useful for tokens you may have created that do not expire.- Parameters:
uploadToken- The unique identifier for the upload token you want to delete. Deleting a token will make it so the token can no longer be used for authentication. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content - 404 Not Found -
-
list
List all active upload tokens. A delegated token is used to allow secure uploads without exposing your API key. Use this endpoint to retrieve a list of all currently active delegated tokens.- Returns:
- APIlistRequest
- Http Response Details:
Status Code Description Response Headers 200 Success -
-
getToken
Show upload token You can retrieve details about a specific upload token if you have the unique identifier for the upload token. Add it in the path of the endpoint. Details include time-to-live (ttl), when the token was created, and when it will expire.- Parameters:
uploadToken- The unique identifier for the token you want information about. (required)- Returns:
- UploadToken
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 404 Not Found -
-
getTokenWithHttpInfo
public ApiResponse<UploadToken> getTokenWithHttpInfo(java.lang.String uploadToken) throws ApiExceptionShow upload token You can retrieve details about a specific upload token if you have the unique identifier for the upload token. Add it in the path of the endpoint. Details include time-to-live (ttl), when the token was created, and when it will expire.- Parameters:
uploadToken- The unique identifier for the token you want information about. (required)- Returns:
- ApiResponse<UploadToken>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 404 Not Found -
-
createToken
Generate an upload token Use this endpoint to generate an upload token. You can use this token to authenticate video uploads while keeping your API key safe.- Parameters:
tokenCreatePayload- (required)- Returns:
- UploadToken
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
createTokenWithHttpInfo
public ApiResponse<UploadToken> createTokenWithHttpInfo(TokenCreatePayload tokenCreatePayload) throws ApiExceptionGenerate an upload token Use this endpoint to generate an upload token. You can use this token to authenticate video uploads while keeping your API key safe.- Parameters:
tokenCreatePayload- (required)- Returns:
- ApiResponse<UploadToken>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-