-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.php
41 lines (29 loc) · 1.72 KB
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
require __DIR__.'/vendor/autoload.php';
//--------------- Login and Create Session-----------------------//
/*$ig = new Instagram\Login\Instagram('USERNAME', 'PASSWORD');
$cooki = $ig->login();
$session = new \Instagram\Login\Session();
print_r($session->SetSession($cooki->getCookieByName('mid')->getValue(),$cooki->getCookieByName('csrftoken')->getValue(),$cooki->getCookieByName('sessionid')->getValue()));*/
//-------------------------- GET Media Post ---------------------//
/*$media = new \Instagram\Media\Post('https://www.instagram.com/p/CfJec1mMLie/?igshid=YmMyMTA2M2Y=');
print_r( $media->GetPost());*/
//----------------------- GET Link Story------------------------//
/*$story = new \Instagram\Media\Story('https://instagram.com/stories/pcgadjettv/2868234876450457114?igshid=MDJmNzVkMjY=');
echo $story->GetLink();*/
//------------------------ GET All Story ------------------------//
/*$story = new \Instagram\Media\AllStory('click.ir');
print_r( $story->GetLink());
echo $story->MediaCount();*/
//------------------------- GET Link High Light------------------//
/*$high = new \Instagram\Media\HighLight('https://www.instagram.com/s/aGlnaGxpZ2h0OjE3OTI5NjQ4NzIzOTAyNjMy?story_media_id=2768449635828641458_7247131961&igshid=YmMyMTA2M2Y=');
echo $high->GetLink();*/
//------------------------ GET ALL High Light --------------------//
//$all = new \Instagram\Media\AllHighLight();
/*$all->GetAllHighLight('click.ir');
print_r($all->GetHighLight());*/
/*$all->GetHighLightmedia('highlight:17917690438338215');
print_r($all->HighLightLink());*/
//------------- GET Account Info ---------------------//
$info = new \Instagram\Media\Info('click.ir');
echo $info->GetInfo()[0]['username'];