Method: accounts.emailPreferences.getEmailPreferences
返回 Merchant Center 账号用户的电子邮件接收设置。此服务仅允许检索和更新经过身份验证的用户的电子邮件偏好设置。使用 name=accounts/*/users/me/emailPreferences 别名可获取已验证用户的偏好设置。
HTTP 请求
GET https://merchantapi.googleapis.com/accounts/v1beta/{name=accounts/*/users/*/emailPreferences}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。EmailPreferences 资源的名称。格式:accounts/{account}/users/{email}/emailPreferences
|
响应正文
如果成功,则响应正文包含一个 EmailPreferences
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/content
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["This API endpoint retrieves email preferences for a specific Merchant Center account user."],["Only authenticated users can access and update their own email preferences using this service."],["The request requires the `name` path parameter to identify the user's email preferences resource."],["Successful responses will contain an `EmailPreferences` object with the user's current settings."],["Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope."]]],[]]