开始使用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需获得对 RBM Operations API 的访问权限,请完成以下步骤:
创建 Google Cloud 项目
创建 Google Cloud 项目,以通过 Google Cloud 控制台访问 API。该 API 可免费使用。
创建服务账号
在您的 Google Cloud 项目中创建服务帐号:
在 Google Cloud 控制台中创建服务帐号,并提供以下内容:
- 服务账号名称 - 示例:RBM Ops API Access
- 服务账号 ID - 示例:rbmopsapi-service-account
点击创建并继续。
点击完成。
申请 API 访问权限
向您的 Google 技术联系人提供以下信息,以便 Google 为您配置 API 访问权限:
- 您为此活动创建的 Google Cloud 项目的 ID
- 您所代表或正代表的运营商
申请 API 访问权限
您的 Google 技术联系人将为您提供一个 @google.com 帐号,您必须将该帐号添加到您的项目中,以便 Google 为该项目配置正确的 API 访问权限。按照以下步骤添加帐号:
- 打开 Google Cloud 控制台的 IAM 管理员页面。
- 确保选择了正确的 Google Cloud 项目。
- 点击授予访问权限。
- 输入作为新主账号的电子邮件地址。
- 将角色设置为 Service Usage Admin。
- 点击保存。
完成上述步骤后,请通知您的 Google 技术联系人,以便他们完成 API 访问权限配置。
完成示例代码
阅读我们的 JavaScript 和 Curl 示例,更好地了解如何使用 RBM Operations API。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-08。
[null,null,["最后更新时间 (UTC):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."]]