API Reference
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此 API 参考文档按资源类型组织整理。每种资源类型都有一种或多种数据表示形式以及一个或多个方法。
Web 资源
如需详细了解 WebResource 资源,请参阅资源表示形式页面。
方法 |
HTTP 请求 |
说明 |
除非另有说明,否则 URI 均为 https://www.googleapis.com/siteVerification/v1 的相对地址 |
delete
|
DELETE /webResource/id
|
验证用户对网站或网域的所有权。
|
get
|
GET /webResource/id
|
检索网站或域名的最新数据。 |
获取令牌
|
POST /token
|
获取经过身份验证的用户放置到网站或网域上的验证令牌。 |
插入
|
POST /webResource?verificationMethod=method
|
验证网站或域名的所有权。
必需查询参数:
verificationMethod |
list
|
GET /webResource
|
获取经过身份验证的用户的已验证网域和网域列表。 |
update
|
PUT /webResource/id
|
修改网站或网域的所有者列表。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-08-16。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2022-08-16。"],[[["\u003cp\u003eThis API reference is structured around resource types, each with their own data representations and methods.\u003c/p\u003e\n"],["\u003cp\u003eThe WebResource resource allows you to manage website and domain ownership verification through methods like \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003einsert\u003c/code\u003e, \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003eupdate\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003egetToken\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve, verify, unverify, and modify website or domain ownership, as well as list verified sites and obtain verification tokens.\u003c/p\u003e\n"],["\u003cp\u003eAll URIs are relative to \u003ccode\u003ehttps://www.googleapis.com/siteVerification/v1\u003c/code\u003e unless specified otherwise.\u003c/p\u003e\n"]]],["The API manages WebResources, which represent websites or domains. Key actions include: `delete` to unverify ownership; `get` to retrieve current data; `getToken` to get a verification token; `insert` to verify ownership, requiring a `verificationMethod`; `list` to retrieve a list of verified sites; and `update` to modify the owner list. These actions use `DELETE`, `GET`, `POST`, and `PUT` HTTP methods against `/webResource/` or `/token` endpoints. Each resource has its data representation and methods.\n"],null,["# API Reference\n\nThis API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.\n\nWebResource\n-----------\n\nFor WebResource Resource details, see the [resource representation](/site-verification/v1/webResource#resource) page.\n\n| Method | HTTP request | Description |\n|--------------------------------------------------------|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| URIs relative to https://www.googleapis.com/siteVerification/v1, unless otherwise noted |||\n| [delete](/site-verification/v1/webResource/delete) | `DELETE /webResource/`\u003cvar class=\"apiparam\" translate=\"no\"\u003eid\u003c/var\u003e | Unverifies the user's ownership of a website or domain. |\n| [get](/site-verification/v1/webResource/get) | `GET /webResource/`\u003cvar class=\"apiparam\" translate=\"no\"\u003eid\u003c/var\u003e | Retrieves the most current data for a website or domain. |\n| [getToken](/site-verification/v1/webResource/getToken) | `POST /token` | Gets a verification token for the authenticated user to place on a website or domain. |\n| [insert](/site-verification/v1/webResource/insert) | `POST /webResource?verificationMethod=`\u003cvar class=\"apiparam\" translate=\"no\"\u003emethod\u003c/var\u003e | Verifies ownership of a website or domain. \u003cbr /\u003e **Required query parameters:** `verificationMethod` |\n| [list](/site-verification/v1/webResource/list) | `GET /webResource` | Gets the list of the authenticated user's verified websites and domains. |\n| [update](/site-verification/v1/webResource/update) | `PUT /webResource/`\u003cvar class=\"apiparam\" translate=\"no\"\u003eid\u003c/var\u003e | Modifies the list of owners for a website or domain. |"]]