Beispiel #1
0
        public async Task <ActionResult> MyFeed()
        {
            var oAuthResponse = Session["InstaSharp.AuthInfo"] as OAuthResponse;

            if (oAuthResponse == null)
            {
                return(RedirectToAction("Login"));
            }

            var users = new Endpoints.Users(config, oAuthResponse);

            var feed = await users.Feed(null, null, null);

            return(View(feed.Data));
        }
Beispiel #2
0
        public async Task<ActionResult> MyFeed()
        {
            var oAuthResponse = Session["InstaSharp.AuthInfo"] as OAuthResponse;

            if (oAuthResponse == null)
            {
                return RedirectToAction("Login");
            }

            var users = new Endpoints.Users(config, oAuthResponse);

            var feed = await users.Feed(null, null, null);

            return View(feed.Data);
        }
Beispiel #3
0
        public async Task Feed()
        {
            var result = await users.Feed();

            Assert.IsTrue(result.Data.Count > 0);
        }