محفظه ای برای آدرس و نوع سایتی که برای آن کد تأیید تولید می شود.
site. type
string
نوع منبعی که باید تایید شود.
مقادیر قابل قبول عبارتند از:
" ANDROID_APP "
" INET_DOMAIN "
" SITE "
site. identifier
string
شناسه سایت اگر نوع روی SITE تنظیم شده باشد، شناسه یک URL است. اگر نوع روی INET_DOMAIN تنظیم شده باشد، شناسه یک نام دامنه است.
verificationMethod
string
روش تأیید برای سیستم تأیید سایت برای تأیید این سایت یا دامنه.
مقادیر قابل قبول عبارتند از:
" ANALYTICS ": فقط سایت ها
" DNS ": به جای آن از DNS_TXT استفاده کنید
" DNS_CNAME ": فقط دامنه ها
" DNS_TXT ": فقط دامنه ها
" FILE ": فقط سایت ها
" META ": فقط سایت ها
" TAG_MANAGER ": فقط سایتها
پاسخ
در صورت موفقیت آمیز بودن، این روش یک بدنه پاسخ با ساختار زیر را برمی گرداند:
{ "method":string, "token":string }
نام ملک
ارزش
توضیحات
یادداشت ها
method
string
روش تأییدی که در درخواست انتخاب کردید.
مقادیر قابل قبول عبارتند از:
" ANALYTICS "
" DNS "
" DNS_CNAME "
" DNS_TXT "
" FILE "
" META "
" TAG_MANAGER "
token
string
رشته ای که با استفاده از روش تأیید انتخاب شده در سایت کاربر تأیید شده قرار می گیرد. برای اطلاعات بیشتر، روشها و نشانههای تأیید را در سند شروع کار ببینید.
تاریخ آخرین بهروزرسانی 2025-01-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-05 بهوقت ساعت هماهنگ جهانی."],[[["Retrieves a verification token for website or domain ownership verification upon authorization."],["Supports various verification methods including `ANALYTICS`, `DNS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, and `TAG_MANAGER`."],["Requires specifying the site type (`SITE`, `INET_DOMAIN`, or `ANDROID_APP`) and identifier (URL or domain name)."],["Returns the selected verification method and the corresponding token to be placed on the site."],["Authorization is required with the `siteverification` or `siteverification.verify_only` scope."]]],["To get a verification token, send a POST request to the specified URL, including authorization with the correct scope. The request body must contain a `site` object with the `type` (e.g., `SITE`, `INET_DOMAIN`) and `identifier` (e.g., URL, domain name) of the site, as well as the desired `verificationMethod`. The successful response will return the chosen `method` and the `token` string to be placed on the site for verification.\n"]]