Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Blogger API v3

Tags:

c#

api

blogger

Here is the Blogger's API v3 page : https://developers.google.com/blogger/docs/3.0/using

and downloaded the NuGet Blogger API packages : https://www.nuget.org/packages/Google.Apis.blogger.v2

My developing environment is Visual Studio 2010 with C# language

How can i use the Blogger's API?

I just can't understand what they wrote in https://developers.google.com/resources/api-libraries/documentation/blogger/v3/csharp/latest/namespaces.html ...

How to initialize a new Blogger Service and get a list of all the posts?

Where to auth with my application (the ClientID and ClientSecret)?

like image 628
GaryNg Avatar asked Nov 01 '22 13:11

GaryNg


1 Answers

You need GDATA client and for that you need to download Google API. Download it here. You need to install that MSI and it will add dll, samples to your system.

C:\Program Files\Google\Google Data API SDK

  1. Add Google.GData.Blogger.dll to your project
  2. After adding the reference, you can use this link for reference.

Following code can be used for creating service and fetching data from Blogger.

Service service = new Service("blogger", "blogger-example");
string username = "[email protected]";
string password = "abc143";
service.Credentials = new GDataCredentials(username, password);
like image 149
Sangram Nandkhile Avatar answered Nov 15 '22 06:11

Sangram Nandkhile