A Java HTTP Client for the Kinto API.
Based of the Python library kinto-http.py and its JavaScript equivalent kinto-http.js.
-
The library is published on maven central, just add the following to your pom.xml:
<dependency> <groupId>com.intesens</groupId> <artifactId>kinto-http-java</artifactId> <version>0.2.2</version> </dependency>
-
Create an instance of
KintoClient
, several constructors are available (see javadoc) -
Auth to kinto is only supported via headers at the moment:
Map<String, String> headers = new HashMap<String, String>(); headers.put("Authorization", "Basic <token>"); headers.put("Accept", "application/json"); headers.put("Content-Type", "application/json"); KintoClient kintoClient = new KintoClient("https://module-type-repo.herokuapp.com/v1", headers);
Contribution is open to all.
Intesens team will review the PRs but if you wish to take a leading role in the project, get in touch with us (opensource, intesens, com)