WebResource: get
ต้องมีการให้สิทธิ์
เรียกดูข้อมูลล่าสุดของเว็บไซต์หรือโดเมน
ลองใช้เลย
วิธีนี้จะเรียกข้อมูลได้เฉพาะเว็บไซต์ที่ผู้ใช้ที่ตรวจสอบสิทธิ์แล้วเป็นเจ้าของโดยตรงหรือโดยอ้อมเท่านั้น "โดยอ้อม" การเป็นเจ้าของ คือการเป็นเจ้าของไซต์หลัก (ทุกระดับ) ที่ได้รับการยืนยัน ตัวอย่างเช่น เจ้าของ example.com เป็นเจ้าของโดยตรงของ example.com และเจ้าของโดยอ้อมของทั้ง monkeys.example.com และ bonobo.monkeys.example.com
ส่งคำขอ
คำขอ HTTP
GET https://www.googleapis.com/siteVerification/v1/webResource/id
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์เส้นทาง |
id |
string |
รหัสของเว็บไซต์หรือโดเมนที่ได้รับการยืนยัน
|
การให้สิทธิ์
คำขอนี้ต้องได้รับการให้สิทธิ์ตามขอบเขตต่อไปนี้ (อ่านเพิ่มเติมเกี่ยวกับการตรวจสอบสิทธิ์และการให้สิทธิ์)
ขอบเขต |
https://www.googleapis.com/auth/siteverification |
เนื้อหาของคำขอ
โปรดอย่าให้เนื้อหาคำขอตามวิธีการนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-09 UTC
[null,null,["อัปเดตล่าสุด 2024-09-09 UTC"],[[["Retrieves the latest data for a website or domain owned directly or indirectly by the authenticated user."],["Only authorized users with the `https://www.googleapis.com/auth/siteverification` scope can access this method to retrieve data."],["The request is made using an HTTP GET request to a specific URL, providing the ID of the verified site or domain."],["The response, if successful, will contain a WebResource resource providing information about the site or domain."]]],["This outlines how to retrieve current data for a verified website or domain using a GET request to the specified API endpoint. The request requires authorization with the `https://www.googleapis.com/auth/siteverification` scope and must target a site directly or indirectly owned by the authenticated user. The request uses a path parameter `id` (a string) representing the site's ID. A successful response returns a WebResource resource; no request body is needed.\n"]]