Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deployRefer to the official documentation for more information.
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>Add this dependency to your project's build file:
compile "com.touchvie:sdk-client-java:1.0.0"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
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();
}
}
}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 |
- AccessToken
- AuthError
- AwardData
- AwardsData
- Card
- CardContainer
- CardUser
- CatalogData
- CatalogSync
- ChannelStatus
- DupleData
- ImageData
- LinkData
- ListingData
- MapData
- MovieStatus
- Product
- RatingData
- RelationModule
- SeasonsChapters
- SeasonsData
- SourceData
- TextData
- TvEvent
- TvGrid
- Awards
- Catalog
- Duple
- Image
- Link
- Listing
- Map
- Rating
- Seasons
- Single
- Text
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.