Table of Contents
This is a simple java client for the amara project (https://amara.org/). It isn’t yet complete, but methods can easily be added. The API itself is documented here (You need to be logged in)
import nl.vpro.amara.domain.*;
import nl.vpro.amara.Client;
...
Client amaraClient = Client.builder()
.url(getRequiredConfig("amara.api.url"))
.user(getRequiredConfig("amara.api.username"))
.apiKey(getRequiredConfig("amara.api.key"))
.team(getRequiredConfig("amara.api.team"))
.build();
Activity amaraActivity = amaraClient.activities().get("5036197");
Video amaraVideo = amaraClient.videos().get("FSW0qzp2Enlk");
List<Activity> amaraActivities = amaraClient.activity().list(Activity.TYPE_APPROVE_VERSION, now - afterTimestampInSeconds).getActivities();
Download the most recent jar from: https://oss.sonatype.org/content/repositories/snapshots/nl/vpro/amara/amara-java and install it like you’d normally would.
Or you can add this to your pom.xml
<dependency>
<groupId>nl.vpro.amara</groupId>
<artifactId>amara-java</artifactId>
<version>0.10</version>
</dependency>