[英]Get Direct photo on Instagram
I am developing on instagram. 我正在开发Instagram。 Now, I want to get all photo which are sent to my direct using API but until now, I could not find any way. 现在,我想获取所有发送到我的直接使用API的照片,但直到现在,我找不到任何方式。 Please help me! 请帮我!
There is no Instagram API for direct share at the moment. 目前没有直接共享的Instagram API 。 The URLs they use from the app for the direct share page are as follows, first for the list of shares: 他们在直接共享页面的应用程序中使用的URL如下所示,首先是共享列表:
and second for the pending requests 第二个是未决请求
Ok, you can use this api url to get your direct media: https://instagram.com/api/v1/direct_share/inbox/ 好的,您可以使用此API来获取您的直接媒体: https : //instagram.com/api/v1/direct_share/inbox/
But for each request, you could only get 20 records, so if you want to get all direct media, you must to do a loop for send request many times by adding the parameter "max_id" into your request to get the continous data("max_id" is the value you got from previous request). 但对于每个请求,您只能获得20条记录,因此如果您想获得所有直接媒体,则必须通过在请求中添加参数“max_id”多次为发送请求执行循环以获取连续数据(“ max_id“是您从上一个请求获得的值)。 Hope it's usefull for you. 希望它对你有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.