1.0.2 • Published 4 years ago
@octopusx/ndk v1.0.2
Octopusx Sdk
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);