From dfe4f4abd96493d01d5bf53f4d26ef10fd4c23d4 Mon Sep 17 00:00:00 2001 From: ThibaultBee Date: Tue, 23 Apr 2024 14:52:02 +0000 Subject: [PATCH] Feature/java rate limit --- docs/AdvancedAuthenticationApi.md | 4 ++ docs/AnalyticsApi.md | 8 +++- docs/CaptionsApi.md | 12 +++++- docs/ChaptersApi.md | 10 ++++- docs/LiveStreamsApi.md | 16 +++++++- docs/PlayerThemesApi.md | 16 +++++++- docs/UploadTokensApi.md | 10 ++++- docs/VideosApi.md | 20 +++++++++- docs/WatermarksApi.md | 8 +++- docs/WebhooksApi.md | 10 ++++- .../api/client/api/clients/VideosApi.java | 40 +++++++++++++++---- .../api/upload/IProgressiveUploadSession.java | 26 +++++++----- 12 files changed, 153 insertions(+), 27 deletions(-) diff --git a/docs/AdvancedAuthenticationApi.md b/docs/AdvancedAuthenticationApi.md index 0229d00..d41ffe8 100644 --- a/docs/AdvancedAuthenticationApi.md +++ b/docs/AdvancedAuthenticationApi.md @@ -11,6 +11,8 @@ Method | HTTP request | Description # **authenticate** > AccessToken authenticate(authenticatePayload) +> okhttp3.Call authenticateAsync(authenticatePayload, callback) +> ApiResponse authenticateWithHttpInfo(authenticatePayload) Get Bearer Token @@ -80,6 +82,8 @@ No authorization required # **refresh** > AccessToken refresh(refreshTokenPayload) +> okhttp3.Call refreshAsync(refreshTokenPayload, callback) +> ApiResponse refreshWithHttpInfo(refreshTokenPayload) Refresh Bearer Token diff --git a/docs/AnalyticsApi.md b/docs/AnalyticsApi.md index 64fcc6d..97f7823 100644 --- a/docs/AnalyticsApi.md +++ b/docs/AnalyticsApi.md @@ -10,7 +10,9 @@ Method | HTTP request | Description # **getLiveStreamsPlays** -> AnalyticsPlaysResponse getLiveStreamsPlays(from, dimension).to(to).filter(filter).currentPage(currentPage).pageSize(pageSize).execute(); +> AnalyticsPlaysResponse getLiveStreamsPlays(from, dimension).to(to).filter(filter).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() Get play events for live stream @@ -95,7 +97,9 @@ Name | Type | Description | Notes # **getVideosPlays** -> AnalyticsPlaysResponse getVideosPlays(from, dimension).to(to).filter(filter).currentPage(currentPage).pageSize(pageSize).execute(); +> AnalyticsPlaysResponse getVideosPlays(from, dimension).to(to).filter(filter).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() Get play events for video diff --git a/docs/CaptionsApi.md b/docs/CaptionsApi.md index c0fd117..711e8f7 100644 --- a/docs/CaptionsApi.md +++ b/docs/CaptionsApi.md @@ -14,6 +14,8 @@ Method | HTTP request | Description # **upload** > Caption upload(videoId, language, file) +> okhttp3.Call uploadAsync(videoId, language, file, callback) +> ApiResponse uploadWithHttpInfo(videoId, language, file) Upload a caption @@ -87,6 +89,8 @@ Name | Type | Description | Notes # **get** > Caption get(videoId, language) +> okhttp3.Call getAsync(videoId, language, callback) +> ApiResponse getWithHttpInfo(videoId, language) Retrieve a caption @@ -160,6 +164,8 @@ Name | Type | Description | Notes # **update** > Caption update(videoId, language, captionsUpdatePayload) +> okhttp3.Call updateAsync(videoId, language, captionsUpdatePayload, callback) +> ApiResponse updateWithHttpInfo(videoId, language, captionsUpdatePayload) Update a caption @@ -235,6 +241,8 @@ Name | Type | Description | Notes # **delete** > delete(videoId, language) +> okhttp3.Call deleteAsync(videoId, language, callback) +> ApiResponse deleteWithHttpInfo(videoId, language) Delete a caption @@ -304,7 +312,9 @@ null (empty response body) # **list** -> CaptionsListResponse list(videoId).currentPage(currentPage).pageSize(pageSize).execute(); +> CaptionsListResponse list(videoId).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() List video captions diff --git a/docs/ChaptersApi.md b/docs/ChaptersApi.md index a7dfeb2..2fae7a9 100644 --- a/docs/ChaptersApi.md +++ b/docs/ChaptersApi.md @@ -13,6 +13,8 @@ Method | HTTP request | Description # **upload** > Chapter upload(videoId, language, file) +> okhttp3.Call uploadAsync(videoId, language, file, callback) +> ApiResponse uploadWithHttpInfo(videoId, language, file) Upload a chapter @@ -86,6 +88,8 @@ Name | Type | Description | Notes # **get** > Chapter get(videoId, language) +> okhttp3.Call getAsync(videoId, language, callback) +> ApiResponse getWithHttpInfo(videoId, language) Retrieve a chapter @@ -156,6 +160,8 @@ Name | Type | Description | Notes # **delete** > delete(videoId, language) +> okhttp3.Call deleteAsync(videoId, language, callback) +> ApiResponse deleteWithHttpInfo(videoId, language) Delete a chapter @@ -224,7 +230,9 @@ null (empty response body) # **list** -> ChaptersListResponse list(videoId).currentPage(currentPage).pageSize(pageSize).execute(); +> ChaptersListResponse list(videoId).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() List video chapters diff --git a/docs/LiveStreamsApi.md b/docs/LiveStreamsApi.md index 51c980e..ba3f7cf 100644 --- a/docs/LiveStreamsApi.md +++ b/docs/LiveStreamsApi.md @@ -16,6 +16,8 @@ Method | HTTP request | Description # **create** > LiveStream create(liveStreamCreationPayload) +> okhttp3.Call createAsync(liveStreamCreationPayload, callback) +> ApiResponse createWithHttpInfo(liveStreamCreationPayload) Create live stream @@ -89,6 +91,8 @@ Name | Type | Description | Notes # **get** > LiveStream get(liveStreamId) +> okhttp3.Call getAsync(liveStreamId, callback) +> ApiResponse getWithHttpInfo(liveStreamId) Retrieve live stream @@ -156,6 +160,8 @@ Name | Type | Description | Notes # **update** > LiveStream update(liveStreamId, liveStreamUpdatePayload) +> okhttp3.Call updateAsync(liveStreamId, liveStreamUpdatePayload, callback) +> ApiResponse updateWithHttpInfo(liveStreamId, liveStreamUpdatePayload) Update a live stream @@ -231,6 +237,8 @@ Name | Type | Description | Notes # **delete** > delete(liveStreamId) +> okhttp3.Call deleteAsync(liveStreamId, callback) +> ApiResponse deleteWithHttpInfo(liveStreamId) Delete a live stream @@ -296,7 +304,9 @@ null (empty response body) # **list** -> LiveStreamListResponse list().streamKey(streamKey).name(name).sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute(); +> LiveStreamListResponse list().streamKey(streamKey).name(name).sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() List all live streams @@ -381,6 +391,8 @@ Name | Type | Description | Notes # **uploadThumbnail** > LiveStream uploadThumbnail(liveStreamId, file) +> okhttp3.Call uploadThumbnailAsync(liveStreamId, file, callback) +> ApiResponse uploadThumbnailWithHttpInfo(liveStreamId, file) Upload a thumbnail @@ -452,6 +464,8 @@ Name | Type | Description | Notes # **deleteThumbnail** > LiveStream deleteThumbnail(liveStreamId) +> okhttp3.Call deleteThumbnailAsync(liveStreamId, callback) +> ApiResponse deleteThumbnailWithHttpInfo(liveStreamId) Delete a thumbnail diff --git a/docs/PlayerThemesApi.md b/docs/PlayerThemesApi.md index 4d08f95..e44faeb 100644 --- a/docs/PlayerThemesApi.md +++ b/docs/PlayerThemesApi.md @@ -16,6 +16,8 @@ Method | HTTP request | Description # **create** > PlayerTheme create(playerThemeCreationPayload) +> okhttp3.Call createAsync(playerThemeCreationPayload, callback) +> ApiResponse createWithHttpInfo(playerThemeCreationPayload) Create a player @@ -100,6 +102,8 @@ Name | Type | Description | Notes # **get** > PlayerTheme get(playerId) +> okhttp3.Call getAsync(playerId, callback) +> ApiResponse getWithHttpInfo(playerId) Retrieve a player @@ -168,6 +172,8 @@ Name | Type | Description | Notes # **update** > PlayerTheme update(playerId, playerThemeUpdatePayload) +> okhttp3.Call updateAsync(playerId, playerThemeUpdatePayload, callback) +> ApiResponse updateWithHttpInfo(playerId, playerThemeUpdatePayload) Update a player @@ -255,6 +261,8 @@ Name | Type | Description | Notes # **delete** > delete(playerId) +> okhttp3.Call deleteAsync(playerId, callback) +> ApiResponse deleteWithHttpInfo(playerId) Delete a player @@ -321,7 +329,9 @@ null (empty response body) # **list** -> PlayerThemesListResponse list().sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute(); +> PlayerThemesListResponse list().sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() List all player themes @@ -401,6 +411,8 @@ Name | Type | Description | Notes # **uploadLogo** > PlayerTheme uploadLogo(playerId, file, link) +> okhttp3.Call uploadLogoAsync(playerId, file, link, callback) +> ApiResponse uploadLogoWithHttpInfo(playerId, file, link) Upload a logo @@ -474,6 +486,8 @@ Name | Type | Description | Notes # **deleteLogo** > deleteLogo(playerId) +> okhttp3.Call deleteLogoAsync(playerId, callback) +> ApiResponse deleteLogoWithHttpInfo(playerId) Delete logo diff --git a/docs/UploadTokensApi.md b/docs/UploadTokensApi.md index 7f82e6d..903ba82 100644 --- a/docs/UploadTokensApi.md +++ b/docs/UploadTokensApi.md @@ -13,6 +13,8 @@ Method | HTTP request | Description # **createToken** > UploadToken createToken(tokenCreationPayload) +> okhttp3.Call createTokenAsync(tokenCreationPayload, callback) +> ApiResponse createTokenWithHttpInfo(tokenCreationPayload) Generate an upload token @@ -83,6 +85,8 @@ Name | Type | Description | Notes # **getToken** > UploadToken getToken(uploadToken) +> okhttp3.Call getTokenAsync(uploadToken, callback) +> ApiResponse getTokenWithHttpInfo(uploadToken) Retrieve upload token @@ -151,6 +155,8 @@ Name | Type | Description | Notes # **deleteToken** > deleteToken(uploadToken) +> okhttp3.Call deleteTokenAsync(uploadToken, callback) +> ApiResponse deleteTokenWithHttpInfo(uploadToken) Delete an upload token @@ -217,7 +223,9 @@ null (empty response body) # **list** -> TokenListResponse list().sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute(); +> TokenListResponse list().sortBy(sortBy).sortOrder(sortOrder).currentPage(currentPage).pageSize(pageSize).execute() +> okhttp3.Call executeAsync(callback) +> ApiResponse executeWithHttpInfo() List all active upload tokens diff --git a/docs/VideosApi.md b/docs/VideosApi.md index 9b8c44a..a3e58ea 100644 --- a/docs/VideosApi.md +++ b/docs/VideosApi.md @@ -19,6 +19,8 @@ Method | HTTP request | Description # **create** > Video create(videoCreationPayload) +> okhttp3.Call createAsync(videoCreationPayload, callback) +> ApiResponse