private static void Execute() { _InstagramGraphApi = InstagramGraphApiBuilder.CreateBuilder() .SetUser(new UserSessionData { Username = "******", Password = "******" }) .Build(); TestClass testClass = new TestClass(_InstagramGraphApi); var IsAuthenticated = testClass.ExecuteLoginTest(); if (!IsAuthenticated) { return; } //for example : var userDetails = testClass.GetUserDetailsTest("milad._.raeisi"); Console.WriteLine("================================="); }
public TestClass(IInstagramGraphApi IInstagramGraphApi) { _InstagramGraphApi = IInstagramGraphApi; }
public InstagramSyncController(IInstagramGraphApi instagramGraphApi, IProductsRepository productsRepository) { _IInstagramGraphApi = instagramGraphApi; _ProductsRepository = productsRepository; }