将instagram上的图片从vuejs应用共享到用户个人资料

问题描述 投票:0回答:1

我必须将我的应用程序中的图像分享到instagram。是否有任何api或自定义代码?

vue.js vuejs2 vue-component vuetify.js instagram-api
1个回答
0
投票

没有官方的方法,但是存在hack,并且库中使用了其中一种hack-https://github.com/LevPasha/Instagram-API-python

这是他们照片上传的实现-

from InstagramAPI import InstagramAPI

InstagramAPI = InstagramAPI("login", "password")
InstagramAPI.login()  # login

photo_path = '/path/to/photo.jpg'
caption = "Sample photo"
InstagramAPI.uploadPhoto(photo_path, caption=caption)

您需要确保不要过度使用它,因为这可能会导致您的instagram帐户被暂停。

© www.soinside.com 2019 - 2024. All rights reserved.