Bắt đầu
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.
Để có quyền truy cập vào RBM Operations API, hãy hoàn tất các bước sau:
Tạo một dự án trên Google Cloud
Tạo một dự án trên Google Cloud để truy cập API này thông qua Google Cloud Console. Bạn có thể sử dụng API này miễn phí.
Tạo một tài khoản dịch vụ
Tạo một tài khoản dịch vụ trong dự án trên Google Cloud:
Tạo tài khoản dịch vụ trong Google Cloud Console và cung cấp:
- Tên tài khoản dịch vụ – ví dụ: Quyền truy cập vào API RBM Ops
- Mã tài khoản dịch vụ – ví dụ: rbmopsapi-service-account
Nhấp vào TẠO VÀ TIẾP TỤC.
Nhấp vào XONG.
Yêu cầu quyền truy cập vào API
Cung cấp cho người liên hệ kỹ thuật của Google những thông tin sau để Google có thể định cấu hình quyền truy cập vào API cho bạn:
- Mã dự án của dự án trên Google Cloud mà bạn đã tạo cho hoạt động này
- Nhà mạng mà bạn đại diện hoặc đang phát triển thay mặt cho
Yêu cầu quyền truy cập vào API
Người liên hệ kỹ thuật của Google sẽ cung cấp cho bạn một tài khoản @google.com. Bạn phải thêm tài khoản này vào dự án của mình để Google có thể định cấu hình dự án bằng đúng quyền truy cập API. Thêm tài khoản bằng cách làm theo các bước sau:
- Mở trang Quản trị IAM trên Google Cloud Console.
- Hãy đảm bảo bạn đã chọn đúng dự án trên Google Cloud.
- Nhấp vào BẬT QUYỀN TRUY CẬP.
- Nhập địa chỉ email làm Tên chính mới.
- Đặt vai trò thành Quản trị viên sử dụng dịch vụ.
- Nhấp vào LƯU.
Sau khi hoàn tất các bước này, hãy thông báo cho người liên hệ kỹ thuật của Google để họ có thể hoàn tất việc định cấu hình quyền truy cập vào API.
Hãy tìm hiểu mã mẫu của chúng tôi
Hãy đọc các ví dụ về JavaScript và Curl của chúng tôi để hiểu rõ hơn về cách sử dụng RBM Operations API.
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: 2024-04-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-04-08 UTC."],[[["\u003cp\u003eA Google Cloud project is required to access the free RBM Operations API, which is accessed through the Google Cloud Console.\u003c/p\u003e\n"],["\u003cp\u003eYou must create a service account within your Google Cloud project, providing a name and ID for that account.\u003c/p\u003e\n"],["\u003cp\u003eTo request API access, you need to provide your Google technical contact with your Google Cloud project ID and the carrier you represent.\u003c/p\u003e\n"],["\u003cp\u003eA Google-provided @google.com account must be added to your project with "Service Usage Admin" role to complete the API access configuration.\u003c/p\u003e\n"],["\u003cp\u003eSample Javascript and Curl code examples are provided to help understand how to use the RBM Operations API.\u003c/p\u003e\n"]]],[],null,["# Get started\n\nTo gain access to the RBM Operations API, complete the following\nsteps:\n\nCreate a Google Cloud project\n-----------------------------\n\nCreate a Google Cloud project to access the API through the\n[Google Cloud Console](https://console.cloud.google.com/). The API\nis free to use.\n\nCreate a service account\n------------------------\n\nCreate a service account in your Google Cloud project:\n\n1. [Create a service account](https://console.cloud.google.com/iam-admin/serviceaccounts/create)\n in the Google Cloud Console and provide:\n\n - Service account name - example: **RBM Ops API Access**\n - Service account ID - example: **rbmopsapi-service-account**\n2. Click **CREATE AND CONTINUE**.\n\n3. Click **DONE**.\n\nRequest API access\n------------------\n\nProvide your Google technical contact with the following\ninformation so Google can configure API access for you:\n\n- The project ID of the Google Cloud project you have created for this activity\n- The carrier that you represent or are developing on behalf of\n\nRequest API access\n------------------\n\nYour Google technical contact will provide you with an **@google.com** account\nthat you must add to your project so that Google can configure the project\nwith the correct API access. Add the account using the following steps:\n\n1. Open the Google Cloud Console [IAM Admin](https://console.cloud.google.com/iam-admin/) page.\n2. Ensure the correct Google Cloud project is selected.\n3. Click **GRANT ACCESS**.\n4. Enter the email address as the **New principal**.\n5. Set **role** to **Service Usage Admin**.\n6. Click **SAVE**.\n\nOnce these steps are complete, inform your Google technical contact so they\ncan complete API access configuration.\n\nWork through our sample code\n----------------------------\n\nRead our [Javascript](https://github.com/rcs-business-messaging/rbm-api-examples/tree/master/nodejs/rbm-ops-api)\nand [Curl](https://github.com/rcs-business-messaging/rbm-api-examples/tree/master/curl/rbm-ops-api)\nexamples to better understand how to use the RBM Operations API."]]