haven.dev Api Client

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

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

dev.haven
Идентификатор

Идентификатор

api-client
Последняя версия

Последняя версия

1.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

haven.dev Api Client
Client for using the https://haven.dev API
Ссылка на сайт

Ссылка на сайт

https://github.com/havenmoney/platform-clients
Организация-разработчик

Организация-разработчик

dev.haven
Система контроля версий

Система контроля версий

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

Скачать api-client

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.1.2
1.1.1
1.1.0
1.0.0