This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To use the Spotify connector, before calling any Spotify operation please add the <spotify.init> element in all configurations and <spotify.getAccessTokenFromRefreshToken> element in configurations that require user authorization.

Click Spotify operations for more details about Spotify resources.

Spotify connector uses Authorization Code Flow.

Note

To access user-related data such as playlists and musics saved in user library through the Web API, application must get the user’s authorization to access those data. So all User library and User playlist methods require application registration and user authorization.

init
<spotify.init/>
getAccessTokenFromRefreshToken
<spotify.getAccessTokenFromRefreshToken>
    <clientId>f043fec58a584539ba94c0c588136712</clientId>
    <clientSecret>b421eecdfe184be29b1d297505befcac</clientSecret>
    <grantType>refresh_token</grantType>
    <refreshToken>AQCQPj6__vnciBWMpS1lJ_V_oefCZUy2V7z_Ha7WBoZZTKRsVPgDTtecOMN5rxXs9mvtencluvX3m_RNCsTqTTJtwZCmcrte_1Ar_SzXDug-AtdbSiZXMObPa8Kw0-8tE8c</refreshToken>
</spotify.getAccessTokenFromRefreshToken>
Properties
  • clientId          : IValue of the API Key given when you registered your application with Spotify API.
  • clientSecret : Client secret of Spotify API.
  • grantType    : Token grant type. Value must be set to authorization_code.
  • refreshToken : Refresh token to get access token.

Now you have connected to Spotify, use the information in the following resources to perform the operations with the connector. After you have completed the configurations, go through Testing the Spotify Integration to test those operations.

  • No labels