เริ่มต้น
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากต้องการเข้าถึง RBM Operations API โปรดทำตามขั้นตอนต่อไปนี้
สร้างโปรเจ็กต์ Google Cloud
สร้างโปรเจ็กต์ Google Cloud เพื่อเข้าถึง API ผ่านคอนโซล Google Cloud API นี้
ใช้งานได้ฟรี
สร้างบัญชีบริการ
สร้างบัญชีบริการในโปรเจ็กต์ Google Cloud โดยทำดังนี้
สร้างบัญชีบริการใน Google Cloud Console และให้ข้อมูลต่อไปนี้
- ชื่อบัญชีบริการ - ตัวอย่าง: RBM Ops API Access
- รหัสบัญชีบริการ เช่น rbmopsapi-service-account
คลิกสร้างและต่อไป
คลิกเสร็จสิ้น
ขอสิทธิ์เข้าถึง API
ให้ข้อมูลต่อไปนี้แก่ผู้ติดต่อด้านเทคนิคของ Google เพื่อให้ Google สามารถกำหนดค่าการเข้าถึง API ให้คุณได้
- รหัสของโปรเจ็กต์ Google Cloud ที่คุณสร้างสำหรับกิจกรรมนี้
- ผู้ให้บริการที่คุณเป็นตัวแทนหรือกำลังพัฒนาในนามของ
ขอสิทธิ์เข้าถึง API
ผู้ติดต่อด้านเทคนิคของ Google จะให้บัญชี @google.com แก่คุณ ซึ่งคุณต้องเพิ่มลงในโปรเจ็กต์เพื่อให้ Google กำหนดค่าโปรเจ็กต์ด้วยสิทธิ์เข้าถึง API ที่ถูกต้องได้ เพิ่มบัญชีโดยทำตามขั้นตอนต่อไปนี้
- เปิดหน้าผู้ดูแลระบบ IAM ของคอนโซล Google Cloud
- ตรวจสอบว่าเลือกโปรเจ็กต์ Google Cloud ที่ถูกต้องแล้ว
- คลิกให้สิทธิ์เข้าถึง
- ป้อนอีเมลเป็นผู้ใช้หลักรายใหม่
- ตั้งค่าบทบาทเป็นผู้ดูแลระบบการใช้บริการ
- คลิกบันทึก
เมื่อทําตามขั้นตอนเหล่านี้เสร็จแล้ว โปรดแจ้งผู้ติดต่อด้านเทคนิคของ Google เพื่อให้การกําหนดค่าการเข้าถึง API เสร็จสมบูรณ์
ทดสอบโค้ดตัวอย่างของเรา
อ่านตัวอย่าง JavaScript และ Curl เพื่อทำความเข้าใจวิธีใช้ RBM Operations API ให้ดียิ่งขึ้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-04-08 UTC
[null,null,["อัปเดตล่าสุด 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."]]