Method: accounts.provisionAccountTicket
ขอตั๋วสำหรับการสร้างบัญชี
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1beta/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"],[[["Requests a ticket for creating a new Google Analytics 4 account."],["The request body includes the account details and a redirect URI for user consent."],["Upon successful request, the response provides an account ticket ID for accessing the Terms of Service."],["Requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope to provision accounts."]]],["The content outlines how to request a ticket for account creation using a POST request to `https://analyticsadmin.googleapis.com/v1beta/accounts:provisionAccountTicket`. The request body must include an `account` object and a `redirectUri`. A successful response returns an `accountTicketId`. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope, and the `redirectUri` must be pre-configured. This process is used to accept terms of service for new accounts.\n"]]