Google API:People vs PeopleService

问题描述

在Visual Studio中设置.NET C#项目时,NuGet程序包管理器显示:

Google.Apis.People.v1

Google.Apis.PeopleService.v1

作为要包含在项目中的选项。两者都被描述为客户端库。

作为Google API的新手,我不确定要包含在我的项目中。该项目是一个独立的Windows窗体应用程序,它将一个系统中的导出文件转换为Google联系人和联系人组(标签)。

该类型的项目应包括哪些?谢谢。

解决方法

以下是Nuget软件包的相关下载页面:

从事物的外观来看,它们都具有相同的目的。但是,PeopleService似乎是最新版本。 People的最新更新时间为2017年4月11日,版本为v1.25.0.830,而PeopleService仍在维护中。我的猜测是,它已重命名为PeopleService,但他们保留了People以获得旧版支持。 Google API信息页面也由recommends PeopleService代替了People,因此,我认为可以肯定地说,如果要创建新项目,则应该使用PeopleService。>

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...