We are demonstrating
a console application integrated with Blogger API v3 and as an authentication
we integrate Google APIs OAuth2. If you are using Visual Studio 2010 and 2012,
the Windows7 SP1 is capable with .net framework4 or using high version of
Visual Studio (like 2013 or 2015), you must upgrade Windows7 with Windows8. In
this session we are using Visual Studio 2012 Update 3 Windows7 SP1.
Development and Environment Tools:
1.
Visual Studio 2012 
Download Visual Studio 2012 from Microsoft
Website.
  

Visual Studio 2012

2. NuGet
This is a very easy to use Visual Studio plug-in
to manage packages of 
Download: http://docs.nuget.org/docs/start-here/installing-nuget 
  

NuGet

3. Google API DotNet Client 
Download: http://contrib.google-api-dotnet-client.googlecode.com/hg
/1.5.0-beta/Generated/ZipFiles/google-api-dotnet-client-1.5.0-beta.source.zip
 

Downloading and Installing:

Select the appropriate version
of Visual Studio from the official website, here is the 2012, click
Download and run click Install, after installation of VS download and
install NuGet.

appropriate version of Visual Studio
1. Open
Visual Studio, Ctrl + Shift + N to create a new Console Application 

2. Press
Ctrl + Shift + S or the File>> Save All to save the project 

3. Click
Solution Explorer double-click Properties and then replace the Target
Framework for .Net Framework 4 Click on Yes button

.Net Framework 4

4. Click
the Solution Explorer, right-References Click Manage NuGet Packages 

NuGet Packages

5. Open
NuGet Packages Manager at the top of the search
“Blogger” select Google.Apis.Blogger.v3 Client
Library Click Install 

Google.Apis.Blogger.v3

6. Wait
for the installation 

7. After
installed Blogger API searching Google APIs then find Google APIs OAuth2
Client Library Click Install 

Google APIs OAuth2

8. Click
Close to return IDE10.
namespaces

Then
add the following namespaces to import Blogger and Authentication APIs in our
project:

using
Google.Apis.Blogger.v3;
using
Google.Apis.Blogger.v3.Data;
using
Google.Apis.Services;
using
System.Diagnostics;
using
Google.Apis.Authentication.OAuth2;
using
Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
using
DotNetOpenAuth.OAuth2;
using Google.Apis.Util;

LEAVE A REPLY

Please enter your comment!
Please enter your name here