Method: users.settings.forwardingAddresses.list
指定したアカウントの転送先アドレスを一覧表示します。
HTTP リクエスト
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
userId |
string
ユーザーのメールアドレス。特別な値「me」は認証されたユーザーを示すことができます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
forwardingAddresses.list メソッドに対するレスポンス。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
フィールド |
forwardingAddresses[] |
object (ForwardingAddress )
転送に使用できるアドレスのリスト。
|
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/gmail.settings.basic
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-05 UTC。
[null,null,["最終更新日 2024-09-05 UTC。"],[[["This API lists email forwarding addresses for a specified Gmail account."],["It uses an HTTP GET request with the user's email address as a path parameter."],["The response includes a list of forwarding addresses in JSON format."],["Authorization is required using one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/gmail.settings.basic` or `https://www.googleapis.com/auth/gmail.readonly`."]]],["This document outlines how to list forwarding addresses for a Gmail account. A `GET` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses`, using the user's email or \"me\" as the `userId` path parameter. The request body must be empty. A successful response returns a JSON object containing an array of forwarding addresses. Authorization requires specific OAuth scopes like `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`.\n"]]