This library provides a Java-wrapper around the JSON API provided by Watch2Gether, which is a service to watch videos online with others.
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}")
}
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>");
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.