new_releases التعديلات: يمكنك الاطّلاع على
ملاحظات الإصدار للتعرّف على الميزات الجديدة وتحديثات المنتجات.
إدراج مشغّلي شبكات الجوّال (المناطق)
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتم تعريف شبكات مشغّلي شبكات الجوّال التي يمكن فيها إطلاق وكيل RBM على أنّها "مناطق"
في واجهة برمجة التطبيقات RBM Management API.
يحافظ فريق دعم RBM على قائمة محدّثة لمشغّلي شبكات الجوّال، والتي تنمو مع زيادة عدد
مشغّلي شبكات الجوّال الذين يتبنّون ميزة RBM.
تمّ استخراج مقتطفات الرموز البرمجية في هذه الصفحة من عيّنات Java
وعيّنات Node.js.
إدراج المناطق
عليك استرداد قائمة بالمناطق التي يمكن إطلاقها قبل أن تتمكّن من إرسال
وكيل لإطلاقه. لمزيد من التفاصيل، يُرجى الاطّلاع على regions.list
.
Node.js
const businessCommunicationsApiHelper =
require('@google/rbm-businesscommunications');
const privateKey =
require('../../resources/businesscommunications-service-account-credentials.json');
businessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);
businessCommunicationsApiHelper.listRegions().then((response) => {
console.log(response.data);
}).catch((err) => {
console.log(err);
});
Java
List<RcsBusinessMessagingRegion> regions = api.listAllRbmLaunchRegions();
List<String> regionIds = regions.stream().map(RcsBusinessMessagingRegion::getName).sorted()
.collect(Collectors.toList());
logger.info("Fetched region Ids: " + regionIds);
يعرض هذا الرمز قائمة بجميع مشغّلي شبكات الجوّال الذين يمكن إرسال وكيل إليه لبدء العمل:
{
regions: [
{
name: '/v1/regions/dt-germany',
displayName: 'Germany: DT',
managementType: 'CARRIER_MANAGED'
},
{
name: '/v1/regions/9mobile-nigeria',
displayName: 'Nigeria: 9 Mobile',
managementType: 'GOOGLE_MANAGED'
},
...
...
]
}
يدير مشغّلو شبكات الجوّال المدرَجون ضمن الفئة CARRIER_MANAGED
عملية الموافقة الخاصة بهم ويحصّلون رسومًا مقابل تسليم رسائل RBM إلى المشتركين. يجب أن يكون لديك اتفاقية تجارية مباشرةً مع مشغّلي شبكات الجوّال هؤلاء قبل أن تتمكّن من إرسال رسائل RBM إلى المشتركين لديهم.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-16 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-16 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e"Regions" in the RBM Management API refer to the carrier networks where an RBM agent can be launched.\u003c/p\u003e\n"],["\u003cp\u003eThe RBM Support team keeps an updated list of carriers that support RBM, which is constantly expanding.\u003c/p\u003e\n"],["\u003cp\u003eYou must retrieve a list of launchable regions using the \u003ccode\u003eregions.list\u003c/code\u003e endpoint before you can submit an agent for launch.\u003c/p\u003e\n"],["\u003cp\u003eCode samples for listing regions are available in both Java and Node.js, and these examples demonstrate how to retrieve the available carrier networks.\u003c/p\u003e\n"],["\u003cp\u003eCarriers listed as \u003ccode\u003eCARRIER_MANAGED\u003c/code\u003e have their own approval process and require a commercial agreement before delivering RBM messages to their subscribers.\u003c/p\u003e\n"]]],[],null,["# List carriers (regions)\n\nThe carrier networks where an RBM agent can be launched are defined as \"regions\"\nin the RBM Management API.\n\nThe RBM Support team maintains an up-to-date carrier list, which grows as more\ncarriers adopt RBM.\n\nCode snippets on this page are taken from the [Java samples](https://github.com/rcs-business-messaging/rbm-api-examples/tree/master/java/rbm-mgmt-api)\nand [Node.js samples](https://github.com/rcs-business-messaging/rbm-api-examples/tree/master/nodejs/rbm-mgmt-api).\n\nList regions\n------------\n\nYou need to retrieve a list of the launchable regions before you can submit\nan agent for launch. For more details, see [`regions.list`](/business-communications/rcs-business-messaging/reference/business-communications/rest/v1/regions/list). \n\n### Node.js\n\n```javascript\nconst businessCommunicationsApiHelper =\n require('@google/rbm-businesscommunications');\n\nconst privateKey =\n require('../../resources/businesscommunications-service-account-credentials.json');\n\nbusinessCommunicationsApiHelper.initBusinessCommunucationsApi(privateKey);\n\nbusinessCommunicationsApiHelper.listRegions().then((response) =\u003e {\n console.log(response.data);\n}).catch((err) =\u003e {\n console.log(err);\n}); \n```\n\n### Java\n\n```java\nList\u003cRcsBusinessMessagingRegion\u003e regions = api.listAllRbmLaunchRegions();\nList\u003cString\u003e regionIds = regions.stream().map(RcsBusinessMessagingRegion::getName).sorted()\n .collect(Collectors.toList());\nlogger.info(\"Fetched region Ids: \" + regionIds);\n```\n\nThis code returns a list of all the carriers where an agent can be\nsubmitted for launch: \n\n {\n regions: [\n {\n name: '/v1/regions/dt-germany',\n displayName: 'Germany: DT',\n managementType: 'CARRIER_MANAGED'\n },\n {\n name: '/v1/regions/9mobile-nigeria',\n displayName: 'Nigeria: 9 Mobile',\n managementType: 'GOOGLE_MANAGED'\n },\n ...\n ...\n ]\n }\n\nCarriers which are listed as `CARRIER_MANAGED` operate their own approval\nprocess and charge for delivery of RBM messages to their subscribers. You\nneed to have a commercial agreement in place directly with these carriers\nbefore you can deliver RBM messages to their subscribers."]]