예제 #1
0
        public ActionResult Toshl()
        {
            ToshlClient toshlClient = new ToshlClient()
            {
                Id = "CLIENT_ID",
                Secret = "CLIENT_SECRET"
            };

            ToshlOAuth toshlOAuth = new ToshlOAuth(toshlClient);

            string authorizeUri = toshlOAuth.GetAuthorizeUri();

            Session.Add("toshlOAuth", toshlOAuth);

            return Redirect(authorizeUri);
        }
예제 #2
0
 public ToshlOAuth(ToshlClient toshlClient)
 {
     ToshlClient = toshlClient;
 }