Bir web sitesinin veya alanın sahipliğini doğrular.
Şimdi deneyin.
insert'i çağırmadan önce, kimliği doğrulanmış kullanıcının doğrulama jetonunu kullanıcının web sitesine veya alanına yerleştirin. insert'i aradığınızda Google'ın Site Doğrulama hizmeti, web sitesini veya alanı sorgular ve jetonu arar.
Google, kullanıcının jetonunu web sitesinde veya alanda bulursa siteyi doğrulanmış olarak kaydeder.Kimliği doğrulanmış kullanıcı ayrıca sahiplik delege edebilir; İstek gövdesindeki owners alanında belirttiğiniz tüm e-posta adresleri de doğrulanmış site sahibi olarak kaydedilir.
verificationMethod sorgu parametresi, Google'ın kontrol etmesi gereken doğrulama jetonu türünü belirtir.verificationMethod değeri, daha önce getToken'a iletilen değerle eşleşmelidir.
İstek
HTTP isteği
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
Parametreler
Parametre adı
Değer
Açıklama
Gerekli sorgu parametreleri
verificationMethod
string
Bir site veya alan adını doğrulamak için kullanılacak yöntem.
Başarılı olursa bu yöntem, yanıt gövdesinde bir WebResource kaynağı döndürür.
Deneyin!
Canlı verilerde bu yöntemi çağırmak ve yanıtı görmek için aşağıdaki API Gezgini'ni kullanın.
Alternatif olarak şunu da deneyebilirsiniz:
bağımsız
öğrenin.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-08-23 UTC."],[[["The Site Verification API allows you to programmatically verify ownership of a website or domain using a verification token."],["Before verification, you need to place a verification token on your website, obtained via the `getToken` method."],["The API confirms ownership by checking for the token and records verified owners, including delegated ones."],["This process requires authorization with specific scopes related to site verification."],["A successful verification returns a WebResource resource, confirming the site or domain ownership."]]],["To verify website ownership, place the user's verification token, obtained via `getToken`, on the site. Send a POST request to `/site-verification/v1/webResource/insert` with the `verificationMethod` query parameter matching the token type. Google's service checks for the token and records the site as verified if found. You can also specify additional owners in the request body. Ownership is stored and visible to all current and future owners. This request requires authorization with specified scopes.\n"]]