@newstackdev/iosdk-newgraph-client-js
TypeScript icon, indicating that this package has built-in type declarations

1.9.85 • Public • Published

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:

  1. sign up (duh)
  2. sign in to your newcoin os account
  3. open developer tools (cmd/ctrl + shift + i)
  4. 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

API (Wip)

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

/@newstackdev/iosdk-newgraph-client-js/

    Package Sidebar

    Install

    npm i @newstackdev/iosdk-newgraph-client-js

    Weekly Downloads

    115

    Version

    1.9.85

    License

    MIT

    Unpacked Size

    1.71 MB

    Total Files

    10

    Last publish

    Collaborators

    • piffie
    • yu-newlife
    • tulean96
    • ig.newlife
    • igorrubinovich
    • vitalyrue