Method: users.settings.getImap
Yêu cầu HTTP
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap
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. Giá trị đặc biệt "tôi" có thể được dùng để cho biết người dùng đã xác thực.
|
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 ImapSettings
.
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
Để 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 a user's IMAP settings through an HTTP GET request to a specified URL."],["Requires specifying the user's email address (or \"me\" for the authenticated user) as a path parameter."],["An empty request body is necessary, and a successful response returns an ImapSettings object."],["Authorization is required, utilizing one of the provided OAuth scopes for access control."]]],["The core content describes how to retrieve IMAP settings using a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap`. The `userId` path parameter, either an email or \"me\", specifies the user. The request body must be empty. A successful response will return `ImapSettings`. Access requires one of four OAuth scopes, including `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`. The URL utilizes gRPC Transcoding syntax.\n"]]