Now that the user has authenticated and we know what playlist to create in which DISCO, we will start retrieving and ingesting each track. The playlist we are creating will arrive in the DISCO user's inbox.
Once a transfer has started, token will be invalidated and may not be used with /add-to-disco/ again. As the transfer progresses, regular updates will be POSTed to callback_url.
{
"token": "{token}",
"status": "progressing",
"tracks_ingested": 2,
"number_of_tracks": 5,
"progress_percentage": 37
}
{
"token": "{token}",
"status": "complete",
"tracks_ingested": 6
}
{
"token": "{token}",
"status": "error",
"message": "something went wrong"
}