如何使用Blogger API第3版 [英] How to use Blogger API v3

查看:241
本文介绍了如何使用Blogger API第3版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是Blogger的API V3页面: https://developers.google.com/博客/文档/ 3.0 /使用

和下载的NuGet的Blogger API包: HTTPS://www.nuget。组织/包/ Google.Apis.blogger.v2

我的开发环境是Visual Studio 2010中使用C#语言

我如何使用Blogger的API?

我只是不明白他们在<一写href=\"https://developers.google.com/resources/api-libraries/documentation/blogger/v3/csharp/latest/namespaces.html\" rel=\"nofollow\">https://developers.google.com/resources/api-libraries/documentation/blogger/v3/csharp/latest/namespaces.html ...

如何初始化一个新的Blogger服务,并得到所有的文章列表?

在哪里我的应用程序(客户端ID和ClientSecret)?权威性


解决方案

您需要GDATA客户端和你需要下载谷歌API。
下载<一个href=\"https://$c$c.google.com/p/google-gdata/downloads/detail?name=Google_Data_API_Setup_2.2.0.0.msi&can=2&q=\"相对=nofollow>此处。您需要安装MSI,它会添加DLL,样品给您的系统。


  

C:\\ Program Files文件\\谷歌\\谷歌数据API SDK



  1. Google.GData.Blogger.dll 添加到您的项目

  2. 添加引用后,您可以使用此的,以供参考链接

继code,可用于创建服务,并从Blogger中获取数据。

  Service服务=新的服务(博客,博客 - 例如);
字符串的用户名=abc@gmail.com;
字符串密码=abc143;
service.Credentials =新GDataCredentials(用户名,密码);

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)?

解决方案

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 = "abc@gmail.com";
string password = "abc143";
service.Credentials = new GDataCredentials(username, password);

这篇关于如何使用Blogger API第3版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆