haven.dev Api Client

Java client for using the https://haven.dev API

License

License

Categories

Categories

Java Languages CLI User Interface Retrofit Net HTTP Clients
GroupId

GroupId

dev.haven
ArtifactId

ArtifactId

java-retrofit-client
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

haven.dev Api Client
Java client for using the https://haven.dev API
Project URL

Project URL

https://github.com/havenmoney/platform-clients
Project Organization

Project Organization

dev.haven
Source Code Management

Source Code Management

https://github.com/havenmoney/platform-clients

Download java-retrofit-client

How to add to project

<!-- https://jarcasting.com/artifacts/dev.haven/java-retrofit-client/ -->
<dependency>
    <groupId>dev.haven</groupId>
    <artifactId>java-retrofit-client</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/dev.haven/java-retrofit-client/
implementation 'dev.haven:java-retrofit-client:1.0'
// https://jarcasting.com/artifacts/dev.haven/java-retrofit-client/
implementation ("dev.haven:java-retrofit-client:1.0")
'dev.haven:java-retrofit-client:jar:1.0'
<dependency org="dev.haven" name="java-retrofit-client" rev="1.0">
  <artifact name="java-retrofit-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='dev.haven', module='java-retrofit-client', version='1.0')
)
libraryDependencies += "dev.haven" % "java-retrofit-client" % "1.0"
[dev.haven/java-retrofit-client "1.0"]

Dependencies

compile (7)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar 2.3.0
com.squareup.retrofit2 : converter-scalars jar 2.3.0
com.squareup.retrofit2 : converter-gson jar 2.3.0
io.swagger : swagger-annotations jar 1.5.22
org.apache.oltu.oauth2 : org.apache.oltu.oauth2.client jar 1.0.1
io.gsonfire : gson-fire jar 1.8.0
org.threeten : threetenbp jar 1.3.5

Project Modules

There are no modules declared in this project.

Haven API Clients

Haven provides several API clients for consumption of the API. Official documentation lives at https://haven.readme.io/reference

Python

Installing

The client is published on pypi, available here: https://pypi.org/project/haven-client/

> pip install haven-client

Usage

Example usage provided here.

Kotlin

Installing

The API client is published on Maven Central here: https://mvnrepository.com/artifact/dev.haven/api-client

<dependency>
    <groupId>dev.haven</groupId>
    <artifactId>api-client</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

Example usage provided here.

Building from source

The Kotlin API lives in the folder kotlin/ and can be built with gradle. From that directory,

  • sudo apt-get install gradle OR brew install gradle
  • gradle wrapper
  • ./gradlew run # run the example code in dev.haven.client.example.HelloWorld
  • ./gradlew jar # build the jar at build/libs/haven-client-1.0.0.jar

Typescript/Node

Installing

The typescript client is published on NPM here https://www.npmjs.com/package/@havenmoney/js-client.

> npm i @havenmoney/js-client

Example

Example usage provided here.

Building from source

The Typescript API (implemented for Node.js) lives in the folder typescript/ and has support for both Typescript and Javascript. Build it using yarn in that folder. For an example, see "hello-world.ts"

  • cd typescript/
  • yarn install
  • yarn build
  • yarn hello # update the secrets in hello-world.ts!

GO

The golang API client has some upstream dependencies:

  • go get github.com/stretchr/testify/assert
  • go get golang.org/x/oauth2
  • go get golang.org/x/net/context
  • go get github.com/antihax/optional

Example code demonstrating the way to setup authentication and make API requests is in the file golang/hello-world.go. Be sure to update the credentials in that file!

REST

Haven's official documentation lives at https://haven.readme.io/reference

Using this repository

How to build:

  • yarn install
  • yarn build

How this works

Code is largely generated from the OpenAPI YAML specification. Some OpenAPI implementations provide more features than others and are manually supplemented. Packaging is handled manually.

dev.haven

Haven Money

Versions

Version
1.0