0.0.7 • Published 2 months ago

@swit-api/api-client v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Swit Api Client

  • The Swit Api Client provides an HTTP Client for Swit Open Api.

Requirements

  • Nodejs v18 or higher

Install

npm install @swit-api/api-client

Basic Usage

Create Client

Create an instance by inserting the access token obtained from oauth api with the ApiClient class.

You can use v1 open api through v1 properties on created client objects.

import { ApiClient, ApiClientConfig } from '@swit-api/api-client';

// YOUR TOKEN
const token = process.env.SWIT_OPEN_API_TOKEN;
const config: ApiClientConfig= {
    token: SWIT_OPEN_API_TOKEN,
};

const client = new ApiClient(config);
const clientV1 = client.v1;

Call Api

const clientV1 = client.v1;

Error handle

0.0.7

2 months ago

0.0.6

2 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

4 months ago

0.0.1

6 months ago

0.0.1-alpha.20

6 months ago

0.0.1-alpha.14

7 months ago

0.0.1-alpha.13

7 months ago

0.0.1-alpha.12

7 months ago

0.0.1-alpha.11

7 months ago

0.0.1-alpha.10

7 months ago

0.0.1-alpha.9

7 months ago

0.0.1-alpha.7

7 months ago

0.0.1-alpha.6

7 months ago

0.0.1-alpha.4

7 months ago

0.0.1-alpha.3

7 months ago

0.0.1-alpha.2

7 months ago

0.0.1-alpha.1

7 months ago

0.0.1-alpha.0

7 months ago