From Hentschel
Line 7: | Line 7: | ||
* local API https://rainforestautomation.com/wp-content/uploads/2017/02/EAGLE-200-Local-API-Manual-v1.0.pdf | * local API https://rainforestautomation.com/wp-content/uploads/2017/02/EAGLE-200-Local-API-Manual-v1.0.pdf | ||
* cloud uploader spec https://rainforestautomation.com/wp-content/uploads/2017/02/Rainforest-Cloud-Uploader-Specification-v2.0-3.pdf | * cloud uploader spec https://rainforestautomation.com/wp-content/uploads/2017/02/Rainforest-Cloud-Uploader-Specification-v2.0-3.pdf | ||
+ | |||
+ | == Software == | ||
+ | * putting basic auth into headers using node.js: <pre>var base64encodedData = new Buffer(user + ':' + password).toString('base64'); | ||
+ | |||
+ | requestPromise.get({ | ||
+ | uri: 'https://example.org/whatever', | ||
+ | headers: { | ||
+ | 'Authorization': 'Basic ' + base64encodedData | ||
+ | }, | ||
+ | json: true | ||
+ | })</pre> |
Revision as of 21:18, 7 December 2017
data
docs
- local API https://rainforestautomation.com/wp-content/uploads/2017/02/EAGLE-200-Local-API-Manual-v1.0.pdf
- cloud uploader spec https://rainforestautomation.com/wp-content/uploads/2017/02/Rainforest-Cloud-Uploader-Specification-v2.0-3.pdf
Software
- putting basic auth into headers using node.js:
var base64encodedData = new Buffer(user + ':' + password).toString('base64');
requestPromise.get({
uri: 'https://example.org/whatever', headers: { 'Authorization': 'Basic ' + base64encodedData }, json: true})