開始使用
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要取得 RBM Operations API 的存取權,請完成下列步驟:
建立 Google Cloud 專案
透過 Google Cloud 控制台建立 Google Cloud 專案,以便存取 API。您可以免費使用 API。
建立服務帳戶
在 Google Cloud 專案中建立服務帳戶:
在 Google Cloud 控制台中建立服務帳戶,並提供:
- 服務帳戶名稱 - 範例:RBM Ops API 存取權
- 服務帳戶 ID - 範例:rbmopsapi-service-account
點選「建立並繼續」。
點選「完成」。
要求 API 存取權
請向您的 Google 技術聯絡人提供下列資訊,以便 Google 為您設定 API 存取權:
- 您為此活動建立的 Google Cloud 專案 ID
- 您代表或代為開發的電信業者
要求 API 存取權
Google 技術聯絡人會提供 @google.com 帳戶,請將該帳戶新增到專案中,以便 Google 為專案設定正確的 API 存取權。請按照下列步驟新增帳戶:
- 開啟 Google Cloud 控制台的「IAM Admin」(IAM 管理員) 頁面。
- 確認已選取正確的 Google Cloud 專案。
- 按一下「授予存取權」。
- 輸入電子郵件地址做為「新增主體」。
- 將「role」設為「服務使用情形管理員」。
- 按一下「儲存」。
完成上述步驟後,請通知您的 Google 技術聯絡人,以便他們完成 API 存取權設定。
逐步使用我們的程式碼範例
參閱 JavaScript 和 Curl 範例,進一步瞭解如何使用 RBM Operations API。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-08 (世界標準時間)。
[null,null,["上次更新時間:2024-04-08 (世界標準時間)。"],[[["\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."]]