Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public ToshlOAuth(ToshlClient toshlClient)
 {
     ToshlClient = toshlClient;
 }