haven.dev Api Client

Client for using the https://haven.dev API

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

dev.haven
ArtifactId

ArtifactId

api-client
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

haven.dev Api Client
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 api-client

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.31
org.jetbrains.kotlin : kotlin-reflect jar 1.3.31
com.squareup.moshi : moshi-kotlin jar 1.8.0
com.squareup.moshi : moshi-adapters jar 1.8.0
com.squareup.okhttp3 : okhttp jar 3.14.2

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.1.2
1.1.1
1.1.0
1.0.0