ShelfNetwork JS SDK
WARNING: This package name is deprecated and won't be maintained in the future. Use @shelf.network/js-sdk instead.
Overview
shelf-network-sdk
is a client-side Javascript library for ShelfNetwork distributed auction platform.
Getting Started
-
Add ShelfNetwork SDK to your project:
npm install -S shelf-network-sdk
-
Create an SDK instance:
import { ShelfNetwork } from 'shelf-network-sdk' const sdk = await ShelfNetwork.create({ gatewayUrl: 'https://api.stagings.shelf.network' })
-
Log into your account:
const token = await sdk.auth.getToken('my@email.com', '<my password>') sdk.useToken(token)
-
Read the docs
Development
Check out our Development Guide.
License
shelf-network-sdk is licensed under an Apache-2.0 license.