【发布时间】:2019-09-02 21:21:34
【问题描述】:
这个问题被问了很多,但最后更新的答案是在 3-4 年前。我想知道我是否能够使用 mgp25 (https://github.com/mgp25/Instagram-API) 制作的 Instagram 的 PHP API 并在我的商业 Instagram 帐户上关注知道他的 Instagram 用户名的用户,例如这个用户名 - girlinred.band
我看到有取消关注的代码,但我找不到关注的代码:
/**
* Remove one of your followers.
*
* @param string $userId Numerical UserPK ID.
*
* @throws \InstagramAPI\Exception\InstagramException
*
* @return \InstagramAPI\Response\FriendshipResponse
*/
public function removeFollower(
$userId)
{
return $this->ig->request("friendships/remove_follower/{$userId}/")
->addPost('_uuid', $this->ig->uuid)
->addPost('_uid', $this->ig->account_id)
->addPost('_csrftoken', $this->ig->client->getToken())
->addPost('user_id', $userId)
->addPost('radio_type', 'wifi-none')
->getResponse(new Response\FriendshipResponse());
}
【问题讨论】:
-
谢谢。我编辑了我的问题