Add route to add video to playlist.

This commit is contained in:
Kavin 2022-04-06 13:07:50 +01:00
parent 797a621b51
commit 00e32dc992
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
5 changed files with 103 additions and 22 deletions

View file

@ -98,3 +98,6 @@ PLAYLIST_ID=$(curl -s -o - -f $HOST/user/playlists -H "Authorization: $AUTH_TOKE
# Playlist Test
curl ${CURLOPTS[@]} $HOST/playlists/$PLAYLIST_ID || exit 1
# Add to Playlist Test
curl ${CURLOPTS[@]} $HOST/user/playlists/add -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d $(jq -n --compact-output --arg videoId "BtN-goy9VOY" --arg playlistId $PLAYLIST_ID '{"videoId": $videoId, "playlistId": $playlistId}') || exit 1