logic for api call to add to playlist