Method: users.settings.sendAs.list
指定したアカウントの送信元エイリアスを一覧表示します。結果には、アカウントに関連付けられているメインの送信元アドレスと、カスタムの「From」が含まれます。エイリアスを使用します。
HTTP リクエスト
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
userId |
string
ユーザーのメールアドレス。特別な値「me」は認証されたユーザーを示すことができます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
sendAs.list メソッドのレスポンス。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"sendAs": [
{
object (SendAs )
}
]
} |
フィールド |
sendAs[] |
object (SendAs )
送信元エイリアスのリスト。
|
認可スコープ
次の 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。"],[[["Lists send-as aliases, including the primary address and custom \"from\" aliases, for a specified Gmail account."],["Uses an HTTP GET request with the user's email address as a path parameter."],["Returns a JSON response containing an array of send-as aliases with details."],["Requires specific OAuth scopes for authorization, like `gmail.settings.basic` or `gmail.readonly`."]]],["This describes how to retrieve send-as aliases for a Gmail account. Using a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs`, specifying the user's email (or \"me\") in the `userId` path parameter. The request body must be empty. The successful response includes a JSON object with a `sendAs` array, detailing the account's primary send-as address and custom \"from\" aliases. This action requires specific OAuth scopes like `gmail.settings.basic` or `mail.google.com`.\n"]]