tamasvar
tamasvar
''' var mediaPromise; if (msg.media && Buffer.isBuffer(msg.media)) { mediaPromise = node.twitterConfig.post("https://upload.twitter.com/1.1/media/upload.json",{ command: "INIT", total_bytes: msg.mediaSize, media_type: msg.mediaType }).then(function(result) { if (result.status === 200) { return result.body.media_id_string; } else { throw...
I know that the code doesn't work yet, that's why I wrote it here in case someone could fix it so that it works
https://github.com/node-red/node-red-nodes/pull/967