0.0.7 • Published 7 years ago
ddsnodeclient v0.0.7
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)});