Accessing Google Blogger API From .NET

Introduction

The Blogger Data API allows client applications to view and update Blogger content in the form of Google Data API feeds. Your client application can use the Data API to create new blog posts, edit or delete existing posts, and query for posts that match particular more.

Purpose

We can use a blog post from the API and use it in the web site or any other application. First we need to get access from Google for accessing the Google Blogger API.

API Access

Here is the URL; with the help of the URL you can get access from Google.
https://code.google.com/apis/console
 
GoogleAPI1.jpg

Once you have obtained access from Google, you will get mail from Google. Then you will see the above window. Now download Google Data API library from .NET client library. Install .Net Client library in your machine.

GoogleAPI2.jpg

Code

Now download sample code files which are written in C# from here. Create a new Console Application project In Visual Studio. Add a reference for Google.GData.Client.dll from C:\Program Files\Google\Google Data API SDK\Samples.

GoogleAPI3.jpg

Now copy the cs file code from here and paste it in the console application and try to run it. It will ask for your Google credentials. Go to the project properties and give your credentials.

GoogleAPI4.jpg

Now run your application and see the result:

GoogleAPI5.jpg

My Websites

http://blog.iquestionanswer.co.in/ 
http://www.iquestionanswer.co.in/ 

Happy coding.

Up Next
    Ebook Download
    View all
    test-2
    Read by 0 people
    Download Now!
    Learn
    View all