Skip to content

oracle-d/oracle-d-api-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oracle-D API

If you want to use the Oracle-D API please apply for an API key at: https://api.oracle-d.com/v1

Licence

This package is licenced under CC BY-ND 4.0

Installation

npm i oracle-d-api --save

Usage

const OracleD = require("oracle-d-api");

let api = new OracleD.AccountAPI.API({api_key: "MY_SECRET_API_KEY"});

// request a new account

let newAccount = new OracleD.AccountAPI.Account({username:"mynewusername",email:"user.email@provider.com"});

api.requestAccount(newAccount).then(account => {
    console.log(account);
}).catch(e => {
     console.log(e)
});

let account = new OracleD.AccountAPI.Account({_id: "accountID"});

// get the accounts' status

api.getAccountStatus(account.data).then(account => {
    console.log(account)
}).catch(e => {
    console.log(e)
});

// get all requested accounts
api.getAccountList().then(data => {
    console.log(data)
});

// get information about my api key
api.getDappStatus().then(data => {
    console.log(data)
});

About

NPM package to access the Oracle-D API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published