Method: users.settings.updateImap
คำขอ HTTP
PUT https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
userId |
string
อีเมลของผู้ใช้ ค่าพิเศษ "me" สามารถใช้เพื่อระบุผู้ใช้ที่ตรวจสอบสิทธิ์แล้วได้
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ImapSettings
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ ImapSettings
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/gmail.settings.basic
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-05 UTC
[null,null,["อัปเดตล่าสุด 2024-09-05 UTC"],[[["Updates the user's IMAP settings in Gmail."],["Uses a PUT request to the `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap` endpoint."],["Requires the `https://www.googleapis.com/auth/gmail.settings.basic` OAuth scope for authorization."],["The request body and successful response body both contain an instance of ImapSettings."]]],["This content describes updating IMAP settings via a `PUT` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/imap`. The `userId` path parameter, which can be \"me\", specifies the user. The request body, and the successful response body, both contain `ImapSettings`. This action requires the `https://www.googleapis.com/auth/gmail.settings.basic` authorization scope. The request format follows gRPC Transcoding syntax.\n"]]