Class PlayerThemesApi


  • public class PlayerThemesApi
    extends Object
    • Constructor Detail

      • PlayerThemesApi

        public PlayerThemesApi​(ApiClient apiClient)
      • PlayerThemesApi

        public PlayerThemesApi()
        Constructor for PlayerThemesApi production environment where API key is not required.
      • PlayerThemesApi

        public PlayerThemesApi​(String basePath)
        Constructor for PlayerThemesApi 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.
      • PlayerThemesApi

        public PlayerThemesApi​(String apiKey,
                               String basePath)
        Constructor for PlayerThemesApi with custom API base path
        Parameters:
        apiKey - the api key to use to authenticate to the API
        basePath - the api base path. Expected Environment.PRODUCTION.basePath (default) or Environment.SANDBOX.basePath.
    • 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 player themes Retrieve a list of all the player themes you created, as well as details about each one. Tutorials that use the [player endpoint](https://api.video/blog/endpoints/player).
        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 -