public ISoundCloudClient DirectConnect(string clientId, string clientSecret, string userName, string password) { var credentials = new SCCredentials { ClientId = clientId, ClientSecret = clientSecret }; var soundCloudRawClient = soundCloudRawClientFactory.Create(credentials); IAuthApi authApi = CreateAuthApi(soundCloudRawClient); var accessToken = authApi.AuthorizeByPassword(userName, password); soundCloudRawClient.AccessToken = accessToken; var soundCloudClient = soundCloudClientBuilder.Build(soundCloudRawClient); return(soundCloudClient); }