Add track to playlist using Deezer API and PHP -


i have looked through documentation of deezer api , unable comprehend how add track through api php, if can @ all. - lack of understanding rather poor documentation.

i looking way add 100 tracks new playlist each week. have read on deez's use of oauth , track api object can not life me understand how make authentication.

in essence, trying achieve web based application user can add songs playlist. believe, deezer's oauth asks user allow permissions, want application have full control of playlist without having ask people login , grant them.

could please have more information on whether possible , without having grant permission each time? not interact other user accounts, own.

  1. user searches track id
  2. form obtains track id via api call
  3. user submits , track id added playlist id

update:

i have since figured out how add track using oauth. however, else add track after submitting using form (step 3), need login , accept oauth permissions. there way can set code has permission add tracks playlist?

first, have token (just here: http://developers.deezer.com/api/explorer) if want create private playlist, or create public collaborative playlist (so people can add tracks playlist).

the first thing have create playlist via post call user/me|[your user id]/playlist (http://developers.deezer.com/api/user/playlists) , access token.

then have execute post call /playlyst[id of playlist]/tracks (http://developers.deezer.com/api/playlist/tracks) add defined tracks.


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -