@datagica/datanote-api-client
v0.0.16
Published
Datanote API client
Downloads
7
Readme
Datanote API client
Very basic Node client for the Datanote API (only one endpoint)
Quickstart
> require('@datagica/datanote-api-client')()(
'pablo picasso',
{ domain: 'arts' }
).then(res =>
console.log(JSON.stringify(res, null, 2))
)
Usage
const Datanote = require("@datagica/datanote-api-client");
const datanote = Datanote({
url: 'https://test-api.datanote.io',
token: 'test'
})
// note if you omit the types, the API will try to auto detect them but this is
// not very accurate for the moment
datanote('My name is Jane doe and I study the ebolavirus', {
types: [ 'protagonist', 'virus' ]
}).then(result => {
//
})