Method: accounts.get
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อบัญชีที่จะค้นหา รูปแบบ: accounts/{account} ตัวอย่างเช่น "accounts/100"
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Account
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["Lookup account details using the provided API endpoint with a GET request."],["Specify the account to lookup using the `name` path parameter in the format `accounts/{account}`."],["The API requires authorization using specified OAuth scopes for either read or edit access."],["Successful requests will return an Account object containing the requested account information."]]],["This document outlines the process for retrieving a single account using the Analytics Admin API. A `GET` request is made to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`, with the account identifier provided in the `name` path parameter (e.g., `accounts/100`). The request body must be empty. A successful response returns an `Account` instance. Access requires either `analytics.readonly` or `analytics.edit` OAuth scopes. The `try it!` button allows to experiment.\n"]]