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 on 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 the Google Data API library from the .NET client library. Install the .Net Client library on your machine.
 
GoogleAPI2.jpg
 
Code
 
Now download sample code files that 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 into 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
  1. http://blog.iquestionanswer.co.in/ 
  2. http://www.iquestionanswer.co.in/ 
Happy coding.


Recommended Free Ebook
Similar Articles