如何通过Instagram API捕获直接消息?
我搜索了api instagram是否有任何方法返回直接消息,但没有找到任何结果。你能告诉我是有什么,还是不可能?Instagram不提供?或者我可以通过编程来完成?如何通过Instagram API捕获直接消息?,instagram,Instagram,我搜索了api instagram是否有任何方法返回直接消息,但没有找到任何结果。你能告诉我是有什么,还是不可能?Instagram不提供?或者我可以通过编程来完成? 我需要捕获直接消息,可以吗 没有针对直接消息的Instagram API,而且已经快4年了,我想不会有了。您可以使用该库或Instagram PHP专用API库 不过,我必须警告你,我确实尝试过使用PHP库,Instagram不允许发送直接消息,不管我如何努力让它工作。但也许这只是我 如果您能够使用node.js,那么Thread
我需要捕获直接消息,可以吗 没有针对直接消息的Instagram API,而且已经快4年了,我想不会有了。您可以使用该库或Instagram PHP专用API库 不过,我必须警告你,我确实尝试过使用PHP库,Instagram不允许发送直接消息,不管我如何努力让它工作。但也许这只是我
如果您能够使用node.js,那么Thread.configureText似乎可以用于在node.js库上发送直接消息。使用Instagram专用API。通过这个,你可以直接发送信息。
我在C#做过,效果很好。(直接留言和上传帖子。)可能重复我制作的脚本,用于从web浏览器读取和发送Instagram直接留言:PHP库可以通过Instagram专用API发送直接留言,它对meCan有效。您可以提供指向c#项目的github链接吗?请在这里重复@Jolta我将在哪里获得globusHttpHelperMobile.postFormDataMobileLogin\u Directmessage?
string status_DM = string.Empty;
string Url_DirectMessage = "https://i.instagram.com/api/v1/direct_v2/threads/broadcast/text/";
string guid = obj_InstaUser.guid;
string userID = string.Empty; // put user id to whom you want to send message
string responce = obj_new.getHtmlfromUrl(new Uri("https://www.instagram.com/" + username));
if(string.IsNullOrEmpty(userID))
{
userID = Utils.getBetween(responce, "profilePage_", "}").Replace(" ","").Replace("\"","");
}
try
{
string postData = "recipient_users=%5B%5B%22" + userID + "%22%5D%5D&client_context=%22" + guid + "%22&text=" + text + "&thread_ids=%5B%220%22%5D";
try
{
string Finalresult = obj_InstaUser.globusHttpHelperMobile.postFormDataMobileLogin_Directmessage(new Uri(Url_DirectMessage), postData);
status_DM = "Success";
}
catch (Exception ex)
{
status_DM = "Fail";
}
}
catch(Exception ex)
{
}