An open API service indexing awesome lists of open source software.

https://github.com/vpro/amara-java

Java client for amara
https://github.com/vpro/amara-java

amara api-client java

Last synced: about 1 year ago
JSON representation

Java client for amara

Awesome Lists containing this project

README

          

= Amara Java Client
:toc:

image:https://github.com/vpro/amara-java/workflows/build/badge.svg?[Build Status,link=https://github.com/vpro/amara-java/actions?query=workflow%3Abuild]
image:https://img.shields.io/maven-central/v/nl.vpro.amara/amara-java.svg?label=Maven%20Central[Maven Central,link=https://search.maven.org/search?q=g:%22nl.vpro.amara%22%20AND%20a:%22amara-java%22]
image:https://img.shields.io/nexus/s/https/oss.sonatype.org/nl.vpro.amara/amara-java.svg[snapshots,link=https://oss.sonatype.org/content/repositories/staging/nl/vpro/amara/amara-java]
image:http://www.javadoc.io/badge/nl.vpro.amara/amara-java.svg?color=blue[javadoc,link=http://www.javadoc.io/doc/nl.vpro.amara/amara-java]

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 https://amara.org/api/[here] (You need to be logged in)

== How to use

[source,java]
----
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 amaraActivities = amaraClient.activity().list(Activity.TYPE_APPROVE_VERSION, now - afterTimestampInSeconds).getActivities();
----

== Installation

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
[source,xml]
----

nl.vpro.amara
amara-java
0.10

----