Method: operators.clients.users.planStatus.create
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cho phép nhà cung cấp dịch vụ di động (được xác định bằng Mã số hệ thống tự quản (ASN) duy nhất của họ) thêm mục PlanStatus mới để người dùng được một ứng dụng cụ thể sử dụng.
Yêu cầu HTTP
POST https://mobiledataplansharing.googleapis.com/v1/{parent=operators/*}/clients/{clientId}/users/{userKey}/planStatus
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
parent |
string
Tên tài nguyên của tài nguyên mẹ ở định dạng sau: operators/{asn_id} .
|
clientId |
string
Khách hàng mà trạng thái gói đang được chia sẻ với Google. Các mã ứng dụng khách được hỗ trợ là gói dữ liệu di động và youtube.
|
userKey |
string
Xác định khoá người dùng xác định người dùng có trạng thái gói đang được tạo.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của PlanStatus
.
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ể mới được tạo của PlanStatus
.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/dataplansharing
Để biết thêm thông tin, hãy xem Tổng quan về OAuth 2.0.
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: 2022-09-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2022-09-26 UTC."],[[["This API endpoint allows mobile operators to add new plan status entries for users."],["The request must include the operator's ASN, client ID (mobiledataplan or youtube), and a user key."],["Both the request and response bodies utilize the `PlanStatus` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/dataplansharing` scope."],["The endpoint uses a POST request to `https://mobiledataplansharing.googleapis.com/v1/{parent=operators/*}/clients/{clientId}/users/{userKey}/planStatus`."]]],["A mobile operator uses a POST request to add a new `PlanStatus` entry for a specific user. The request targets a URL structured with `parent` (operator ASN), `clientId` (e.g., mobiledataplan, youtube), and `userKey`. The request body includes `PlanStatus` data, and a successful response returns a new `PlanStatus` instance. Authorization requires the `https://www.googleapis.com/auth/dataplansharing` OAuth scope. The core action is adding a new PlanStatus for a user.\n"]]