WebResource
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
WebResource 代表已驗證的網站或網域。
其中包含網站或網域的標準 ID、網址或網域名稱,以及擁有者清單。請注意,擁有者清單一律包含已驗證的使用者,因為只有具備 WebResource 存取權的使用者才能成為已驗證網站或該網域的擁有者的使用者。
如需本資源的方法清單,請見本頁結尾。
資源表示法
{
"id": string,
"site": {
"type": string,
"identifier": string
},
"owners": [
string
]
}
資源名稱 |
值 |
說明 |
附註 |
id |
string |
用來識別這個網站的字串。這個值應用於 get、update 和 delete 作業的 REST 網址 id 部分。 |
|
owners[] |
list |
這個已驗證資源所有直接驗證擁有者的電子郵件地址。間接擁有者 (例如內含網域的已驗證擁有者) 並未列在這份清單中。 |
|
site |
object |
容器網址和網站類型 (已驗證或即將驗證)。 |
|
site.identifier |
string |
網站 ID,取決於 type 屬性的值,形式不同。 |
|
site.type |
string |
網站類型。
可接受的值如下:
- "
ANDROID_APP ":將 identifier 設為 Android 應用程式網址。範例:"android-app://com.google.android.youtube/"
- "
INET_DOMAIN ":將 identifier 設為網域名稱。示例:"www.example.com"、quoexample;example.com" 或 &subdomain.example.com"
- "
SITE ":將 identifier 設為網站根目錄的完整網址,並以 / 結尾。示例:"https://www.example.com/" 或 "https://www.example.com/subsite/"
|
|
方法
使用 insert 方法來驗證已驗證的網站或網域擁有權。使用get、更新和刪除方法,擷取或修改已驗證資源的使用者資源。
你可以使用清單,查看已驗證使用者的所有經驗證資源,並取得含有 getToken 的已驗證使用者網站權杖,
- 刪除
- 驗證使用者擁有網站或網域的擁有權。
- 取得
- 擷取網站或網域的最新資料。
- getToken
- 取得已驗證使用者的驗證代碼,將其置於網站或網域。
- 插入
- 驗證網站或網域的擁有權。
- list
- 取得已驗證使用者的清單和網域清單。
- 更新
- 修改網站或網域的擁有者清單。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-08-16 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]