1.1.0 • Published 10 days ago

ya-ts-client v1.1.0

Weekly downloads
300
License
LGPL-3.0
Repository
github
Last release
10 days ago

Yagna TS Client

The ya-ts-client package provides low level API bindings in form of collection TypeScript clients generated from the Yagna public API OpenApi specifications.

The primary and only purpose of this package is to provide that basic implementation. As a "core" library, it shouldn't need to be added as a dependency to any user code, only to other Golem Network related SDKs or libraries.

If you want to start building solutions using Golem Network, here are more suitable options:

Installation

npm install --save ya-ts-client

Usage

The library exposes multiple API clients which are auto-generated from the official OpenApi specifications.

/**
 * Example of usage of the Payment API
 */
const client = new Payment.ApiClient({
  BASE: "http://localhost:7465/payment-api/v1",
  HEADERS: {
    Authorization: "Bearer your-app-key",
  },
});

const response = await client.requestor.getAllocations();

The documentation of the generated API is hosted on GitHub pages.

See also

1.1.1-beta.2

10 days ago

1.1.1-beta.0

18 days ago

1.1.1-beta.1

18 days ago

1.1.0

1 month ago

1.0.0

1 month ago

1.0.0-beta.5

2 months ago

1.0.0-beta.4

2 months ago

1.0.0-beta.3

2 months ago

1.0.0-beta.2

2 months ago

1.0.0-beta.0

2 months ago

1.0.0-beta.1

2 months ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago