UNPKG

688 BMarkdownView Raw
1# Installation
2<pre>
3npm install @bipsync/apiclient
4</pre>
5
6# Examples
7## Getting the latest notes
8
9### example.js
10<pre>
11require( '@bipsync/apiclient' )()
12 .then( function( client ) {
13 // make a request to the research api
14 client.request( 'v1/research' )
15 .then( function( response ) {
16 // grab the results
17 return response.results;
18 } )
19 .map( function( research ) {
20 // print the title for each document
21 console.log( research.title );
22 } ); } );
23</pre>
24
25### run it
26<pre>
27$ node example.js
28latest note title #1
29latest note title #2
30latest note title #3
31...
32</pre>