[英]how to post follow/unfollow with instagram api - php
i want to post follow / unfollow with instagram api 我想发布关注/取消关注instagram的api
i just dont understand where use to ACTION enter image description here 我只是不明白在哪里使用ACTION 在此处输入图片描述
i use this function to curl and see result: 我使用此功能来卷曲并查看结果:
function Execute_insta($url,$parametr=null)
{
$cu = curl_init($url);
if($parametr) {
curl_setopt($cu,CURLOPT_POST,true);
curl_setopt($cu,CURLOPT_POSTFIELDS,$parametr);
}
curl_setopt($cu,CURLOPT_RETURNTRANSFER,true);
curl_setopt($cu,CURLOPT_SSL_VERIFYPEER,false);
$insta = curl_exec($cu);
$insta = json_decode($insta,true);
return $insta;
}
I think curl_setopt($cu, CURLOPT_POSTFIELDS, 'action=follow');
我认为
curl_setopt($cu, CURLOPT_POSTFIELDS, 'action=follow');
should do the trick. 应该可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.