Skip to content

vpro/amara-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

253 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amara Java Client

Table of Contents

Build Status Maven Central snapshots javadoc

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)

How to use

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();

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

<dependency>
 <groupId>nl.vpro.amara</groupId>
 <artifactId>amara-java</artifactId>
 <version>0.10</version>
</dependency>

About

Java client for amara

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages