我想通过使用终结点的请求来取消关注instagram上的特定用户,为此我使用了提琴手来查找。 但是我收到403错误,什么都没发生。我是这个新手。
代码如下:
var http = new XMLHttpRequest();
var url = 'https://www.instagram.com/web/friendships/8752655712/unfollow/';
var params = 'orem=ipsum&name=binny';
http.open('POST',url,true);
//Send the proper header information along with the request
http.setRequestHeader('Content-type','application/x-www-form-urlencoded');
http.onreadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
alert(http.responseText);
}
}
http.send(params);
我缺少任何技术方面的内容吗?
编辑1:登录到我的instagram帐户时,我正在从Chrome控制台发送它。