Method: users.settings.forwardingAddresses.get
คำขอ HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
userId |
string
อีเมลของผู้ใช้ ค่าพิเศษ "me" สามารถใช้เพื่อระบุผู้ใช้ที่ตรวจสอบสิทธิ์แล้วได้
|
forwardingEmail |
string
อีเมลที่ใช้รับการส่งต่อที่จะเรียกข้อมูล
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ 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"],[[["Retrieves a specific forwarding address for a Gmail user using their email address and the forwarding address."],["Requires an empty request body and returns a ForwardingAddress object upon successful execution."],["Needs authorization with specific OAuth scopes, including 'gmail.settings.basic', 'mail.google.com', 'gmail.modify', or 'gmail.readonly'."],["Utilizes a GET request with path parameters for user ID and forwarding email, adhering to gRPC Transcoding syntax."]]],["This document outlines how to retrieve a specific forwarding address using a GET request. The request URL structure is `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}`, where `userId` is the user's email or \"me,\" and `forwardingEmail` is the target address. The request body must be empty. A successful request returns a `ForwardingAddress` instance in the response body. The request needs authorization with one of the specified OAuth scopes.\n"]]