Jamendo Api Documentation
POST /v3.0/setuser/myalbum
Description
Every user has a list of favorite albums, generically called 'myalbums'. This method allows you to add an album to a user's myalbums.
Required parameters
client_id && access_token && album_id
Parameter List
Name | Type | Description |
---|---|---|
client_id | string | A Client Id provided by devportal.jamendo.com |
format | enum: {xml, json, jsonpretty} | The results formatting type |
fullcount | boolean | Setting this parameter to true, the document header will be enriched with the 'results_fullcount' value, that is, the absolute number of rows the query would return if there was no limit and offset parameter. This value is of course very useful for pagination, but please: use it only if you really need it, as it affects performances! For this performance reasons such parameter is not available in most heavy methods. |
access_token | string | A valid access token (with 'music' scope authorized) corresponding to the Jamendo user you want to update. You can get it with the OAuth2 process |
album_id | integer | The id of the album that should get added to the users albums list |
Sample
Call:
curl -X POST -d client_id="your_client_id" -d format="jsonpretty" -d access_token="your_access_token" -d album_id="10" "https://api.jamendo.com/v3.0/setuser/myalbum/"
Response:
{ "headers":{ "status":"success", "code":0, "error_message":"", "warnings":"", "results_count":0 }, "results":[ ] }