Google Data API entry-Picasa secondary development class fully open-source

Source: Internet
Author: User

In the previous article, I briefly talked about the google verification process, so I practiced it a little and made it easier to package the APIS provided by picasa.

The download page is as follows:

 

I used the open-source sharing platform provided by Google Code. I hope you can give me some suggestions. I have tested it. It is very nice and helpful.

The test code is as follows:

 

Using System;
Using System. Collections. Generic;
Using System. Text;

Namespace Pixysoft. Google
{
Class TestDriven
{
Public void TestPicasa ()
{
String username = "youremail@gmail.com ";
String password = "yourpassword ";

Picasa picasa = new Picasa (username, password );
PicasaAlbum album = picasa. CreateAlbum ("demo album ");
PicasaPhoto photo = album. CreatePhoto ("yourjpg.jpg", System. IO. File. ReadAllBytes (@ "c: \ yourjpg.jpg "));
PicasaTag tag = photo. AddTag ("yourtag ");

Console. WriteLine (album. Title );
Console. WriteLine (photo. PhotoTitle );
Console. WriteLine (photo. ContentUrl );
Console. WriteLine (tag. Title );
}
}
}

 

If you have any questions, please note. I also hope you will visit my website: http://www.citi box.com/, where younger siblings are starting their own business.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.