Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.locations.admins.list
แสดงรายชื่อผู้ดูแลระบบทั้งหมดของสถานที่ที่ระบุ
คำขอ HTTP
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/admins
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ชื่อสถานที่ที่จะแสดงรายชื่อผู้ดูแลระบบ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ข้อความตอบกลับสําหรับ AccessControl.ListLocationAdmins
การแสดง JSON |
{
"admins": [
{
object (Admin )
}
]
} |
ช่อง |
admins[] |
object (Admin )
คอลเล็กชันของอินสแตนซ์ Admin รายการ
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-09 UTC
[null,null,["อัปเดตล่าสุด 2024-11-09 UTC"],[[["This endpoint, which is deprecated and should be replaced with the Account Management API, lists all admins for a specified location."],["The request requires using the `GET` method with the provided URL structure, including a path parameter for the location."],["An empty request body is necessary, while the response will contain a JSON object with a list of admins."],["Authorization is required, needing one of two specified OAuth scopes for access."]]],["This document outlines the process to list admins for a specific location via a deprecated API. It utilizes a `GET` request to a URL with the location's path (`parent`). The request body is empty. A successful response returns a JSON object containing an array of `admins`. The API uses gRPC Transcoding syntax and requires specific OAuth scopes (`plus.business.manage` or `business.manage`). It indicates the user should use the Account Management API instead.\n"]]