Skip to content

dive-tv/sdk-client-java

Repository files navigation

sdk-client-java

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.touchvie</groupId>
    <artifactId>sdk-client-java</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.touchvie:sdk-client-java:1.0.0"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/sdk-client-java-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.touchvie.sdk.*;
import com.touchvie.sdk.auth.*;
import com.touchvie.sdk.model.*;
import com.touchvie.sdk.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String authorization = "authorization_example"; // String | Authorization token ('Bearer <token>')
        String cardId = "cardId_example"; // String | Requested card ID
        String acceptLanguage = "acceptLanguage_example"; // String | Client locale, as language-country
        try {
            apiInstance.deleteLikes(authorization, cardId, acceptLanguage);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteLikes");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://rest.dive.tv/v1

Class Method HTTP request Description
DefaultApi deleteLikes DELETE /likes/{card_id} Delete card like
DefaultApi getCard GET /cards/{card_id} Full card detail
DefaultApi getCardVersion GET /cards/{card_id}/versions/{version} Full card detail with version
DefaultApi getCatalogMovie GET /movies/{client_movie_id} Movie catalog info
DefaultApi getChannelGrid GET /channels/{channel_id}/grid Channel events grid
DefaultApi getChannelMovie GET /channels/{channel_id} Channel movie catalog info
DefaultApi getLikes GET /likes Get card likes
DefaultApi getReadyChannels GET /channels/{channel_id_list}/ready Channel sync availability
DefaultApi getReadyMovies GET /movies/{client_movie_id_list}/ready Movie sync availability
DefaultApi getStaticChannelScene GET /channels/{channel_id}/static Static channel scene
DefaultApi getStaticMovieScene GET /movies/{client_movie_id}/static/{timestamp} Static VOD scene
DefaultApi postLikes POST /likes/{card_id} Add card like
DefaultApi postToken POST /token Token endpoint

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages