1.0.2 • Published 4 years ago

@octopusx/ndk v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Octopusx Sdk

Build Status

Description

Simple universal SDK for easy consumption of OctopusX APIs.

Installation

npm install  @octopusx/ndk

Usage

import Sdk from  @octopusx/ndk

const client = new Ndk()

You can set request options for client instance, and also for each request function call, which is useful because you can then use global instance of SDK client, with globally defined x-api-key, but still give separate x-authorization header for each user:

const auth = await client.register(userData);