我正在为使用.NET客户端库(版本2.2.0):
https://code.google.com/p/google-gdata/downloads/list
我读到谷歌将停止对日历API的v2支持。我不确定.NET客户端库正在使用的API的哪个版本,或者如何解决它?Google .NET客户端库文档非常糟糕。我有源代码,但任何关于如何确定我正在使用的API版本的提示都将不胜感激。
我怀疑GData .NET库对日历使用APIv2,对联系人使用APIv3,但不确定/不清楚。
标记
发布于 2014-10-20 20:52:56
我找到了。查看GData .NET客户端库2.2.0的源代码,您可以看到它使用APIv2作为Calendar接口,使用APIv3作为联系人接口。
versioninterfaces.cs:
public const int VersionTwo = 2;
public const int VersionThree = 3;calendarservices.cs:
protected override void InitVersionInformation() {
this.ProtocolMajor = VersionDefaults.VersionTwo;
}contactservices.cs:
protected override void InitVersionInformation() {
this.ProtocolMajor = VersionDefaults.VersionThree;
}https://stackoverflow.com/questions/26434048
复制相似问题