You're presumably sending your POST request to an invalid URL. You
didn't say in the sample you provided what URL you're POSTing to. I'd
really recommend using a client library rather than constructing your
upload request by hand, as it will take care of all the required
details for you:
http://code.google.com/apis/youtube/code.html
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 19, 4:18 pm, ehkhalid <ehkha...@gmail.com> wrote:
> Hi,
> When i try to upload a video usin youtube api, i got this error :
> Invalid request Uri, this is my request body
>
> --keelh1983
> Content-Type: application/atom+xml; charset=UTF-8
>
> <?xml version="1.0" encoding="UTF-8"?>
> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://
> search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/
> 2007"><media:group><media:title type="plain">testé</
> media:title><media:description type="plain">I gave a bad toast at my
> friend s wedding.</media:description><media:category scheme="http://
> gdata.youtube.com/schemas/2007/categories.cat">People</
> media:category><media:keywords>toast, wedding</media:keywords></
> media:group></entry>
> --keelh1983
> Content-Type: video/mp4
> Content-Transfer-Encoding: binary
>
> ........ video binary data ........ // here i place binary data
>
> --keelh1983--
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment