@newstackdev/iosdk-newgraph-client-js
v1.9.40
Published
JS/TS variant of Newgraph Client - Part of iOSDK by the Newcoin Foundation
Downloads
614
Keywords
Readme
Newgraph API Client
See here for more info and documentation.
Install
npm i --save @newstackdev/iosdk-newgraph-client-js
Keys
A temporary solution is to use the client token from the browser:
- sign up (duh)
- sign in to your newcoin os account
- open developer tools (cmd/ctrl + shift + i)
- navigate to developer tools -> local storage -> newsafe-auth-token
These tokens will eventually get invalidated and replaced with api keys
Getting started
const newgraph = new NewgraphApi({
baseUrl: API_URL,
securityWorker: (securityData: { token: string } | null) => {
return !securityData ? {} : { headers: { Authorization: securityData.token } };
},
});
newgraph.setSecurityData({ token });
Reference
Examples
See examples. To be continued.
Why folders are called moods?
It's a technical term. We call them folders in all other contexts.
More information
Navigate to Newcoin Docs
License
MIT