Skip to content

Commit

Permalink
added simple restClient to play with during workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
tonnoz committed Sep 2, 2019
1 parent 2650048 commit 1ca2379
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"connect-sse": "^1.2.0",
"express": "^4.17.1",
"node-neurosky": "0.0.1",
"pubsub-js": "^1.7.0"
"pubsub-js": "^1.7.0",
"request": "^2.88.0"
}
}
15 changes: 15 additions & 0 deletions restmind.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const request = require('request');

const options = {
url: '',
headers: {

},
method: 'POST'
};

function callback(error, response, body) {
console.log(JSON.stringify(body));
}

request(options, callback);

0 comments on commit 1ca2379

Please sign in to comment.