I am creating a script to upload videos to youtube using Google\'s YouTube data API version 3.
for uploading I followed the example given at https://developers.google.co
You are using the right method, for parameters:
part: snippet (or whatever part of the playlistItem resource you want in return)
snippet.playlistId: id of the playlist to add. you can find it through playlists.list() method if you don't know it, with setting "mine=true"
snippet.resourceId: video id of the video. you can find it through videos.list() method if you don't know it, with setting "mine=true"