Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got this error when uploading video
Execution of request failed: https://gdata.youtube.com/action/GetUploadToken

find below my code:
C#
private void ytAuthenticate()
    {
        myService = new YouTubeService("APPNAME",
                      "DEVKEY");
        myService.setUserCredentials("MyGmail", "PASS");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        ytAuthenticate();

        YouTubeEntry YoutubeObject = new YouTubeEntry();
        YoutubeObject.Media = new Google.GData.YouTube.MediaGroup();

        YoutubeObject.Media.Title = new MediaTitle("My Test Movie");
        YoutubeObject.Media.Categories.Add(new MediaCategory("Sports", YouTubeNameTable.CategorySchema));
        YoutubeObject.Media.Keywords = new MediaKeywords("cars, funny");
        YoutubeObject.Media.Description = new MediaDescription("My description");
        YoutubeObject.Private = false;
        FormUploadToken token = myService.FormUpload(YoutubeObject);
        Session["form_upload_url"] = token.Url;
        Session["form_upload_token"] = token.Token;
        Response.Redirect("uploader.aspx");
    }


PLEASE NEEEEEEEEEEEEEEEEEEED HELP
Please need help.
Posted
Updated 5-May-12 19:44pm
v2
Comments
Neosofty 5-May-12 20:07pm    
i consumed much time to get the solution and its nothing
please if anyone has any advice .. i will appreciate
thanks

1 solution

Read this documentation from google:

Developer's Guide: .NET[^]

hope it helps :)
 
Share this answer
 
Comments
Neosofty 6-May-12 9:12am    
i did exactly like the Google Guid
i got nothing :(, I think the problem because DeveloperKey and ClientID(i didn't find it when generate developer key)
so i used only developer key
thanks for advice

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900