2016-06-22 5 views
4

직접 메시지를 반환 할 수있는 방법이 있으면 api 인스 타 그램을 검색 한 결과 아무 것도 발견되지 않았습니다. 뭔가 있는지 또는 가능하지 않은지 알 수 있습니까? Instagram은 제공하지 않습니까? 아니면 프로그래밍 방식으로 할 수 있습니까? 캡쳐 직접 메시지가 필요합니까?Instagram API를 통해 직접 메시지를 캡처하려면 어떻게해야합니까?

+1

[인스 타 그램 직접위한 API 지원]의 사용 가능한 복제 (http://stackoverflow.com/questions/20609028/api-support-for-instagram-direct) –

답변

3

직접 메시지 용 Instagram API는 없으며 거의 ​​4 년이되었으므로 아무 것도 없을 것입니다. Instagram node.js Private API 라이브러리 또는 Instagram PHP Private API 라이브러리를 사용할 수 있습니다.

PHP 라이브러리를 사용하려고 시도했지만 Instagram이 직접 메시지를 보내지 못하도록 경고했습니다. 아무리 해킹을 시도해도 문제가 발생하지 않았습니다. 하지만 어쩌면 이것은 단지 나였습니다 ...

node.js를 사용할 수 있다면 node.js 라이브러리에서 직접 메시지를 보내는 데 Thread.configureText를 사용할 수 있습니다.

+0

[This] (https://github.com/mgp25/Instagram-API) PHP 라이브러리는 Instagram Private API를 통해 직접 메시지를 보낼 수 있으며 저에게 도움이되었습니다. – SergeyLebedev

0

Instagram private API를 사용하십시오. 이를 통해 직접 메시지를 보낼 수 있습니다. 나는 C#에서 그 작업을 완벽하게 수행했습니다. (물론 직접 메시지 및 업로드 게시 할 수 있습니다.)

0
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) 
{ 

} 
관련 문제