Method: users.drafts.get

获取指定的草稿。

HTTP 请求

GET https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts/{id}

网址采用 gRPC 转码语法。

路径参数

参数
userId

string

用户的电子邮件地址。特殊值 me 可用于指示经过身份验证的用户。

id

string

要检索的草稿的 ID。

查询参数

参数
format

enum (Format)

返回草稿时所采用的格式。

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 Draft 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://mail.google.com/
  • https://www.googleapis.com/auth/gmail.modify
  • https://www.googleapis.com/auth/gmail.compose
  • https://www.googleapis.com/auth/gmail.readonly

有关详情,请参阅授权指南