I am currently using google-api-ruby-client to upload videos to the Youtube API V3, but I cannot find a way to get the Youtube ID that is generated by the resumable download. The code I'm trying to use matches the lines:
media = Google::APIClient::UploadIO.new(file_path, 'application/octet-stream') yt_response = @client.execute!({ :api_method => @youtube.videos.insert, :parameters => { :part => 'snippet,status', 'uploadType' => 'resumable' }, :body_object => file_details, :media => media }) return JSON.parse(yt_response.response.body)
But unfortunately, for renewable downloads, yt_response.response.body empty. If I change 'uploadType' to 'multipart' then the body will be a JSON block containing the Youtube identifier. Resumable download response is only a renewable session URI for empty-boot downloads. How do I go from this URI to the Youtube ID I just created?
source share