Method: properties.keyEvents.get
ดึงข้อมูลเหตุการณ์สำคัญรายการเดียว
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/keyEvents/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อทรัพยากรของเหตุการณ์สำคัญที่จะเรียกข้อมูล รูปแบบ: พร็อพเพอร์ตี้/{property}/keyEvents/{keyEvent} ตัวอย่างเช่น "properties/123/keyEvents/456"
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ KeyEvent
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-06 UTC
[null,null,["อัปเดตล่าสุด 2024-05-06 UTC"],[[["Retrieve detailed insights about a specific Key Event within your Google Analytics 4 property."],["Access Key Event data through a simple GET request using the provided URL structure."],["Identify the desired Key Event by specifying its resource name in the request path."],["Upon successful retrieval, receive a comprehensive response containing the Key Event details."],["Authorization requires specific OAuth scopes for read or edit access to Analytics data."]]],["This document details retrieving a Key Event via a `GET` HTTP request to `https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/keyEvents/*}`. The request requires a `name` path parameter specifying the Key Event's resource name (e.g., \"properties/123/keyEvents/456\"). The request body must be empty. A successful response returns a `KeyEvent` instance. Authorization requires either the `analytics.readonly` or `analytics.edit` OAuth scope. The document also uses gRPC Transcoding syntax.\n"]]