Small Lesson on Using Request in node.js with Form-data
I was playing around with 46elks.com api for sending SMS (it’s a Swedish Twilio). Trying to send data using request I got 404 Not Found all the time. Using something like below. var reqeustOptions = { uri: urljoin(apiBaseUrl, apiBasePath, ‘SMS’), method: ‘POST’, auth: { user: ‘username’, pass: ‘pwd’ }, formData: { from: fromNubmer, to: toNumber, […]