【问题标题】:How do I attach an access token to a Google Sheets V4 request?如何将访问令牌附加到 Google 表格 V4 请求?
【发布时间】:2016-08-17 13:00:33
【问题描述】:

我发现了如何获取 Google 电子表格 V4 的访问令牌。但是...我不知道或不知道如何将访问令牌附加到凭据:

        mCredential = GoogleAccountCredential.usingOAuth2(getApplicationContext(), Arrays.asList(SCOPES));

在以前的 Google Sheets v3 API 中,我可以完全理解如何将访问密钥简单地添加到 requestfactory 或一些类似的函数调用中,然后返回服务对象。

有没有办法在 Google Sheets v4 中做同样的事情?

【问题讨论】:

标签: android google-api spreadsheet


【解决方案1】:

有一个方法

setAccessToken();请参阅文档here

更多详情见official dev page

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-25
    • 1970-01-01
    • 2013-01-06
    • 1970-01-01
    • 2012-09-29
    相关资源
    最近更新 更多