Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. class Program
  2. {
  3. private static UserSessionData user;
  4. private static IInstaApi _instaApi;
  5.  
  6. public static string email;
  7. public static string username;
  8. public static string password;
  9. public static string firstName;
  10.  
  11.  
  12. static void Main(string[] args)
  13. {
  14. var userSession = new UserSessionData
  15. {
  16. UserName = "snikezx2z273",
  17. Password = "Antonov12345678"
  18. };
  19.  
  20. _instaApi = InstaApiBuilder.CreateBuilder()
  21. .SetUser(userSession)
  22. .UseLogger(new DebugLogger(LogLevel.All))
  23. .SetRequestDelay(RequestDelay.FromSeconds(0, 1))
  24. .Build();
  25.  
  26. CreateEmail();
  27. Console.Read();
  28. }
  29. public static async void CreateEmail()
  30. {
  31.  
  32. var email = "bmj77433@ebbob.com";
  33. var username = "snikezx2z273";
  34. var password = "Antonov12345678";
  35. var firstName = "Andreevz";
  36.  
  37. var checkEmail = await _instaApi.CheckEmailAsync(email);
  38.  
  39. if(checkEmail.Succeeded && checkEmail.Value.Available)
  40. {
  41. Console.WriteLine("Email good");
  42. }
  43. else
  44. {
  45. Console.WriteLine("Email no good");
  46. }
  47. var create = await _instaApi.CreateNewAccountAsync(username, password, email, firstName);
  48.  
  49. if (create.Succeeded && create.Value.AccountCreated)
  50. {
  51. Console.WriteLine("good");
  52. } else
  53. {
  54. Console.WriteLine("No good");
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement