尝试将视频上传到instagram表单nodejs

时间:2017-03-31 06:59:59

标签: node.js instagram-api

我正在尝试从npm模块上传视频到Instagram

https://www.npmjs.com/package/instagram-private-api

使用该功能,但它让我承诺拒绝错误

Upload.video(session,'./path/to/your/video.mp4','./path/to/your/coverImg.jpg')
.then(function(upload) {
    return Media.configureVideo(session, upload.uploadId, 'akward caption', uploadInfo.durationms);
})
.then(function(medium) {
    // we configure medium, it is now visible with caption 
    console.log(medium.params)
})

0 个答案:

没有答案