Friday, February 24, 2012

[YouTube-API] Re: Delete video issue in flash / flex / as3

Hello Sebastien,

What do you mean you get no error? What's the HTTP response code and
the response body that you get back?

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Feb 24, 4:58 am, sebastien seignier <sebastien.seign...@gmail.com>
wrote:
> Hi
> I try to delete a video with the youtube api and this code, i get no error,
> but the video is still there ( i tried yesterday)
> *
>                 private static const url:String =
> "http://gdata.youtube.com/feeds/api/users/myusername/uploads";
>                 ...
>                 req.url = url + "/" + id; // id : 11 letters
>
>                 req.method = URLRequestMethod.POST;
>                 req.requestHeaders.push(new
> URLRequestHeader("X-HTTP-Method-Override", "DELETE"));
>                 req.requestHeaders.push(new
> URLRequestHeader("Authorization","GoogleLogin auth=\"" + authToken + "\""));
>                 req.requestHeaders.push(new
> URLRequestHeader("X-GData-Key","key=" + devKey));
>                 req.contentType = "application/atom+xml; charset=UTF-8";
> *
> *                ...
>                 loader.load(req);*
>
> help me please
> T

--
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