@savitar.exchange/savitar-api-client
v0.0.1-b
Published
Savitar Exchange API client for browser and Node
Downloads
4
Readme
Savitar API Client for JavaScript
The official Node.js/Browser library for Savitar's API.
Table of Contents
Getting Started
Install
Node.js / Browserify / webpack
We are browserifyable and webpack friendly.
npm install @savitar.exchange/savitar-api-client --save
# OR
yarn add @savitar.exchange/savitar-api-client
<script> tag using CDNs
Recommended: jsDelivr.com
jsDelivr is a global CDN delivery for JavaScript libraries.
<script src="https://cdn.jsdelivr.net/npm/@savitar.exchange/savitar-api-client/dist/savitar.min.js"></script>
Quick Start
Initialize the client
You first need to initialize the client. For that you need your Application ID and Application Secret.
var savitar = require('@savitar.exchange/savitar-api-client');
// OR
import * as savitar from '@savitar.exchange/savitar-api-client';
var publicClient = new savitar.PublicClient();
var authenticatedClient = new savitar.AuthenticatedClient('applicationID', 'apiSecret');