/// <summary> /// Authorize mode /// http://www.scoop.it/dev/api/1/intro /// </summary> /// <param name="page"></param> /// <returns></returns> public ActionResult Index(int page = 0) { if (this.AccessTokenModel == null) { return(RedirectToAction("AuthenticateToScoopIt")); } else { var authorizeaccess = new AuthorizeAccess(this.AccessTokenModel); var topic = new ScoopItService(authorizeaccess).GetTopic( ConfigurationManager.AppSettings["TOPIC_Name"], page); //ViewModel var topicPage = new TopicViewModel(page, topic); return(this.View(topicPage)); } }
/// <summary> /// Authorize Mode /// </summary> /// <param name="authorizeAccess"></param> public ScoopItService(AuthorizeAccess authorizeAccess) { this.InitScoopItService(authorizeAccess.AccessCredentials); }