To utilize unirest for node.js install the the npm module:
$ npm install unirest
After installing the npm package you can now start simplifying requests like so:
var unirest = require('unirest');
unirest.post("https://community-jawbone-up.p.rapidapi.com/users/@me/meals") .header("X-RapidAPI-Key", "undefined") .field("note", "undefined") .field("title", "undefined") .field("place_acc", "undefined") .field("place_name", "undefined") .field("place_lat", "undefined") .field("place_lon", "undefined") .field("tz", "undefined") .field("photo_url", "undefined") .attach("photo", fs.createReadStream("undefined")) .field("time_created", "undefined") .field("items", "undefined") .end(function (result) { console.log(result.status, result.headers, result.body); });