Method: users.settings.sendAs.smimeInfo.get
รับการกำหนดค่า S/MIME ที่ระบุสำหรับชื่อแทน Send-as ที่ระบุ
คำขอ HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
userId |
string
อีเมลของผู้ใช้ สามารถใช้ค่าพิเศษ me เพื่อระบุผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว
|
sendAsEmail |
string
อีเมลที่ปรากฏในส่วนหัว "จาก:" สำหรับอีเมลที่ส่งโดยใช้ชื่อแทนนี้
|
id |
string
รหัสที่เปลี่ยนแปลงไม่ได้สำหรับ SmimeInfo
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ SmimeInfo
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต 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
https://www.googleapis.com/auth/gmail.settings.sharing
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-05 UTC
[null,null,["อัปเดตล่าสุด 2024-09-05 UTC"],[[["Retrieves the S/MIME configuration for a specific send-as alias using the provided user ID, send-as email address, and S/MIME ID."],["Requires an empty request body and returns the S/MIME configuration details in the response body if successful."],["Needs authorization with specific OAuth scopes, such as `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, `gmail.readonly`, or `gmail.settings.sharing`."],["Utilizes a specific HTTP GET request to access and retrieve the desired information from the Gmail API."]]],["This API retrieves an S/MIME configuration for a specified send-as alias. It utilizes a `GET` request to a URL with `userId`, `sendAsEmail`, and `id` path parameters. The `userId` identifies the user, `sendAsEmail` is the alias's email, and `id` is the SmimeInfo's ID. The request body must be empty, and a successful response returns a `SmimeInfo` instance. The operation needs specific OAuth scopes for authorization.\n"]]