Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menu for adding an artist/album from a search to the Deezer favorites. #9

Open
Uukrull opened this issue Mar 29, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Uukrull
Copy link

Uukrull commented Mar 29, 2021

Describe the bug

As title says. It would be greatly appreciated to be able to do that. From a Google search (I don't know if the same could be applied to artists and albums)

"Can I get an example of a POST request?"

If you would like to add songs to a playlist or add a playlist to your favorites, the request will look like this:

POST /user/me/playlists?access_token=XXXXXXXXXXXXXXXXXXXXX&playlist_id={{playlist_id}}

HTTP/1.1

Host api.deezer.com

Many thanks for a great addon.

@Valentin271 Valentin271 added the enhancement New feature or request label Mar 31, 2021
@Valentin271 Valentin271 self-assigned this Mar 31, 2021
@Uukrull
Copy link
Author

Uukrull commented Apr 1, 2021

I did a simple test with python and it works for playlists, artists and albums:

session.post('http://api.deezer.com/2.0/user/me/artists?access_token=XXXX&artist_id=860',headers=headers,data=payload)

and delete if we want to remove the favorite:

session.delete('http://api.deezer.com/2.0/user/me/artists?access_token=XXXX&artist_id=860',headers=headers,data=payload)

@Valentin271
Copy link
Owner

As you tested it is indeed possible to add this feature. I am currently working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants