0

我正在尝试使用 Google Drive API 并查看位于此处的示例 - https://developers.google.com/drive/v2/reference/files/get

要使示例正常工作,我需要包括以下内容: using Google.Apis.Authentication;

有没有人用过这个dll,我似乎找不到从哪里下载它?

我设法轻松找到了 Google.Apis.Drive.v2 dll。

4

2 回答 2

1

这是.NET 的 Google API 客户端库的一部分,您可以从下载页面获取所需的 dll:

http://code.google.com/p/google-api-dotnet-client/wiki/Downloads

于 2012-07-19T16:17:31.590 回答
1

我在这里找到了这个:https ://code.google.com/p/google-api-dotnet-client/source/browse/Src/GoogleApis/Apis/Authentication/IAuthenticator.cs?r=e6585033994bfb3a24d4c140db834cb14b9738b2

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);
    }
}
于 2015-05-07T20:08:59.747 回答