RBM 에이전트를 실행할 수 있는 이동통신사 네트워크는 RBM 관리 API에서 '지역'으로 정의됩니다.
RBM 지원팀은 최신 이동통신사 목록을 유지관리하며, 더 많은 이동통신사가 RBM을 채택함에 따라 목록이 늘어납니다.
이 페이지의 코드 스니펫은 Java 샘플과 Node.js 샘플에서 가져온 것입니다.
리전 나열
출시할 에이전트를 제출하려면 먼저 출시 가능한 지역 목록을 가져와야 합니다. 자세한 내용은 regions.list를 참조하세요.
cURL
curl -v "https://businesscommunications.googleapis.com/v1/regions" \ -H "Content-Type: application/json" \ -H "User-Agent: curl/business-messaging" \ -H "`oauth2l header --json rbm-developer-service-account-credentials.json businesscommunications`"
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); });
자바
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 메시지를 전송하려면 이동통신사와 직접 상업적 계약을 체결해야 합니다.