require( '@bipsync/apiclient' )()
.then( function( client ) {
// make a request to the research api
client.request( 'v1/research' )
.then( function( response ) {
// grab the results
return response.results;
} )
.map( function( research ) {
// print the title for each document
console.log( research.title );
} ); } );
run it
$ node example.js // --options='{"property":"value"}'
latest note title #1
latest note title #2
latest note title #3
...