예제 #1
0
        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;
 }
예제 #3
0
 public InstagramSyncController(IInstagramGraphApi instagramGraphApi, IProductsRepository productsRepository)
 {
     _IInstagramGraphApi = instagramGraphApi;
     _ProductsRepository = productsRepository;
 }