我正在尝试使用 Google Drive API 并查看位于此处的示例 - https://developers.google.com/drive/v2/reference/files/get。
要使示例正常工作,我需要包括以下内容: using Google.Apis.Authentication;
有没有人用过这个dll,我似乎找不到从哪里下载它?
我设法轻松找到了 Google.Apis.Drive.v2 dll。
我正在尝试使用 Google Drive API 并查看位于此处的示例 - https://developers.google.com/drive/v2/reference/files/get。
要使示例正常工作,我需要包括以下内容: using Google.Apis.Authentication;
有没有人用过这个dll,我似乎找不到从哪里下载它?
我设法轻松找到了 Google.Apis.Drive.v2 dll。
这是.NET 的 Google API 客户端库的一部分,您可以从下载页面获取所需的 dll:
http://code.google.com/p/google-api-dotnet-client/wiki/Downloads
namespace Google.Apis.Authentication
{
/// <summary>
/// Classes that implement this interface will know how
/// a WebRequest with the approreate authentication embed in the request.
/// </summary>
[Obsolete("IAuthenticator is not supported any more and it's going to be removed in 1.7.0-beta. " +
"Consider using UserCredential or ServiceAccountCredential from the new Google.Apis.Auth NuGet package " +
"which supports .NET 4, .NET for Windows, Store apps, Windows Phone 7.5 and 8 and Portable Class " +
"Libraries as well")]
public interface IAuthenticator
{
/// <summary>
/// Takes an existing httpwebrequest and modifies its headers according to
/// the authentication system used.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
void ApplyAuthenticationToRequest(HttpWebRequest request);
}
}