Method: accounts.provisionAccountTicket
طلب الحصول على تذكرة لإنشاء حساب
طلب HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/accounts:provisionAccountTicket
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"account": {
object (Account )
},
"redirectUri": string
} |
الحقول |
account |
object (Account )
الحساب المطلوب إنشاؤه.
|
redirectUri |
string
عنوان URL لإعادة التوجيه الذي سيتم إرسال المستخدم إليه بعد قبول بنود الخدمة يجب ضبطه في Cloud Console كمعرّف موارد منتظم لإعادة التوجيه.
|
نص الاستجابة
رسالة الردّ على طلب RPC من accounts.provisionAccountTicket
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تمثيل JSON |
{
"accountTicketId": string
} |
الحقول |
accountTicketId |
string
المَعلمة التي سيتم تمريرها في رابط بنود الخدمة.
|
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This document explains how to request a ticket for creating a Google Analytics account using the `provisionAccountTicket` method."],["The request body should contain the account details and a redirect URI for user redirection after accepting Terms of Service."],["A successful response will include an `accountTicketId` used for the Terms of Service link."],["This operation requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["The core action is to request a ticket for account creation via a POST request to a specified URL. The request body must include an `account` object and a `redirectUri`. Successful requests return a response body containing an `accountTicketId`. This process uses gRPC Transcoding syntax, and requires the OAuth scope `https://www.googleapis.com/auth/analytics.edit` for authorization. The redirect URI must be configured in the Cloud Console.\n"]]