Method: users.settings.forwardingAddresses.list
แสดงรายการอีเมลที่ใช้รับการส่งต่อสำหรับบัญชีที่ระบุ
คำขอ HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
userId |
string
อีเมลของผู้ใช้ ค่าพิเศษ "me" สามารถใช้เพื่อระบุผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
การตอบกลับสำหรับเมธอด trafficAddress.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"]]