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 use Picasa Web Album with Google Data API – Part 3?

May 1 2012 12:00AM by Vikash Kumar Singh   

This post is in continuation to my earlier post How to use Picasa Web Album with Google Data API. We learn what Google Data API is and what is needed to get started with it in first part. In second part we learn how to read Album titles from Picasa Web with Google Data API

In this post we will use Googe Data API i.e. GData to read some more attributes of Picasa Web Albums. We will enquiry how many photos are stored in each of the Web Album, who is the author of album and what is the data size for each of the album.

For a change I converted my listbox to list view as I want to display information in a tabular format.

The .NET code snippet are following to read the Number of photos stored in each of the album and data size of each of the album. The Data size are in Bytes. So if you want to convert this to MB, you can do so.

private void button1_Click(object sender, EventArgs e)
     {
         listView1.Columns.Add("Album_Title");
         listView1.Columns.Add("`NoOfPhoto");
         listView1.Columns.Add("`Author");
         listView1.Columns.Add("`Data_Size");

         PicasaService myPicasa = new PicasaService("Vikash-Test-Picasa");
         myPicasa.setUserCredentials("abc@gmail.com", "abc");
        AlbumQuery myAlbumQuery = new AlbumQuery(PicasaQuery.CreatePicasaUri("abc"));
         PicasaFeed myPicasaFeed=myPicasa.Query(myAlbumQuery);
         foreach (PicasaEntry p in myPicasaFeed.Entries)
         {
             AlbumAccessor myAlbum = new AlbumAccessor(p);
             listView1.Items.Add((new ListViewItem(new string[] { myAlbum.AlbumTitle.ToString(), myAlbum.NumPhotos.ToString(), myAlbum.AlbumAuthor.ToString(), myAlbum.BytesUsed.ToString() })));

        }
         }

The NumPhotos, AlbumAuthor and BytesUsed property of AlbumAccessor class returns the number of photos, Album author and Album data size. After running the code in Ms-Visual Studio 2010 my output looks like this. I got number of photos, author and the album data size for each of the album

Also, I discovered a very fine pice of .NET samples which google has provided us with the client library. The sample is rich and contain examples of reading, writing or modifying information from various Google services.

Thanks for reading till this point.


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

Vikash Kumar Singh
277 · 0% · 155
3
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"How to use Picasa Web Album with Google Data API – Part 3?" rated 5 out of 5 by 3 readers
How to use Picasa Web Album with Google Data API – Part 3? , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]