Skip to content

A Java wrapper around the JSON API provided by w2g.tv

License

Notifications You must be signed in to change notification settings

c-eg/watch2getherapi

Repository files navigation

Watch2Gether API

Download GitHub License

This library provides a Java-wrapper around the JSON API provided by Watch2Gether, which is a service to watch videos online with others.

Setup

It's available via Maven Central. Just add it as dependency to your project.

Maven
<dependency>
    <groupId>uk.co.conoregan</groupId>
    <artifactId>watch2getherapi</artifactId>
    <version>{version}</version>
</dependency>
Gradle (Kotlin)
dependencies {
    implementation("uk.co.conoregan:watch2getherapi:{version}")
}

Usage

To register for a Watch2Gether API key, click Tools / API from within your profile page.

With this you can instantiate uk.co.conoregan.watch2getherapi.Watch2GetherApi, which contains all the methods for making requests to the Watch2Gether API.

Watch2GetherApi api = new Watch2GetherApi("<apikey>");

Project Logging

This project uses SLF4J to abstract the logging in the project. To use the logging in your own project you should add one of the provided adapter bindings.