Create a Playlist
Request
POST /user/playlists
Parameter
HEADER PARAMETER | VALUE |
---|---|
Content-Type | Required Set to application/json |
Accept-Language | Such as zh-CN,en-US... default en |
app_id | Required The app ID provided to you by Boomplay when you register your application. |
Authorization | Required Access Token (The access token from ImplicitGrant or RefreshToken ) |
REQUEST PARAMETER | Required | VALUE |
---|---|---|
name | true | Required string The name of playlist. |
description | false | Required string The description of playlist. |
privacy | false | Required string Public/Private default Private. |
Responses Body
Body
code (integer) required
desc (string)
data (object)playlist_id (integer) The Boomplay ID for the playlist.
playlist_title (string) The Boomplay title for the playlist.
privacy (string) Privacy Status Public / Private
web_url (string) web url.
mobile_url (string) mobile url.
Request Sample
POST /user/playlists
Authorization: ${authorization}
app_id: ${app_id}
Host: openapi.boomplay.com
Response Example
{
"desc": null,
"code": 0,
"data": {
"playlist_id": 40002667,
"playlist_title": "野花的歌单",
"privacy": "Public",
"web_url": "https://test.boomplay.com/playlists/40002667?srModel=openapi_hb1",
"mobile_url": "https://test.boomplay.com/share/playlist/40002667?srModel=openapi_hb1"
}
}