I have an http response 200 and the result is an xml file with all the infos from the uploaded video.
req.requestHeaders.push(new URLRequestHeader("X-HTTP-Method-Override", "DELETE"));
seems not working :(
Le vendredi 24 février 2012 22:34:37 UTC+1, Jeffrey Posnick a écrit :
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 view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/GnhVgPKlEhcJ.
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