Skip to content

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:

importcom.touchvie.sdk.*;
importcom.touchvie.sdk.auth.*;
importcom.touchvie.sdk.model.*;
importcom.touchvie.sdk.api.DefaultApi;
importjava.io.File;
importjava.util.*;
publicclassDefaultApiExample {
publicstaticvoidmain(String[] args) {
DefaultApiapiInstance = newDefaultApi();
Stringauthorization = "authorization_example"; // String | Authorization token ('Bearer <token>')StringcardId = "cardId_example"; // String | Requested card IDStringacceptLanguage = "acceptLanguage_example"; // String | Client locale, as language-countrytry {
apiInstance.deleteLikes(authorization, cardId, acceptLanguage);
} catch (ApiExceptione) {
System.err.println("Exception when calling DefaultApi#deleteLikes");
e.printStackTrace();
}
}
}

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
DefaultApideleteLikesDELETE /likes/{card_id}Delete card like
DefaultApigetCardGET /cards/{card_id}Full card detail
DefaultApigetCardVersionGET /cards/{card_id}/versions/{version}Full card detail with version
DefaultApigetCatalogMovieGET /movies/{client_movie_id}Movie catalog info
DefaultApigetChannelGridGET /channels/{channel_id}/gridChannel events grid
DefaultApigetChannelMovieGET /channels/{channel_id}Channel movie catalog info
DefaultApigetLikesGET /likesGet card likes
DefaultApigetReadyChannelsGET /channels/{channel_id_list}/readyChannel sync availability
DefaultApigetReadyMoviesGET /movies/{client_movie_id_list}/readyMovie sync availability
DefaultApigetStaticChannelSceneGET /channels/{channel_id}/staticStatic channel scene
DefaultApigetStaticMovieSceneGET /movies/{client_movie_id}/static/{timestamp}Static VOD scene
DefaultApipostLikesPOST /likes/{card_id}Add card like
DefaultApipostTokenPOST /tokenToken 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

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages