היא מכילה את המזהה הקנוני של אתר או דומיין, את כתובת ה-URL או את שם הדומיין ורשימת בעלים. שימו לב שרשימת הבעלים כוללת תמיד את המשתמש המאומת, מפני שהאנשים היחידים שיכולים לגשת למשאב אינטרנט הם משתמשים מאומתים שהם הבעלים של האתר או הדומיין.
המחרוזת שמשמשת לזיהוי האתר הזה. יש להשתמש בערך הזה בחלק id של כתובת ה-URL ב-REST בשביל פעולות get, עדכון ו-delete.
owners[]
list
כתובות האימייל של כל הבעלים הישירים והמאומתים של הנכס המדויק הזה. בעלים עקיפים — לדוגמה, בעלים מאומתים של הדומיין שמכיל — לא נכללים ברשימה זו.
site
object
מאגר שמציין את הכתובת וסוג האתר שאומת או יאומת.
site.identifier
string
מזהה האתר, בצורות שונות בהתאם לערך של הנכס type.
site.type
string
סוג האתר.
הערכים הקבילים הם:
"ANDROID_APP": מגדירים את identifier לכתובת URL של אפליקציה ל-Android. Example: "android-app://com.google.android.youtube/"
"INET_DOMAIN": מגדירים את identifier כשם דומיין. דוגמאות: 'www.example.com', 'example.com' או 'subdomain.example.com'
"SITE": מגדירים את identifier ככתובת URL מוגדרת במלואה עבור הרמה הבסיסית (root) של האתר, שמסתיימת בסימן /. Examples: "https://www.example.com/" או "https://www.example.com/subsite/ "
שיטות
משתמשים בשיטה insert כדי לאמת את הבעלות של המשתמשים המאומתים על אתר או על דומיין. משתמשים בשיטות get, update, ו-delete כדי לאחזר או לשנות משאבים שכבר אומתו בשביל המשתמש המאומת.
אפשר לראות את כל המשאבים המאומתים של המשתמש המאומת ברשימה, ואפשר לקבל אסימון להצבה באתר של המשתמש המאומת באמצעות getToken.
[null,null,["עדכון אחרון: 2024-08-23 (שעון UTC)."],[[["A WebResource represents a verified website or domain and includes its ID, URL/domain, and a list of owners, which always includes the authenticated user."],["You can verify ownership, retrieve, update, and delete WebResources using the provided methods."],["WebResource data includes an ID, owner list, and site information containing the identifier and type (e.g., website, Android app, domain)."],["`site.identifier` can be a domain name, a URL, or an Android app URL depending on the `site.type`."],["Several methods are available to manage WebResources, including inserting (verifying ownership), retrieving data, updating owner lists, deleting, listing all verified resources, and getting a verification token."]]],["A WebResource represents a verified website or domain, identified by an `id`, `site` (type and identifier), and a list of `owners`, which always includes the authenticated user. Key actions include using `insert` to verify ownership, `get`, `update`, and `delete` to manage existing resources, `list` to view verified sites, and `getToken` to obtain a verification token. Site `type` can be `ANDROID_APP`, `INET_DOMAIN`, or `SITE`, with corresponding identifier formats.\n"]]