UNPKG

@octopusx/ndk

Version:

octopus x sdk to connect to the octopusx grids and services

22 lines (11 loc) 679 B
# Octopusx Sdk [![Build Status](https://travis-ci.org/op-developer/op-api-javascript-sdk.svg?branch=master)](https://travis-ci.org/op-developer/op-api-javascript-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);