com.spotify.sdk.android.authentication.AuthenticationRequest Java Examples
The following examples show how to use
com.spotify.sdk.android.authentication.AuthenticationRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpotifyManagerImpl.java From mirror with Apache License 2.0 | 5 votes |
@Override public void doAuthentication() { final AuthenticationRequest request = new AuthenticationRequest .Builder(mClientId, AuthenticationResponse.Type.TOKEN, mClientRedirect) .setScopes(new String[]{"streaming", "playlist-read-private", "user-library-read",}) .build(); AuthenticationClient.openLoginActivity(mPluginFeatureManager.getForegroundActivity(), REQUEST_CODE, request); }
Example #2
Source File: MainActivity.java From Pasta-for-Spotify with Apache License 2.0 | 5 votes |
private void openRequest() { AuthenticationRequest.Builder builder = new AuthenticationRequest.Builder(pasta.CLIENT_ID, AuthenticationResponse.Type.TOKEN, REDIRECT_URI); builder.setScopes(new String[]{"user-read-private", "user-read-email", "streaming", "user-follow-read", "user-follow-modify", "user-library-read", "playlist-read-private", "playlist-modify-public", "playlist-modify-private"}); AuthenticationRequest request = builder.build(); AuthenticationClient.openLoginActivity(this, REQUEST_CODE, request); }
Example #3
Source File: LoginActivity.java From spotify-web-api-android with MIT License | 5 votes |
public void onLoginButtonClicked(View view) { final AuthenticationRequest request = new AuthenticationRequest.Builder(CLIENT_ID, AuthenticationResponse.Type.TOKEN, REDIRECT_URI) .setScopes(new String[]{"playlist-read"}) .build(); AuthenticationClient.openLoginActivity(this, REQUEST_CODE, request); }
Example #4
Source File: CPlaylistActivity.java From YTPlayer with GNU General Public License v3.0 | 3 votes |
void commonSpotifyConnect(String urltosearch) { AuthenticationRequest.Builder builder = new AuthenticationRequest.Builder(CLIENT_ID, AuthenticationResponse.Type.TOKEN, REDIRECT_URI); builder.setScopes(new String[]{"streaming"}); AuthenticationRequest request = builder.build(); AuthenticationClient.openLoginActivity(this, REQUEST_CODE, request); }
Example #5
Source File: SpotifyLoginActivity.java From android-spotify-demo with MIT License | 3 votes |
private void openLoginWindow() { AuthenticationRequest.Builder builder = new AuthenticationRequest.Builder(CLIENT_ID, AuthenticationResponse.Type.TOKEN,REDIRECT_URI); builder.setScopes(new String[]{"user-read-private", "streaming", "user-top-read", "user-read-recently-played"}); AuthenticationRequest request = builder.build(); AuthenticationClient.openLoginActivity(this, REQUEST_CODE, request); }