Gmail Postmaster Tools API
Postmaster Tools API 是一个 RESTful API,支持以编程方式访问电子邮件流量指标(例如垃圾邮件报告、递送错误等),这些指标目前可通过 Gmail Postmaster Tools 界面获取。
服务:gmailpostmastertools.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用自己的库来调用此服务,请在发出 API 请求时使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://gmailpostmastertools.googleapis.com
方法 |
get |
GET /v1/{name=domains/*}
获取客户端注册的特定网域。 |
list |
GET /v1/domains
列出客户端已注册的网域。 |
方法 |
get |
GET /v1/{name=domains/*/trafficStats/*}
获取某个网域在特定日期的流量统计信息。 |
list |
GET /v1/{parent=domains/*}/trafficStats
列出所有可用日期的流量统计信息。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-05。
[null,null,["最后更新时间 (UTC):2024-09-05。"],[[["The Postmaster Tools API offers programmatic access to email traffic metrics, such as spam reports and delivery errors, which are also accessible through the Gmail Postmaster Tools UI."],["It is a RESTful API with a service endpoint at `https://gmailpostmastertools.googleapis.com`."],["Developers can use Google-provided client libraries or their own to interact with the API."],["The API allows you to get and list domains registered by the client and get traffic statistics for domains on specific dates or list them for all available days."],["A Discovery Document is available for generating client libraries and other tools to interact with the Google API."]]],["The Postmaster Tools API, accessible via `gmailpostmastertools.googleapis.com`, provides programmatic access to email traffic metrics. It offers two REST resources: `v1.domains` and `v1.domains.trafficStats`. The `v1.domains` resource allows retrieving a specific domain using `get` or listing all registered domains with `list`. The `v1.domains.trafficStats` resource enables fetching traffic statistics for a domain on a specific date (`get`) or listing traffic data for all available days (`list`).\n"]]