Jamendo Api Documentation
POST /v3.0/setuser/fan
Description
Use this method to let the user identified by 'userid' become a fan of the artist identified 'artistid' (/users/artists?relation='fan'). Note that if the artist doesn't exist, no error will be raised, but the track will not appear in any read request of api and website.
Required parameters
client_id && access_token && artist_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 |
artist_id | integer |
Sample
Call:
curl -X POST -d client_id="your_client_id" -d format="jsonpretty" -d access_token="your_access_token" -d artist_id="6" "https://api.jamendo.com/v3.0/setuser/fan/"
Response:
{ "headers":{ "status":"success", "code":0, "error_message":"", "warnings":"", "results_count":0 }, "results":[ ] }