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?

Apr 30 2012 12:00AM by Vikash Kumar Singh   

This post is in continuation to my earlier post How to get Started with Google Data API aka GData. We learn what Google Data API is and what is needed to get started with it.

In this post we will use Googe Data API i.e. GData to read information from one of popular Google service – Google Picasa Web. Picasa provides photo sharing services to it users where you can upload and share your images with the world.

First let us see what we want to read from Google Picasa web service. Thebelow screen shot belongs to my Picasa account. I have total 6 web Albums in my Picaca account. The Goal is to read the Album titles using Google Data API. I came from .NET baclground so I selected Ms Visual Studio 2010 and C#. I downloaded the .NET library offered by Good Data API and run the setup in my machine. This went fine except I have to download it twice as my connection broke out in between.

I fired up my Ms-Visual Studio 2010 and selected a Windows Form based Project. I added the reference of Google Data API. I am using Windows 7 in my case so my Google Data API was installed in C:\Program Files (x86)\Google\Google Data API SDK\Redist folder. After adding the reference; all Google Data API library was shown in my solution explorer

I designed a small form with one list box and and one button. The list box is where I want to display the Web Album titles.

The .NET code snippet I used on the button click event is following:

    private void button1_Click(object sender, EventArgs e)
     {
        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);
             listBox1.Items.Add(myAlbum.AlbumTitle.ToString();
          }
     }

This code snippet has been written to read single user Web Album information but you can read multi user web album information as well. Point to be noted here is if you are reading web album information of some user you can access only those web Albums which are in public domain. The security is well in place. The snapshot of complete code is below

I connected to my internet and run my C# form and click on the Get Picasa Albm Name button; and sure enough I got all my 6 Web Album titles in the list box. Please note when I was running the form I was connected with Internet as my client program (C# form) was pulling online information from Google Picasa services.

While running the code I came across this warning message 'Google.GData.Photos.AlbumAccessor' is obsolete: 'Use Google.Picasa.Album instead. This code will be removed soon'. I tried to find the documentation on this but I could not find much information on this but certainly I know this is something which should be taken care of in the future releases

Thanks for reading till this point. I hope you like the article.


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

Vikash Kumar Singh
279 · 0% · 152
1
 
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?" rated 5 out of 5 by 1 readers
How to use Picasa Web Album with Google Data API? , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]