@remotecash/remotecash v1.0.0
RemoteCash Javascript SDK
About
This is the Javascript SDK for the RemoteCash API.
Installation
via NPM:
npm install @remotecash/remotecash
via CDN:
https://cdn.jsdelivr.net/npm/@remotecash/remotecash@{version_number}/build/remotecash.min.js
or use the minified file in the build
folder
Getting started
Client Side
Initialize the SDK with:
window.remotecash = new RemoteCash(config);
or
const remotecash = new RemoteCash(config);
(NodeJS)
Your config
object should contain:
storageMethod
- Options aresession
forsessionStorage
andlocal
forlocalStorage
apiVersion
- Default is3
(Version 3 is the only currently supported version)apiToken
- Your RemoteCash API token
Example:
var config = {
apiVersion: 3,
storageMethod: "local",
apiToken: "authenticationTokenHere"
}
Server Side (NodeJS)
Initialize the sdk with:
const remotecash = new RemoteCash(config);
Your config
object should contain:
apiVersion
- Default is3
(Version 3 is the only currently supported version)apiToken
- Your RemoteCash API token
Example:
var config = {
apiVersion: 3,
apiToken: "authenticationTokenHere"
}
Custom API url
To use this SDK with a custom API url, your config
object should contain customAPIURL
Example:
var config = {
...,
customAPIURL: "https://whatever.stuff/
}
Documentation and usage
For more detailed documentation and usage Docs.
License
MIT license.
4 years ago