> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取谷歌访问凭证

## 指令说明

**描述：** 使用 Google OAuth 客户端信息完成授权，并生成供后续谷歌表格指令使用的访问凭证。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/google/images/getgooglecredentialcommand-01.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=a2bffb216a691b5c85c785dd1e1f97ab" alt="获取谷歌访问凭证指令参数面板" width="648" height="402" data-path="helpcenter/commands/google/images/getgooglecredentialcommand-01.png" />

    | 参数          | 说明                                |
    | ----------- | --------------------------------- |
    | **客户端ID**   | 填写 Google OAuth 凭证的客户端 ID。        |
    | **客户端密钥**   | 填写与客户端 ID 对应的 Google OAuth 客户端密钥。 |
    | **保存访问凭证至** | 设置用于保存授权结果的变量，供后续谷歌表格指令调用。        |
  </Tab>

  <Tab title="高级" />
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/google/images/getgooglecredentialcommand-02.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=09cc57e84645dfc57614ccd726c4eaf4" alt="获取谷歌访问凭证使用示例" width="1201" height="115" data-path="helpcenter/commands/google/images/getgooglecredentialcommand-02.png" />

**该流程执行逻辑：**

1. 填写 Google OAuth 客户端 ID 和客户端密钥。
2. 执行【获取谷歌访问凭证】，完成授权并将凭证保存至指定变量。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/google/images/getgooglecredentialcommand-03.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=1b3629bf22ed32e5331832021e1b13b1" alt="获取谷歌访问凭证效果展示" width="1186" height="165" data-path="helpcenter/commands/google/images/getgooglecredentialcommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
