Monday, March 5, 2012

[YouTube-API] Re: GetUploadToken request failed

Hello,

The application name can be any free-form text. We don't validate it.

I'd need to know what the exact HTTP error response is that you're
getting back in able to help you more. The body of the error response
will contain a description of what's gone wrong. I think you're
writing .NET code, right? Here's some info on getting more info when
an error occurs:

http://code.google.com/apis/gdata/faq.html#dotnet_log

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


On Mar 2, 2:39 pm, Ortiz Consulting <ror...@ortizconsulting.com>
wrote:
> questions in comments...
> class TestPage...Upload_Click...
> ...g object values are preloaded from db
>
>              YouTubeRequestSettings settings =  new
> YouTubeRequestSettings("IsThisWhaterIType?", g.DevKey, g.User, g.PW);
>
> //Does Application name need to validate againse something in dev or
> users acct?
>
>             YouTubeRequest request = new YouTubeRequest(settings);
>             Video newVideo = new Video();
>             newVideo.Title = "My Test Movie";
>             newVideo.Tags.Add(new MediaCategory("Finance",
> YouTubeNameTable.CategorySchema));
>             newVideo.Keywords = "TBD, WillitNotPost";
> //same thing do keywords need to validate againse something maste
> youtube lis?
>             newVideo.Description = "Test Description";
>             newVideo.YouTubeEntry.Private = false;
>
>             //these are optional right?
>             newVideo.Tags.Add(new MediaCategory("form4,
> KB"+ArticleID.ToString(),
>               YouTubeNameTable.DeveloperTagSchema));
>            newVideo.YouTubeEntry.setYouTubeExtension("location", "New
> Mexico");
>
>             try
>             {
>                 FormUploadToken token =
> request.CreateFormUploadToken(newVideo);
>                 HiddenUrl.Value = token.Url;
>                 HiddenToken.Value = token.Token;
>             }
>             catch (Exception ex)
>             {
>                 HandleError("Error fetching YouTube Upload Token: " +
> ex.Message);
>
> if( ex.Message == "Execution of request failed:https://gdata.youtube.com/action/GetUploadToken" )
> {
>        if( dev.bHasNoIdeaWhatToDo )
>        {
>              YouTube_APIs_Developer_Forum.AskForHelp(this);
> //Seriously though what am I doing wrong?
>
>         }
>
>
>
>
>
>
>
> }

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