0.0.7 • Published 7 years ago

ddsnodeclient v0.0.7

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

duke-data-service-nodeclient

Node.js client to interact with the duke data service.

Installation

NPM

npm install ddsnodeclient

GitHub

git clone https://github.com/Duke-Translational-Bioinformatics/duke-data-service-nodeclient.git
cd ./duke-data-service-nodeclient
npm install

Examples

At this time, we only support low-level API calls, which means the user is responsible for chaining together promises to do more advanced functions like uploading a file. Therefore, our examples will only contain examples that don't require promise chaining.

dds = require('ddsnodeclient');

client = new dds.ApiClient({
    "agent_key": "",
    "user_key": "",
    "api_token": "",
    "api_url": ""
});

currentuserinstance = new dds.CurrentuserApi(client);
currentuserinstance.getApiV1CurrentUser().then((data) => {console.log(data.body)});
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago