suphiyasin / instagram-api Goto Github PK
View Code? Open in Web Editor NEWSimple PHP Private API that allows you to use both mobile and web APIs of Instagram
Home Page: https://suphi.org
License: MIT License
Simple PHP Private API that allows you to use both mobile and web APIs of Instagram
Home Page: https://suphi.org
License: MIT License
hi
How to direct everyone?
by numerical ID
I want to send direct messages to other people with some fake accounts and advertise my page.
$api->user->sendMessage();
You can only send direct messages to your followers with this function
hi
Where can I get the $token?
I am using this code:
I have to use 6-digit code:
But gives an error in response: {"message":"This code is no longer valid. Please request a new code.","status":"fail","error_type":"invalid_nonce"}
PLEASE CHECK I THINK THERE IS PROBLEM IN FUNCTION
$api = new Instagram();
$username = 'mr_naveennain';
$password = 'Vikram!126116';
if(isset($_GET['factorcode'])){
$twofid = $_GET['twoid'];
//1= Sms Verifivation || 2 = backup codes || 3 = Duo app code || 4= I guess its whatsapp
$step3 = json_decode($api->login->twofactorv2($username, $twofid, $_GET["factorcode"], "3"), true);
print_r($step3);
if($step3["status"] == "ok"){
echo "login success";
}else{
echo "login fail";
}
}else{
$step1 = json_decode($api->login->loginv2($username, $password), true);
if($step1["Status"] == "ok"){
echo "already logged";
}else if($step1["Status"] == "fail" and isset($step1["TwoFactorId"])){
$twofid = $step1["TwoFactorId"];
print_r($step1);
echo '
}else{
//somthing went wrong
var_dump($step1);
}
}
Hi,
I need some help to get medias
I try to get user info with
$api->webapi->getUserInfoFromUsername($token, $username);
I see this user response include edge_owner_to_timeline_media
But no medias edges included and with response empty array
Is there a special function to retrieve media?
Thank for your awesome tools
I using python3 with your new func for enable 2 factor.
GET TOTP CODE:
{
"totp_seed":"MYYQQMO3R2PCAABSK4JIKJSHKGU266SM",
"totp_seed_id":17953438667740618,
"status":"ok"
}
PARAMS DATA:
{
"verification_code":"406162",
"_uid":"52301356617",
"_uuid":"8bd64721-c95c-4849-883a-1a6a7868d5a3",
"device_id":"android-7c9de4cd0c3c4344"
}
ENABLE TOPT:
{
"message":"",
"status":"fail"
}
Hope you can help me, thanks ๐๐ป
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.