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
- Host: GitHub
- URL: https://github.com/vpro/amara-java
- Owner: vpro
- License: apache-2.0
- Created: 2016-05-13T10:49:21.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T22:32:45.000Z (over 3 years ago)
- Last Synced: 2025-02-16T15:17:31.336Z (over 1 year ago)
- Topics: amara, api-client, java
- Language: Java
- Homepage:
- Size: 585 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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
----