تتضمّن واجهة برمجة التطبيقات
لأداء الأعمال في Google طريقة واجهة برمجة تطبيقات
جديدة تتيح جلب عدة "مقاييس يومية" في طلب واحد لواجهة برمجة التطبيقات.
يُرجى مراجعة
الجدول الزمني للإيقاف وتعليمات نقل البيانات من طريقة v4 reportInsights API إلى واجهة برمجة التطبيقات الخاصة بأداء "الملف التجاري على Google".
Method: accounts.generateAccountNumber
ينشئ رقم حساب لهذا الحساب. لا يتم توفير رقم الحساب عند إنشاء حساب. يمكنك استخدام هذا الطلب لإنشاء رقم حساب عندما يكون مطلوبًا.
طلب HTTP
POST https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المَعلمات |
name |
string
اسم الحساب الذي سيتمّ إنشاء رقم حساب له
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Account
.
نطاقات الأذونات
يتطلب استخدام أحد نطاقات OAuth التالية:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
لمزيد من المعلومات، راجِع نظرة عامة على بروتوكول OAuth 2.0.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2023-12-02 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2023-12-02 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This endpoint generates an account number for an existing Google My Business account, which is not automatically provisioned during account creation."],["To generate an account number, send an empty POST request to the specified endpoint, including the account name in the path."],["A successful request returns the Account resource, containing the generated account number."],["Requires appropriate OAuth scopes for authorization, such as `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."],["This endpoint is marked as deprecated and might be subject to removal or changes in the future."]]],["This content describes how to generate an account number for an existing account via a deprecated endpoint. A `POST` request is sent to `https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber` with the account's name as a path parameter. The request body must be empty. A successful request returns an `Account` instance in the response body. Authorization requires one of two specified OAuth scopes. The URL utilizes gRPC Transcoding syntax.\n"]]