https://posts.so/似乎允许用户直接从网上发布到Instagram,而无需先进入instagram api。 他们如何做到这一点? 我没有看到Instagram API中的任何地方都有记录?
https://posts.so/ seems to allow users to post directly to instagram from the web without going to the instagram api first. How do they do this? I don't see that documented anywhere in the Instagram API?
最满意答案
官方Instagram API不允许上传照片,因为他们希望鼓励使用应用程序“随时随地”使用。
由于posts.so当然没有使用官方API上传照片,因此有两种方法可以实现:
他们与Instagram建立了合作伙伴关系,这让他们可以访问合作伙伴的一些特殊的Instagram API。 但这个选项极不可能 。
他们使用了非官方的API。 这是Instagram的iOS / Android应用程序用来上传照片的API。 通过使用反编译器或数据包分析器(如Wireshark)可以轻松地进行逆向工程。
这里记录了非官方API。 您正在寻找的具体方法是发布新媒体 。 检查此代码例如:
https://code.google.com/p/twitubas/source/browse/common/instagram.php
The official Instagram API does not allow uploading photos, since they want to encourage "life on the go" usage of the app.
Since posts.so are certainly not using the official API to upload photos, there are 2 ways they could do it:
They made a partnership with Instagram, which gave them access to some special Instagram API for partners. This option is highly unlikely, though.
They used the unofficial API. This is the API that the Instagram's iOS/Android apps use to upload photos. It can be easily reverse-engineered by using a decompiler or a packet analyzer such as Wireshark.
The unofficial API has been documented here. The specific method that you're looking for is post new media. Check this code for example:
https://code.google.com/p/twitubas/source/browse/common/instagram.php
更多推荐
发布评论