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
URI การเปลี่ยนเส้นทางที่ระบบจะส่งผู้ใช้ไปหลังจากยอมรับข้อกำหนดในการให้บริการ ต้องกำหนดค่าในคอนโซล Google Cloud เป็น URI การเปลี่ยนเส้นทาง
|
เนื้อหาการตอบกลับ
ข้อความตอบกลับสําหรับ RPC ของ accounts.provisionAccountTicket
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"accountTicketId": string
} |
ช่อง |
accountTicketId |
string
พารามิเตอร์ที่จะส่งในลิงก์ข้อกำหนดในการให้บริการ
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 2025-01-14 UTC"],[[["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"]]