Package video.api.client.api.clients
Class VideosApi
- java.lang.Object
-
- video.api.client.api.clients.VideosApi
-
public class VideosApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classVideosApi.APIlistDiscardedRequestclassVideosApi.APIlistRequestclassVideosApi.UploadProgressiveSessionclassVideosApi.UploadWithUploadTokenProgressiveSession
-
Constructor Summary
Constructors Constructor Description VideosApi()Constructor for VideosApi production environment where API key is not required.VideosApi(String basePath)Constructor for VideosApi with custom API base path where API key is not required.VideosApi(String apiKey, String basePath)Constructor for VideosApi with custom API base pathVideosApi(String apiKey, Environment environment)Constructor for VideosApi with custom API base pathVideosApi(ApiClient apiClient)VideosApi(Environment environment)Constructor for VideosApi with custom API base path where API key is not required.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Videocreate(VideoCreationPayload videoCreationPayload)Create a video object Creates a video object.okhttp3.CallcreateAsync(VideoCreationPayload videoCreationPayload, ApiCallback<Video> _callback)Create a video object (asynchronously) Creates a video object.VideosApi.UploadProgressiveSessioncreateUploadProgressiveSession(String videoId)VideosApi.UploadWithUploadTokenProgressiveSessioncreateUploadWithUploadTokenProgressiveSession(String token)VideosApi.UploadWithUploadTokenProgressiveSessioncreateUploadWithUploadTokenProgressiveSession(String token, String videoId)ApiResponse<Video>createWithHttpInfo(VideoCreationPayload videoCreationPayload)Create a video object Creates a video object.voiddelete(String videoId)Delete a video object If you do not need a video any longer, you can send a request to delete it.okhttp3.CalldeleteAsync(String videoId, ApiCallback<Void> _callback)Delete a video object (asynchronously) If you do not need a video any longer, you can send a request to delete it.ApiResponse<Void>deleteWithHttpInfo(String videoId)Delete a video object If you do not need a video any longer, you can send a request to delete it.Videoget(String videoId)Retrieve a video object This call provides the same information provided on video creation.ApiClientgetApiClient()okhttp3.CallgetAsync(String videoId, ApiCallback<Video> _callback)Retrieve a video object (asynchronously) This call provides the same information provided on video creation.VideogetDiscarded(String videoId)Retrieve a discarded video object This call provides the same information provided on video creation.okhttp3.CallgetDiscardedAsync(String videoId, ApiCallback<Video> _callback)Retrieve a discarded video object (asynchronously) This call provides the same information provided on video creation.ApiResponse<Video>getDiscardedWithHttpInfo(String videoId)Retrieve a discarded video object This call provides the same information provided on video creation.VideoStatusgetStatus(String videoId)Retrieve video status and details This method provides upload status & encoding status to determine when the video is uploaded or ready to playback.okhttp3.CallgetStatusAsync(String videoId, ApiCallback<VideoStatus> _callback)Retrieve video status and details (asynchronously) This method provides upload status & encoding status to determine when the video is uploaded or ready to playback.ApiResponse<VideoStatus>getStatusWithHttpInfo(String videoId)Retrieve video status and details This method provides upload status & encoding status to determine when the video is uploaded or ready to playback.ApiResponse<Video>getWithHttpInfo(String videoId)Retrieve a video object This call provides the same information provided on video creation.VideosApi.APIlistRequestlist()List all video objects This method returns a list of your videos (with all their details).VideosApi.APIlistDiscardedRequestlistDiscarded()List all discarded video objects This method returns a list of your discarded videos (with all their details).VideopickThumbnail(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload)Set a thumbnail Pick a thumbnail from the given time code.okhttp3.CallpickThumbnailAsync(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload, ApiCallback<Video> _callback)Set a thumbnail (asynchronously) Pick a thumbnail from the given time code.ApiResponse<Video>pickThumbnailWithHttpInfo(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload)Set a thumbnail Pick a thumbnail from the given time code.voidsetApiClient(ApiClient apiClient)Videoupdate(String videoId, VideoUpdatePayload videoUpdatePayload)Update a video object Updates the parameters associated with a video ID.okhttp3.CallupdateAsync(String videoId, VideoUpdatePayload videoUpdatePayload, ApiCallback<Video> _callback)Update a video object (asynchronously) Updates the parameters associated with a video ID.VideoupdateDiscarded(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload)Update a discarded video object Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.okhttp3.CallupdateDiscardedAsync(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload, ApiCallback<Video> _callback)Update a discarded video object (asynchronously) Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.ApiResponse<Video>updateDiscardedWithHttpInfo(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload)Update a discarded video object Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.ApiResponse<Video>updateWithHttpInfo(String videoId, VideoUpdatePayload videoUpdatePayload)Update a video object Updates the parameters associated with a video ID.Videoupload(String videoId, File file)Upload a video To upload a video to the videoId you created.Videoupload(String videoId, File file, UploadProgressListener uploadProgressListener)Upload a video To upload a video to the videoId you created.VideouploadThumbnail(String videoId, File file)Upload a thumbnail The thumbnail is the poster that appears in the player window before video playback begins.okhttp3.CalluploadThumbnailAsync(String videoId, File file, ApiCallback<Video> _callback)Upload a thumbnail (asynchronously) The thumbnail is the poster that appears in the player window before video playback begins.ApiResponse<Video>uploadThumbnailWithHttpInfo(String videoId, File file)Upload a thumbnail The thumbnail is the poster that appears in the player window before video playback begins.ApiResponse<Video>uploadWithHttpInfo(String videoId, File file)Upload a video To upload a video to the videoId you created.ApiResponse<Video>uploadWithHttpInfo(String videoId, File file, UploadProgressListener uploadProgressListener)Upload a video To upload a video to the videoId you created.VideouploadWithUploadToken(String token, File file)Upload with an delegated upload token This method allows you to send a video using an upload token.VideouploadWithUploadToken(String token, File file, String videoId, UploadProgressListener uploadProgressListener)Upload with an delegated upload token This method allows you to send a video using an upload token.VideouploadWithUploadToken(String token, File file, UploadProgressListener uploadProgressListener)Upload with an delegated upload token This method allows you to send a video using an upload token.ApiResponse<Video>uploadWithUploadTokenWithHttpInfo(String token, File file)Upload with an delegated upload token This method allows you to send a video using an upload token.ApiResponse<Video>uploadWithUploadTokenWithHttpInfo(String token, File file, String videoId, UploadProgressListener uploadProgressListener)Upload with an delegated upload token This method allows you to send a video using an upload token.
-
-
-
Constructor Detail
-
VideosApi
public VideosApi(ApiClient apiClient)
-
VideosApi
public VideosApi()
Constructor for VideosApi production environment where API key is not required.
-
VideosApi
public VideosApi(String basePath)
Constructor for VideosApi with custom API base path where API key is not required.- Parameters:
basePath- the api base path. Expected Environment.PRODUCTION.basePath (default) or Environment.SANDBOX.basePath.
-
VideosApi
public VideosApi(Environment environment)
Constructor for VideosApi with custom API base path where API key is not required.- Parameters:
environment- the target environment. Expected Environment.PRODUCTION (default) or Environment.SANDBOX.
-
VideosApi
public VideosApi(String apiKey, String basePath)
Constructor for VideosApi with custom API base path- Parameters:
apiKey- the api key to use to authenticate to the APIbasePath- the api base path. Expected Environment.PRODUCTION.basePath (default) or Environment.SANDBOX.basePath.
-
VideosApi
public VideosApi(String apiKey, Environment environment)
Constructor for VideosApi with custom API base path- Parameters:
apiKey- the api key to use to authenticate to the APIenvironment- the target environment. Expected Environment.PRODUCTION (default) or Environment.SANDBOX.
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
create
public Video create(VideoCreationPayload videoCreationPayload) throws ApiException
Create a video object Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/api/Videos).- Parameters:
videoCreationPayload- video to create (required)- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
202 Accepted * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
createWithHttpInfo
public ApiResponse<Video> createWithHttpInfo(VideoCreationPayload videoCreationPayload) throws ApiException
Create a video object Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/api/Videos).- Parameters:
videoCreationPayload- video to create (required)- Returns:
- ApiResponse<Video>
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
202 Accepted * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
createAsync
public okhttp3.Call createAsync(VideoCreationPayload videoCreationPayload, ApiCallback<Video> _callback) throws ApiException
Create a video object (asynchronously) Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/api/Videos).- Parameters:
videoCreationPayload- video to create (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
202 Accepted * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
upload
public Video upload(String videoId, File file) throws ApiException
Upload a video To upload a video to the videoId you created. You can only upload your video to the videoId once. We offer 2 types of upload: Regular upload Progressive upload The latter allows you to split a video source into X chunks and send those chunks independently (concurrently or sequentially). The 2 main goals for our users are to allow the upload of video sources > 200 MiB (200 MiB = the max. allowed file size for regular upload) allow to send a video source "progressively", i.e., before before knowing the total size of the video. Once all chunks have been sent, they are reaggregated to one source file. The video source is considered as "completely sent" when the "last" chunk is sent (i.e., the chunk that "completes" the upload).- Parameters:
videoId- Enter the videoId you want to use to upload your video. (required)file- The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \\\"/videos\\\" endpoint and add the \\\"source\\\" parameter when you create a new video. (required)- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
upload
public Video upload(String videoId, File file, UploadProgressListener uploadProgressListener) throws ApiException
Upload a video To upload a video to the videoId you created. You can only upload your video to the videoId once. We offer 2 types of upload: Regular upload Progressive upload The latter allows you to split a video source into X chunks and send those chunks independently (concurrently or sequentially). The 2 main goals for our users are to allow the upload of video sources > 200 MiB (200 MiB = the max. allowed file size for regular upload) allow to send a video source "progressively", i.e., before before knowing the total size of the video. Once all chunks have been sent, they are reaggregated to one source file. The video source is considered as "completely sent" when the "last" chunk is sent (i.e., the chunk that "completes" the upload).- Parameters:
videoId- Enter the videoId you want to use to upload your video. (required)file- The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \\\"/videos\\\" endpoint and add the \\\"source\\\" parameter when you create a new video. (required)uploadProgressListener- An upload progress listener- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadWithHttpInfo
public ApiResponse<Video> uploadWithHttpInfo(String videoId, File file) throws ApiException
Upload a video To upload a video to the videoId you created. You can only upload your video to the videoId once. We offer 2 types of upload: Regular upload Progressive upload The latter allows you to split a video source into X chunks and send those chunks independently (concurrently or sequentially). The 2 main goals for our users are to allow the upload of video sources > 200 MiB (200 MiB = the max. allowed file size for regular upload) allow to send a video source "progressively", i.e., before before knowing the total size of the video. Once all chunks have been sent, they are reaggregated to one source file. The video source is considered as "completely sent" when the "last" chunk is sent (i.e., the chunk that "completes" the upload).- Parameters:
videoId- Enter the videoId you want to use to upload your video. (required)file- The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \\\"/videos\\\" endpoint and add the \\\"source\\\" parameter when you create a new video. (required)- Returns:
- ApiResponse<Video>
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
createUploadProgressiveSession
public VideosApi.UploadProgressiveSession createUploadProgressiveSession(String videoId)
-
uploadWithHttpInfo
public ApiResponse<Video> uploadWithHttpInfo(String videoId, File file, UploadProgressListener uploadProgressListener) throws ApiException
Upload a video To upload a video to the videoId you created. You can only upload your video to the videoId once. We offer 2 types of upload: Regular upload Progressive upload The latter allows you to split a video source into X chunks and send those chunks independently (concurrently or sequentially). The 2 main goals for our users are to allow the upload of video sources > 200 MiB (200 MiB = the max. allowed file size for regular upload) allow to send a video source "progressively", i.e., before before knowing the total size of the video. Once all chunks have been sent, they are reaggregated to one source file. The video source is considered as "completely sent" when the "last" chunk is sent (i.e., the chunk that "completes" the upload).- Parameters:
videoId- Enter the videoId you want to use to upload your video. (required)file- The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \\\"/videos\\\" endpoint and add the \\\"source\\\" parameter when you create a new video. (required)uploadProgressListener- An upload progress listener- Returns:
- ApiResponse<Video>
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadWithUploadToken
public Video uploadWithUploadToken(String token, File file) throws ApiException
Upload with an delegated upload token This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).- Parameters:
token- The unique identifier for the token you want to use to upload a video. (required)file- The path to the video you want to upload. (required)- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadWithUploadToken
public Video uploadWithUploadToken(String token, File file, String videoId, UploadProgressListener uploadProgressListener) throws ApiException
Upload with an delegated upload token This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).- Parameters:
token- The unique identifier for the token you want to use to upload a video. (required)file- The path to the video you want to upload. (required)uploadProgressListener- An upload progress listener- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadWithUploadToken
public Video uploadWithUploadToken(String token, File file, UploadProgressListener uploadProgressListener) throws ApiException
Upload with an delegated upload token This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).- Parameters:
token- The unique identifier for the token you want to use to upload a video. (required)file- The path to the video you want to upload. (required)uploadProgressListener- An upload progress listener- Returns:
- Video
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadWithUploadTokenWithHttpInfo
public ApiResponse<Video> uploadWithUploadTokenWithHttpInfo(String token, File file) throws ApiException
Upload with an delegated upload token This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).- Parameters:
token- The unique identifier for the token you want to use to upload a video. (required)file- The path to the video you want to upload. (required)- Returns:
- ApiResponse<Video>
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
createUploadWithUploadTokenProgressiveSession
public VideosApi.UploadWithUploadTokenProgressiveSession createUploadWithUploadTokenProgressiveSession(String token)
-
createUploadWithUploadTokenProgressiveSession
public VideosApi.UploadWithUploadTokenProgressiveSession createUploadWithUploadTokenProgressiveSession(String token, String videoId)
-
uploadWithUploadTokenWithHttpInfo
public ApiResponse<Video> uploadWithUploadTokenWithHttpInfo(String token, File file, String videoId, UploadProgressListener uploadProgressListener) throws ApiException
Upload with an delegated upload token This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).- Parameters:
token- The unique identifier for the token you want to use to upload a video. (required)file- The path to the video you want to upload. (required)uploadProgressListener- An upload progress listener- Returns:
- ApiResponse<Video>
- 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 201 Created * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
get
public Video get(String videoId) throws ApiException
Retrieve a video object This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getWithHttpInfo
public ApiResponse<Video> getWithHttpInfo(String videoId) throws ApiException
Retrieve a video object This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getAsync
public okhttp3.Call getAsync(String videoId, ApiCallback<Video> _callback) throws ApiException
Retrieve a video object (asynchronously) This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
update
public Video update(String videoId, VideoUpdatePayload videoUpdatePayload) throws ApiException
Update a video object Updates the parameters associated with a video ID. The video object you are updating is determined by the video ID you provide. NOTE: If you are updating an array, you must provide the entire array as what you provide here overwrites what is in the system rather than appending to it.- Parameters:
videoId- The video ID for the video you want to update. (required)videoUpdatePayload- (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
409 Conflict * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
updateWithHttpInfo
public ApiResponse<Video> updateWithHttpInfo(String videoId, VideoUpdatePayload videoUpdatePayload) throws ApiException
Update a video object Updates the parameters associated with a video ID. The video object you are updating is determined by the video ID you provide. NOTE: If you are updating an array, you must provide the entire array as what you provide here overwrites what is in the system rather than appending to it.- Parameters:
videoId- The video ID for the video you want to update. (required)videoUpdatePayload- (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
409 Conflict * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
updateAsync
public okhttp3.Call updateAsync(String videoId, VideoUpdatePayload videoUpdatePayload, ApiCallback<Video> _callback) throws ApiException
Update a video object (asynchronously) Updates the parameters associated with a video ID. The video object you are updating is determined by the video ID you provide. NOTE: If you are updating an array, you must provide the entire array as what you provide here overwrites what is in the system rather than appending to it.- Parameters:
videoId- The video ID for the video you want to update. (required)videoUpdatePayload- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
409 Conflict * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
delete
public void delete(String videoId) throws ApiException
Delete a video object If you do not need a video any longer, you can send a request to delete it. All you need is the videoId. By default, deleted videos cannot be recovered. If you have the Video Restore feature enabled, this operation will discard the video instead of permanently deleting it. Make sure you subscribe to the Video Restore feature if you want to be able to restore deleted videos! The Video Restore feature retains videos for 90 days, after which the videos are permanently deleted- Parameters:
videoId- The video ID for the video you want to delete. (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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
deleteWithHttpInfo
public ApiResponse<Void> deleteWithHttpInfo(String videoId) throws ApiException
Delete a video object If you do not need a video any longer, you can send a request to delete it. All you need is the videoId. By default, deleted videos cannot be recovered. If you have the Video Restore feature enabled, this operation will discard the video instead of permanently deleting it. Make sure you subscribe to the Video Restore feature if you want to be able to restore deleted videos! The Video Restore feature retains videos for 90 days, after which the videos are permanently deleted- Parameters:
videoId- The video ID for the video you want to delete. (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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
deleteAsync
public okhttp3.Call deleteAsync(String videoId, ApiCallback<Void> _callback) throws ApiException
Delete a video object (asynchronously) If you do not need a video any longer, you can send a request to delete it. All you need is the videoId. By default, deleted videos cannot be recovered. If you have the Video Restore feature enabled, this operation will discard the video instead of permanently deleting it. Make sure you subscribe to the Video Restore feature if you want to be able to restore deleted videos! The Video Restore feature retains videos for 90 days, after which the videos are permanently deleted- Parameters:
videoId- The video ID for the video you want to delete. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 No Content * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
list
public VideosApi.APIlistRequest list()
List all video objects This method returns a list of your videos (with all their details). With no parameters added, the API returns the first page of all videos. You can filter videos using the parameters described below.- Returns:
- APIlistRequest
- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadThumbnail
public Video uploadThumbnail(String videoId, File file) throws ApiException
Upload a thumbnail The thumbnail is the poster that appears in the player window before video playback begins. This endpoint allows you to upload an image for the thumbnail. To select a still frame from the video using a time stamp, use the [dedicated method](#pickThumbnail) to pick a time in the video. Note: There may be a short delay before the new thumbnail is delivered to our CDN.- Parameters:
videoId- Unique identifier of the chosen video (required)file- The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB. (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadThumbnailWithHttpInfo
public ApiResponse<Video> uploadThumbnailWithHttpInfo(String videoId, File file) throws ApiException
Upload a thumbnail The thumbnail is the poster that appears in the player window before video playback begins. This endpoint allows you to upload an image for the thumbnail. To select a still frame from the video using a time stamp, use the [dedicated method](#pickThumbnail) to pick a time in the video. Note: There may be a short delay before the new thumbnail is delivered to our CDN.- Parameters:
videoId- Unique identifier of the chosen video (required)file- The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB. (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
uploadThumbnailAsync
public okhttp3.Call uploadThumbnailAsync(String videoId, File file, ApiCallback<Video> _callback) throws ApiException
Upload a thumbnail (asynchronously) The thumbnail is the poster that appears in the player window before video playback begins. This endpoint allows you to upload an image for the thumbnail. To select a still frame from the video using a time stamp, use the [dedicated method](#pickThumbnail) to pick a time in the video. Note: There may be a short delay before the new thumbnail is delivered to our CDN.- Parameters:
videoId- Unique identifier of the chosen video (required)file- The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
pickThumbnail
public Video pickThumbnail(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload) throws ApiException
Set a thumbnail Pick a thumbnail from the given time code. If you'd like to upload an image for your thumbnail, use the dedicated [method](#uploadThumbnail). There may be a short delay for the thumbnail to update.- Parameters:
videoId- Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail. (required)videoThumbnailPickPayload- (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
pickThumbnailWithHttpInfo
public ApiResponse<Video> pickThumbnailWithHttpInfo(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload) throws ApiException
Set a thumbnail Pick a thumbnail from the given time code. If you'd like to upload an image for your thumbnail, use the dedicated [method](#uploadThumbnail). There may be a short delay for the thumbnail to update.- Parameters:
videoId- Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail. (required)videoThumbnailPickPayload- (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
pickThumbnailAsync
public okhttp3.Call pickThumbnailAsync(String videoId, VideoThumbnailPickPayload videoThumbnailPickPayload, ApiCallback<Video> _callback) throws ApiException
Set a thumbnail (asynchronously) Pick a thumbnail from the given time code. If you'd like to upload an image for your thumbnail, use the dedicated [method](#uploadThumbnail). There may be a short delay for the thumbnail to update.- Parameters:
videoId- Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail. (required)videoThumbnailPickPayload- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getDiscarded
public Video getDiscarded(String videoId) throws ApiException
Retrieve a discarded video object This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getDiscardedWithHttpInfo
public ApiResponse<Video> getDiscardedWithHttpInfo(String videoId) throws ApiException
Retrieve a discarded video object This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getDiscardedAsync
public okhttp3.Call getDiscardedAsync(String videoId, ApiCallback<Video> _callback) throws ApiException
Retrieve a discarded video object (asynchronously) This call provides the same information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL.- Parameters:
videoId- The unique identifier for the video you want details about. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getStatus
public VideoStatus getStatus(String videoId) throws ApiException
Retrieve video status and details This method provides upload status & encoding status to determine when the video is uploaded or ready to playback. Once encoding is completed, the response also lists the available stream qualities.- Parameters:
videoId- The unique identifier for the video you want the status for. (required)- Returns:
- VideoStatus
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getStatusWithHttpInfo
public ApiResponse<VideoStatus> getStatusWithHttpInfo(String videoId) throws ApiException
Retrieve video status and details This method provides upload status & encoding status to determine when the video is uploaded or ready to playback. Once encoding is completed, the response also lists the available stream qualities.- Parameters:
videoId- The unique identifier for the video you want the status for. (required)- Returns:
- ApiResponse<VideoStatus>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
getStatusAsync
public okhttp3.Call getStatusAsync(String videoId, ApiCallback<VideoStatus> _callback) throws ApiException
Retrieve video status and details (asynchronously) This method provides upload status & encoding status to determine when the video is uploaded or ready to playback. Once encoding is completed, the response also lists the available stream qualities.- Parameters:
videoId- The unique identifier for the video you want the status for. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
listDiscarded
public VideosApi.APIlistDiscardedRequest listDiscarded()
List all discarded video objects This method returns a list of your discarded videos (with all their details). With no parameters added, the API returns the first page of all discarded videos. You can filter discarded videos using the parameters described below.- Returns:
- APIlistDiscardedRequest
- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
updateDiscarded
public Video updateDiscarded(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload) throws ApiException
Update a discarded video object Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.- Parameters:
videoId- The video ID for the video you want to restore. (required)discardedVideoUpdatePayload- (required)- Returns:
- Video
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
updateDiscardedWithHttpInfo
public ApiResponse<Video> updateDiscardedWithHttpInfo(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload) throws ApiException
Update a discarded video object Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.- Parameters:
videoId- The video ID for the video you want to restore. (required)discardedVideoUpdatePayload- (required)- Returns:
- ApiResponse<Video>
- 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 * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
updateDiscardedAsync
public okhttp3.Call updateDiscardedAsync(String videoId, DiscardedVideoUpdatePayload discardedVideoUpdatePayload, ApiCallback<Video> _callback) throws ApiException
Update a discarded video object (asynchronously) Use this endpoint to restore a discarded video when you have the Video Restore feature enabled.- Parameters:
videoId- The video ID for the video you want to restore. (required)discardedVideoUpdatePayload- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Success * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
400 Bad Request * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
404 Not Found * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
429 Too Many Requests * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets.
-
-