Method: enterprises.webTokens.create
Tạo mã thông báo web để truy cập vào giao diện người dùng web Managed Google Play có thể nhúng cho một doanh nghiệp cụ thể.
Yêu cầu HTTP
POST https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/webTokens
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Tên của doanh nghiệp ở dạng enterprises/{enterpriseId} .
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của WebToken
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể WebToken
mới tạo.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidmanagement
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-29 UTC."],[[["Creates a web token for accessing an embeddable managed Google Play web UI for a given enterprise."],["Uses a POST request to `https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/webTokens` with the enterprise name as a path parameter."],["Requires a request body containing a WebToken object and provides a newly created WebToken object in the response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/androidmanagement` scope."]]],["This outlines the process to create a web token for accessing a managed Google Play web UI. A `POST` HTTP request is sent to a specified URL, including a `parent` path parameter that identifies the enterprise. The request body requires a `WebToken` instance. Upon success, the response body returns a newly created `WebToken` instance. This action requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization. The complete path to the resource is: `https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/webTokens`.\n"]]