Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(playlists): add functions to create, edit, reorder and delete pl…
…aylists and edit user library playlists (#709) * feat(playlists): add functions to create, edit and delete playlists and add functions to add and remove playlists from user library * feat(playlists): add reorder function * chore(sourcery): add sourcery suggestions * feat(playlist): multiple track arguments * fix(playlist): fix my code that didnt work
- Loading branch information
Showing
11 changed files
with
1,256 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- identity | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: POST | ||
uri: https://api.deezer.com/user/me/playlists?access_token=dummy&playlist_id=8749345882 | ||
response: | ||
body: | ||
string: 'true' | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, Content-Type, Authorization, Origin, Accept, Accept-Encoding | ||
Access-Control-Allow-Methods: | ||
- POST, GET, OPTIONS, DELETE, PUT | ||
Access-Control-Expose-Headers: | ||
- Location | ||
Access-Control-Max-Age: | ||
- '86400' | ||
Cache-Control: | ||
- no-store, no-cache, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '4' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Expires: | ||
- Thu, 19 Nov 1981 08:52:00 GMT | ||
Pragma: | ||
- no-cache | ||
Server: | ||
- Apache | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Host: | ||
- blm-web-76 | ||
x-org: | ||
- FR | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- identity | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: POST | ||
uri: https://api.deezer.com/user/me/playlists?access_token=dummy&title=CoolPlaylist | ||
response: | ||
body: | ||
string: '{"id":11336219744}' | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, Content-Type, Authorization, Origin, Accept, Accept-Encoding | ||
Access-Control-Allow-Methods: | ||
- POST, GET, OPTIONS, DELETE, PUT | ||
Access-Control-Expose-Headers: | ||
- Location | ||
Access-Control-Max-Age: | ||
- '86400' | ||
Cache-Control: | ||
- no-store, no-cache, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '18' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Expires: | ||
- Thu, 19 Nov 1981 08:52:00 GMT | ||
Pragma: | ||
- no-cache | ||
Server: | ||
- Apache | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Host: | ||
- blm-web-83 | ||
x-org: | ||
- FR | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- identity | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: DELETE | ||
uri: https://api.deezer.com/playlist/11336219744?access_token=dummy | ||
response: | ||
body: | ||
string: 'true' | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, Content-Type, Authorization, Origin, Accept, Accept-Encoding | ||
Access-Control-Allow-Methods: | ||
- POST, GET, OPTIONS, DELETE, PUT | ||
Access-Control-Expose-Headers: | ||
- Location | ||
Access-Control-Max-Age: | ||
- '86400' | ||
Cache-Control: | ||
- no-store, no-cache, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '4' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Expires: | ||
- Thu, 19 Nov 1981 08:52:00 GMT | ||
Pragma: | ||
- no-cache | ||
Server: | ||
- Apache | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Host: | ||
- blm-web-38 | ||
x-org: | ||
- FR | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- identity | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- python-requests/2.29.0 | ||
method: DELETE | ||
uri: https://api.deezer.com/user/me/playlists?access_token=dummy&playlist_id=8749345882 | ||
response: | ||
body: | ||
string: 'true' | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Allow-Headers: | ||
- X-Requested-With, Content-Type, Authorization, Origin, Accept, Accept-Encoding | ||
Access-Control-Allow-Methods: | ||
- POST, GET, OPTIONS, DELETE, PUT | ||
Access-Control-Expose-Headers: | ||
- Location | ||
Access-Control-Max-Age: | ||
- '86400' | ||
Cache-Control: | ||
- no-store, no-cache, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '4' | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
Expires: | ||
- Thu, 19 Nov 1981 08:52:00 GMT | ||
Pragma: | ||
- no-cache | ||
Server: | ||
- Apache | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Host: | ||
- blm-web-152 | ||
x-org: | ||
- FR | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.