static void likemenu() { Console.Clear(); Console.Write("ImageId: "); string ImageId = Console.ReadLine(); if (InstagramHelper.like(ImageId)) { Helper.success(ImageId + " Liked!"); } else { Helper.fail(ImageId + "not Liked!"); } }
static void commentmenu() { Console.Clear(); Console.Write("ImageId: "); string ImageId = Console.ReadLine(); Console.Write("Message: "); string message = Console.ReadLine(); if (InstagramHelper.comment(ImageId, message)) { Helper.success(ImageId + " Commented!"); } else { Helper.fail(ImageId + " not commented!"); } }
static void Main(string[] args) { if (Loader.loadsessionconf()) { if (InstagramHelper.getacc()) { Menu.loadmenu(); } else { Helper.fail("Validation error!"); } } else { Helper.fail("Error, session did not load successfully!"); } Console.ReadKey(); }
static void followmenu() { Console.Clear(); Console.Write("Username: "******"FAIL" || id[0] != "") { if (InstagramHelper.follow(id[0])) { Helper.success(username + " followed!"); return; } Helper.fail(username + "not followed!"); } }