Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
77 lines (60 sloc) 2.075 kb

Playlist Service : getUserPlaylists

GET playlist/getUserPlaylists

Description

Get both public and private playlists of the authenticated user.

NB : Return only public playlists of the user if the request is not authenticated.


Requires authentication

Requires a valid app_id

If you wish to get the private playlists of a user, a valid user_auth_token is required.


Parameters

  • app_id - required : Your Application ID (see Application authentication)
  • user_id - optional : The user ID to fetch the playlists of.
  • username - optional : Alternatively, its username.
  • user_auth_token - optional : The authenticated user token (see User authentication)
  • order- optional : request a different order in the return

Example

Request

 http://www.qobuz.com/api.json/0.2/playlist/getUserPlaylists?app_id=100000000&username=loris&limit=2

Return

{
    "playlists": {
        "offset": 0,
        "limit": 2,
        "total": 31,
        "items": [
            {
                "id": 213654,
                "name": "fat",
                "description": "",
                "position": 0,
                "created_at": 1354011415,
                "updated_at": 1354011415,
                "is_public": true,
                "is_collaborative": false,
                "owner": {
                    "id": 4350,
                    "name": "loris"
                }
            },
            {
                "id": 34225,
                "name": "dance dance revolution",
                "description": null,
                "position": 0,
                "created_at": 1307112433,
                "updated_at": 1353328495,
                "is_public": true,
                "is_collaborative": false,
                "owner": {
                    "id": 378,
                    "name": "blanchedelaforce"
                }
            }
        ]
    }
}
Jump to Line
Something went wrong with that request. Please try again.