NicklasWallgren / instagram-api

Instagram Private API
MIT License
147 stars 47 forks source link

Add support for follow, like and comment #12

Closed mohammad-imanni closed 5 years ago

mohammad-imanni commented 5 years ago

please write a wiki or example for use this api to follow,like,comment .

NicklasWallgren commented 5 years ago

I'll look into it.

NicklasWallgren commented 5 years ago

It's now possible to follow, and unfollow a user.

$response = $instagram->searchByUser("instagram");

/**
 * @var \Instagram\SDK\DTO\General\User $user
 */
$user = current($response->getUsers());

$response = $user->follow();

var_dump($response->getFriendshipStatus()->getFollowing());
NicklasWallgren commented 5 years ago

Fixed