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); }
public ToshlOAuth(ToshlClient toshlClient) { ToshlClient = toshlClient; }