Announcements

Help Wizard

Step 1

NEXT STEP

Issue on Login Success callback Method_userPrivate.product = NULL

Issue on Login Success callback Method_userPrivate.product = NULL

Cause:

On user login(initiated by using Spotify WebAPIs)  when we receive the login success callback method we are getting the variable(declared in userPrivate class) “product as null” instead of premium.

Additional Details:
1. Spotify API - curl -X GET "https://api.spotify.com/v1/me

2. Spotify Response –

 

private SpotifyApi spotifyApi= new SpotifyApi();

private SpotifyService spotifyService;

            spotifyService = spotifyApi.getService();

            spotifyService.getMe(new Callback<UserPrivate>() {

                @Override

                public void success(UserPrivate userPrivate, retrofit.client.Response response) {

                        Note : We are getting userPrivate.product as NULL

                    }

 

3.Spotify web-api library:

compile 'com.github.kaaes:spotify-web-api-android:0.4.1'

 

Reply
0 Replies

Suggested posts