解决方案 »

  1.   

    看这里
    https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth
      

  2.   

    这段Sample code using the Books API
      

  3.   


    试过了,通不过去,不知道是不是我公司网络问题,credential 之后就没有反应了,断点设置追踪不到哦。
              credential = await googlewebauthorizationbroker.authorizeasync(
              new clientsecrets
              {
                  clientid = "4****",
                  clientsecret = "_*****"
              },
              new[] { booksservice.scope.books },
              "user",
              cancellationtoken.none,
              new filedatastore("books.listmylibrary"));