Method: users.settings.sendAs.smimeInfo.get
Lấy cấu hình S/MIME đã chỉ định cho bí danh gửi bằng địa chỉ đã chỉ định.
Yêu cầu HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
userId |
string
Địa chỉ email của người dùng. Bạn có thể sử dụng giá trị đặc biệt me để cho biết người dùng đã xác thực.
|
sendAsEmail |
string
Địa chỉ email xuất hiện trong tiêu đề "Từ:" đối với thư được gửi bằng bí danh này.
|
id |
string
Mã nhận dạng không thể thay đổi cho SmimeInfo.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của SmimeInfo
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
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
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]