【问题标题】:Google Drive API - using Google.Apis.AuthenticationGoogle Drive API - 使用 Google.Apis.Authentication
【发布时间】:2015-05-08 04:08:59
【问题描述】:

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

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

有没有人用过这个dll,我好像找不到从哪里下载?

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

【问题讨论】:

    标签: google-drive-api


    【解决方案1】:

    这是Google APIs Client Library for .NET的一部分,你可以从下载页面获取你需要的dll:

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

    【讨论】:

      【解决方案2】:

      我在这里找到了这个: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);
          }
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多