예제 #1
0
        public SoundCloudAccessToken Authenticate()
        {
            SoundCloudAccessToken token = SoundCloudApi.ApiAction<SoundCloudAccessToken>(ApiCommand.UserCredentialsFlow, HttpMethod.Post, Credentials.ClientID, Credentials.ClientSecret, Credentials.UserName, Credentials.Password);

            SoundCloudAccessToken = token;

            if (token != null)
            {
                IsAuthenticated = true;
            }

            return token;
        }