hamedsz / instagram-private-api
instagram-private-api
v1.8
2020-10-06 13:07 UTC
Requires
- php: ^7.2.5
- rmccue/requests: ^1.7.0
Requires (Dev)
- facade/ignition: ^2.0
- fzaninotto/faker: ^1.9.1
- larapack/dd: ^1.1
- mockery/mockery: ^1.3.1
- nunomaduro/collision: ^4.1
- phpunit/phpunit: ^8.5
README
a library for instagram private web api
Install
From composer
composer require hamedsz/instagram-private-api
or clone , download it.
Login to Instagram
use hamedsz\instagram_private_api\Instagram;
require_once 'vendor/autoload.php';
$instagram = Instagram::create("USERNAME" , "PASSWORD")
->login();
Examples
Follow by id
use hamedsz\instagram_private_api\Instagram;
use hamedsz\instagram_private_api\Requests\FriendShips\Follow;
require_once 'vendor/autoload.php';
$instagram = Instagram::create("USERNAME" , "PASSWORD")
->login();
$follow = new Follow($instagram , USER_ID);
$followResponse = $follow->execute();