The soundcloud documentation has no sample for updating a playlist using java wrapper. I tried something like this but it didn’t update the tracks. And no error messages returned.
HttpResponse resp = wrapper
.put(Request.to("/me/playlists/123")
.with("playlist[title]", "updated title", "playlist[tracks]", "[
{id: 10001},
{id: 10002}
]"));
Any ideas?
The problem is that you’re using a mix of Rails style form parameters and JSON.
There are two options:
1) Only use form parameters:
2) Submit playlist data as JSON:
Check out the tests in the wrapper to see them in action: