Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Learning is a never ending thing and just one life is not enough to learn all the things you want to learn. The ocean of knowledge is very, very deep. This blog has been created for the same objective. I write on things which I come across in my daily life and feel to share it with the people across the world. The blog publish articles on SQL Server, SSIS 2005, SSIS 2008 alongwith other useful stuff which are good to know for the professional life.
Browse by Tags · View All
Google SpreadSheet API 12
YouTube API with .NET 7
PEGA Tutorials 6
PRPC Tutorials 6
Google BigQuery 6
Google Analytics API in .NET 6
Google Cloud Services 5
Core Reporting API with C# 4
Good Data API with Picasa 4
Ms-Excel function 4

Archive · View All
June 2012 17
October 2012 12
May 2012 12
August 2012 11
March 2013 10
July 2012 10
December 2011 9
January 2012 7
September 2012 6
February 2012 6

SinghVikash Blog

How to pull photo list from Picasa web Album with Google Data API?

May 17 2012 12:00AM by Vikash Kumar Singh   

This post is next in series of our exploration of Google Data API library. We have learnt how to use Google Data API to externally access the Picasa Web Album.

In this post we will learn how we can pull photo list from Picasa Web Album. We will pull the image name, image summary, image published date and last updated date of each of the images stored in a particular Picasa web album.

To start with I have uploaded following five test images in our newly created Picasa web Album “Google is the Best”. We will pull the image list from this web album.

To pull images from Picasa Web Album; the very first thing you need is AlbumID. You can navigate to the Picasa web account and copy the link address of RSS link. The link address has albumID of the web album in following format:

https://picasaweb.google.com/data/feed/base/user/[Numeric userID]/albumid/[Numeric AlbumID]?alt=rss&kind=photo&hl=en_US

You can copy the album id as this you need to use in your code snippet.

I created following .NET interface in C#. The form has a list view and a button. The list view will show the image name, image summary etc details after clicking on “Get Photo List” button.

The.NET code snippet to pull the image list is following:

private void button1_Click(object sender, EventArgs e)
        {
        //Add four columns in the listview
                listView1.Columns.Add("Photo Title");
                listView1.Columns.Add("Photo Summary");
                listView1.Columns.Add("Published Date");
                listView1.Columns.Add("Last Updated");

       //Create Picasa Service
                PicasaService myPicasa = new PicasaService("Vikash-Test-Picasa");

       //Pass on user credentials (userID and password)
                myPicasa.setUserCredentials("abc@gmail.com", "abcpassword");

       //create photoqueyr by passing userid and albumid
                PhotoQuery myPhotoQuery = new PhotoQuery(PicasaQuery.CreatePicasaUri("abc", "5737335314773942337"));

                PicasaFeed myPicasaFeed = myPicasa.Query(myPhotoQuery);
                foreach (PicasaEntry p in myPicasaFeed.Entries)
                {
                        listView1.Items.Add(new ListViewItem(new string[] { p.Title.Text, p.Summary.Text, p.Published.ToShortDateString(), p.Updated.Date.ToShortDateString() }));
               }
       }

We have created an instance of a photoquery and passed the userid and AlbumID as we need to tell which album photos we want to pull. The photoquery is passed to PicasaFeed which in turn connect with the Google Picasa Feed and pull the desired information.

After running the form I clicked on “Get Photo List” button. The code runs successfully and pulled the photo list, photo summary, published date and last updated date for each of the image stored in Picasa web album.

So our objective to pull photo list from Picasa Web albums have been achived.

Thanks for reading till this point.


Republished from Blog by Vikash Kumar Singh [46 clicks].  Read the original version here [1 clicks].

Vikash Kumar Singh
279 · 0% · 152
2
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"How to pull photo list from Picasa web Album with Google Data API?" rated 5 out of 5 by 2 readers
How to pull photo list from Picasa web Album with Google Data API? , 5.0 out of 5 based on 2 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]