Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:19:29+00:00 2026-05-26T14:19:29+00:00

Hi i want to create an uploading video program using youtube api I think

  • 0

Hi i want to create an uploading video program using youtube api I think I missed something. I search for some examples on how to upload using .net but cant seem to find an answer.

Heres my code:

` Imports Google.YouTube Imports Google.GData.Client Imports Google.GData.Extensions Imports Google.GData.Extensions.MediaRss Imports Google.GData.YouTube Imports Google.GData.Extensions.Location

Public Class Form1





    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim settings As YouTubeRequestSettings
Dim request As YouTubeRequest

settings = New YouTubeRequestSettings("youtube uploader", "AI39si4NwqS3ISLGVjlHBCdC8BfiJJSJWqqcJEvZOLbFohZAslQ4uhgrnFOJKdxGju55g2xoSImzEhXPGE5syMV9X0fh8NEHGg", txtuser.Text, txtpass.Text)
request = New YouTubeRequest(settings)

Try
Dim newVideo As Video = New Video()
newVideo.Title = "Hangover Sample Movie"
newVideo.Tags.Add(New MediaCategory("Sample", YouTubeNameTable.CategorySchema))
newVideo.Keywords = "hangover, funny"
newVideo.Description = "Hangover"
newVideo.YouTubeEntry.Private = False
newVideo.Tags.Add(New MediaCategory("hangover, funny, comedy", YouTubeNameTable.DeveloperTagSchema))

newVideo.YouTubeEntry.Location = New GeoRssWhere(37, -122)
' alternatively, you could just specify a descriptive string
' newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA");

newVideo.YouTubeEntry.MediaSource = New MediaFileSource(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\sample.avi", "video/avi")

request.Upload(newVideo)

Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub
End Class`

but it produces this error Execution of request failed https://uploads.gdata.youtube.com/feeds/api/users/default/uploads

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:19:30+00:00Added an answer on May 26, 2026 at 2:19 pm

    I just found out that the problem with my code is that youtube havent asked me a username(but i do have my youtube account, crazy… XD)…then i tried again the code and it works. thanks also to @jmoreno.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a Java application bundle for Mac without using Mac. According
I want to create a simple http proxy server that does some very basic
In my PHP web site, i want to create a file uploading progress bar.
I want to create a gallery of pictures for my website and upload those
I want to create a gallery of pictures for my website and upload those
This is killing me! I'm using django-filebrowser, and I want to create a gallery
I want to create a html page that can be used to upload videos
Hello Guys! I want to create a site with a multiple file uploading through
I am uploading a file using PHP and want to return the file name
I'm programatically uploading image files and want to set the filename. When I upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.