Question

Is it possible to add tracks to playlists with the Deezer Android SDK?

When creating the DeezerRequest, there doesn't seem to be any way to set the method to 'POST' instead of 'GET'.

Was it helpful?

Solution

The DeezerRequest object has three constructor methods, illustrated below :

// Creates a GET request with the given path
DeezerRequest request = new DeezerRequest("artist/27");

// Creates a GET request with the given path and query parameters
Bundle params = new Bundle(1);
params.putString("q", "Daft Punk"); 
DeezerRequest request = new DeezerRequest("search/artist", params);

// Creates a POST request with the given path and parameters
Bundle params = new Bundle(1); 
params.putString("songs", "1234567,4567891,7891234");
DeezerRequest request = new DeezerRequest("search/artist", params, "POST");

OTHER TIPS

This facility is available in the latest version of the application. Try to upgrade to the latest version. I have downloaded from apk mean, and it solved my issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top