Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you upload a video to youtube using json-c format?

I'm able to upload videos to youtube using their xml input/output format but their documentation on how to implement uploading with json-c is frustratingly sparse. For instance, what is the 'key' for the json data I'm sticking in the body? Or put a different way, how is the json string added to the body of the request?

like image 564
Shizam Avatar asked Sep 20 '11 15:09

Shizam


Video Answer


1 Answers

Here are instructions for uploading a video using JSON-C:

https://developers.google.com/youtube/2.0/developers_guide_jsonc#Add_Video

The upload is done in two parts: 1) First you upload the metadata in JSON format. The response of this will contain an upload url. 2) Upload the actual video to the upload url.

However @Alexander is right, the Objective-C client may be a better route, since it handles all the upload details for you:

http://code.google.com/p/gdata-objectivec-client/

like image 159
monsur Avatar answered Nov 15 '22 11:11

monsur