Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const IgApiClient = require('instagram-private-api').IgApiClient;
- const ig = new IgApiClient();
- ig.state.generateDevice(process.env.IG_USERNAME);
- // you'll have to define IG_USERNAME and IG_PASSWORD
- (async ()=>{
- const response = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
- console.log(response);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement