Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
PHP Demo application for YouTube Activity Feeds released
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jochen Hartmann  
View profile  
(3 users)  More options Feb 25, 5:50 pm
From: Jochen Hartmann <jhartm...@youtube.com>
Date: Wed, 25 Feb 2009 14:50:02 -0800 (PST)
Local: Wed, Feb 25 2009 5:50 pm
Subject: PHP Demo application for YouTube Activity Feeds released
In case you have missed our recent blog entry (http://
apiblog.youtube.com/2009/02/youtube-api-outgrows-shy-
adolescence.html), YouTube has recently pushed out new activity feeds
that allow you to see what you and your friends have been up to on
YouTube.com.

If you are using PHP, you may be interested in the demo application
(http://www.googlecodesamples.com/youtube/php/YouTubeActivityViewer/)
that Jeff Fisher and I wrote. It uses a small PHP backend, which can
optionally be used with Memcache (http://us.php.net/memcache) to
temporarily store activity events.

It uses two new classes available in Zend Framework 1.7.5,
Zend_Gdata_YouTube_ActivityFeed (http://framework.zend.com/apidoc/core/
Zend_Gdata/YouTube/Zend_Gdata_YouTube_ActivityFeed.html) and
Zend_Gdata_YouTube_ActivityEntry (http://framework.zend.com/apidoc/
core/Zend_Gdata/YouTube/Zend_Gdata_YouTube_ActivityEntry.html).

To get user activity using the PHP client library, simply use the new
"getActivityForUser('foo')" method on the Zend_Gdata_YouTube object.
Activity for up to 20 users can be retrieved at a time. Friend
activity can be retrieved with the "getFriendActivityForCurrentUser()"
method.

The full source code is available here:

http://code.google.com/p/gdata-samples/source/browse/branches/ytaview...

For more information, please check out the documentation:

http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Act...

Note that support has also been added in the .NET and Java client
libraries.

Cheers,
- Jochen


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google