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 6648813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:41:59+00:00 2026-05-26T00:41:59+00:00

i am using the ZEND Gdata and youtube api to upload vidoes to youtube

  • 0

i am using the ZEND Gdata and youtube api to upload vidoes to youtube
http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Direct_Upload

When I upload a Video how do I capture the Video ID that was generated and also the youtube link ?

try 
{
   $newEntry = $yt->insertEntry($myVideoEntry,$uploadUrl,'Zend_Gdata_YouTube_VideoEntry');
} 
catch (Zend_Gdata_App_HttpException $httpException) 
{
   echo $httpException->getRawResponseBody();
} 
catch (Zend_Gdata_App_Exception $e) 
{
   echo $e->getMessage();
}

thank you very much

  • 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-26T00:41:59+00:00Added an answer on May 26, 2026 at 12:41 am

    This line:

    $newEntry = $yt->insertEntry($myVideoEntry,$uploadUrl,'Zend_Gdata_YouTube_VideoEntry');
    

    returns a Zend_Gdata_YouTube_VideoEntry object.

    The Zend Framework API docs for Zend_Gdata_YouTube_VideoEntry lists all the methods and properties that class makes available. There is similar documentation for all Zend Framework classes, and it’s automatically generated, so it’s often a good place to go if the manual doesn’t answer a question.

    From looking there, I’d say that you’d call:

    • $newEntry->getVideoId() to get the video ID
    • $newEntry->getVideoWatchPageUrl() to get the video URL
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

re: http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Searching_for_Videos Im using the orderby or as the Zend gdata API calles it
I'm attempting to upload a video to YouTube via the API using Zend_Gdata (Zend
I using Zend Gdata library for search video Youtube API. If I make a
I am using the Zend PHP Gdata API for Youtube to retrieve data and
I am using Zend Gdata to interface with the YouTube API from a PHP
I am using Youtube Zend GDATA API , I want to know the exact
I am writing a 2 Legged OAuth app (Google Marketplace app) using zend gdata
I'm using the Zend framework to access the YouTube Data API. The function below
This is what we use to upload a Video to YouTube using YouTube API.
I'm using standard Zend Youtube library to upload videos to Youtube. It's working well,

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.