Package video.api.client.api.clients
Class PlayerThemesApi
- java.lang.Object
-
- video.api.client.api.clients.PlayerThemesApi
-
public class PlayerThemesApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPlayerThemesApi.APIlistRequest
-
Constructor Summary
Constructors Constructor Description PlayerThemesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayerThemecreate(PlayerThemeCreationPayload playerThemeCreationPayload)Create a player Create a player for your video, and customise it.ApiResponse<PlayerTheme>createWithHttpInfo(PlayerThemeCreationPayload playerThemeCreationPayload)Create a player Create a player for your video, and customise it.voiddelete(String playerId)Delete a player Delete a player if you no longer need it.voiddeleteLogo(String playerId)Delete logoApiResponse<Void>deleteLogoWithHttpInfo(String playerId)Delete logoApiResponse<Void>deleteWithHttpInfo(String playerId)Delete a player Delete a player if you no longer need it.PlayerThemeget(String playerId)Show a player Use a player ID to retrieve details about the player and display it for viewers.ApiClientgetApiClient()ApiResponse<PlayerTheme>getWithHttpInfo(String playerId)Show a player Use a player ID to retrieve details about the player and display it for viewers.PlayerThemesApi.APIlistRequestlist()List all players Retrieve a list of all the players you created, as well as details about each one.voidsetApiClient(ApiClient apiClient)PlayerThemeupdate(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload)Update a player Use a player ID to update specific details for a player.ApiResponse<PlayerTheme>updateWithHttpInfo(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload)Update a player Use a player ID to update specific details for a player.PlayerThemeuploadLogo(String playerId, File file, String link)Upload a logo The uploaded image maximum size should be 200x100 and its weight should be 200KB.ApiResponse<PlayerTheme>uploadLogoWithHttpInfo(String playerId, File file, String link)Upload a logo The uploaded image maximum size should be 200x100 and its weight should be 200KB.
-
-
-
Constructor Detail
-
PlayerThemesApi
public PlayerThemesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
delete
public void delete(String playerId) throws ApiException
Delete a player Delete a player if you no longer need it. You can delete any player that you have the player ID for.- Parameters:
playerId- The unique identifier for the player 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 - 404 Not Found -
-
deleteWithHttpInfo
public ApiResponse<Void> deleteWithHttpInfo(String playerId) throws ApiException
Delete a player Delete a player if you no longer need it. You can delete any player that you have the player ID for.- Parameters:
playerId- The unique identifier for the player 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 - 404 Not Found -
-
deleteLogo
public void deleteLogo(String playerId) throws ApiException
Delete logo- Parameters:
playerId- The unique identifier for the player. (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 -
-
deleteLogoWithHttpInfo
public ApiResponse<Void> deleteLogoWithHttpInfo(String playerId) throws ApiException
Delete logo- Parameters:
playerId- The unique identifier for the player. (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
public PlayerThemesApi.APIlistRequest list()
List all players Retrieve a list of all the players you created, as well as details about each one.- Returns:
- APIlistRequest
- Http Response Details:
Status Code Description Response Headers 200 Success - 400 Bad Request -
-
get
public PlayerTheme get(String playerId) throws ApiException
Show a player Use a player ID to retrieve details about the player and display it for viewers.- Parameters:
playerId- The unique identifier for the player you want to retrieve. (required)- Returns:
- PlayerTheme
- 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 -
-
getWithHttpInfo
public ApiResponse<PlayerTheme> getWithHttpInfo(String playerId) throws ApiException
Show a player Use a player ID to retrieve details about the player and display it for viewers.- Parameters:
playerId- The unique identifier for the player you want to retrieve. (required)- Returns:
- ApiResponse<PlayerTheme>
- 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 -
-
update
public PlayerTheme update(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload) throws ApiException
Update a player Use a player ID to update specific details for a player. NOTE: It may take up to 10 min before the new player configuration is available from our CDN.- Parameters:
playerId- The unique identifier for the player. (required)playerThemeUpdatePayload- (required)- Returns:
- PlayerTheme
- 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 -
-
updateWithHttpInfo
public ApiResponse<PlayerTheme> updateWithHttpInfo(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload) throws ApiException
Update a player Use a player ID to update specific details for a player. NOTE: It may take up to 10 min before the new player configuration is available from our CDN.- Parameters:
playerId- The unique identifier for the player. (required)playerThemeUpdatePayload- (required)- Returns:
- ApiResponse<PlayerTheme>
- 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 -
-
create
public PlayerTheme create(PlayerThemeCreationPayload playerThemeCreationPayload) throws ApiException
Create a player Create a player for your video, and customise it.- Parameters:
playerThemeCreationPayload- (required)- Returns:
- PlayerTheme
- 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 -
-
createWithHttpInfo
public ApiResponse<PlayerTheme> createWithHttpInfo(PlayerThemeCreationPayload playerThemeCreationPayload) throws ApiException
Create a player Create a player for your video, and customise it.- Parameters:
playerThemeCreationPayload- (required)- Returns:
- ApiResponse<PlayerTheme>
- 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 -
-
uploadLogo
public PlayerTheme uploadLogo(String playerId, File file, String link) throws ApiException
Upload a logo The uploaded image maximum size should be 200x100 and its weight should be 200KB. It will be scaled down to 30px height and converted to PNG to be displayed in the player.- Parameters:
playerId- The unique identifier for the player. (required)file- The name of the file you want to use for your logo. (required)link- A public link that you want to advertise in your player. For example, you could add a link to your company. When a viewer clicks on your logo, they will be taken to this address. (optional)- Returns:
- PlayerTheme
- 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 - 400 Bad Request - 404 Not Found -
-
uploadLogoWithHttpInfo
public ApiResponse<PlayerTheme> uploadLogoWithHttpInfo(String playerId, File file, String link) throws ApiException
Upload a logo The uploaded image maximum size should be 200x100 and its weight should be 200KB. It will be scaled down to 30px height and converted to PNG to be displayed in the player.- Parameters:
playerId- The unique identifier for the player. (required)file- The name of the file you want to use for your logo. (required)link- A public link that you want to advertise in your player. For example, you could add a link to your company. When a viewer clicks on your logo, they will be taken to this address. (optional)- Returns:
- ApiResponse<PlayerTheme>
- 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 - 400 Bad Request - 404 Not Found -
-
-