public HttpResponseMessage Get() { var response = Request.CreateResponse(HttpStatusCode.Found); response.Headers.Location = SpotifyAuthorizer.GetAuthorizationUrl(_clientId, _redirect, _requiredScopes); return(response); }
public Service(Func <string, SpotifyAuthorizedClient> clientFactory, SpotifyAuthorizer authorizer) { _clientFactory = clientFactory; _authorizer = authorizer; _clientId = ConfigurationManager.AppSettings["ClientId"]; _clientSecret = ConfigurationManager.AppSettings["ClientSecret"]; _redirect = ConfigurationManager.AppSettings["Redirect"]; _start = new ManualResetEvent(false); }
public Service(Func<string, SpotifyAuthorizedClient> clientFactory, SpotifyAuthorizer authorizer) { _clientFactory = clientFactory; _authorizer = authorizer; _clientId = ConfigurationManager.AppSettings["ClientId"]; _clientSecret = ConfigurationManager.AppSettings["ClientSecret"]; _redirect = ConfigurationManager.AppSettings["Redirect"]; _start = new ManualResetEvent(false); }