Google Business Performance API, tek bir API isteğinde birden fazla "GünlükMetrik" getirmeye olanak tanıyan
YENİ bir API yöntemine sahiptir.
Kullanımdan kaldırma planını ve v4 reportInsights API yönteminden Google Business Profile Performance API'ye geçiş talimatlarını inceleyin.
Method: accounts.locations.admins.create
Belirtilen kullanıcıyı belirtilen konumda yönetici olmaya davet eder. Davetlinin konuma erişim izni vermesi için davetiyeyi kabul etmesi gerekir. Bir davetiyeyi programatik olarak kabul etmek için [invitations.accept] [google.mybusiness.v4.AcceptInvite] sayfasına bakın.
HTTP isteği
POST https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/admins
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Bu yöneticinin oluşturulduğu konumun kaynak adı.
|
İstek içeriği
İstek metni, Admin
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan Admin
örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Daha fazla bilgi için OAuth 2.0'a Genel Bakış başlıklı makaleye bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-02 UTC.
[null,null,["Son güncelleme tarihi: 2023-12-02 UTC."],[[["This API endpoint invites a user to become an administrator for a specific location, requiring the user to accept the invitation."],["It's deprecated; use the Account Management API ([https://developers.google.com/my-business/reference/accountmanagement/rest/v1/locations.admins/create](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/locations.admins/create)) instead."],["To programmatically accept the invitation, utilize the `google.mybusiness.v4.AcceptInvitation` method."],["The request requires specifying the location in the URL path and providing the `Admin` object in the request body."],["Authorization is essential using either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` OAuth scopes."]]],["This document details the process of inviting a user to become an administrator for a specific location. It uses a `POST` request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/admins`, with the `parent` path parameter defining the location. The request body should contain an `Admin` instance. A successful operation returns a newly created `Admin` instance. This function requires one of two specified OAuth scopes. Deprecated, user should refer to the Account Management API.\n"]]