एजेंट को लॉन्च करने से पहले, वह सिर्फ़ टेस्ट के लिए तय किए गए डिवाइसों से बातचीत कर सकता है. टेस्टर जोड़ने से, आपको अपने एजेंट के व्यवहार की पुष्टि करने में मदद मिलती है. इससे, यह पक्का किया जा सकता है कि एजेंट को आम लोगों के लिए रिलीज़ होने से पहले, गलती से ऐक्सेस न मिल जाए.
RBM Management API का इस्तेमाल करके, टेस्टर जोड़े जा सकते हैं, अपने टेस्ट डिवाइसों की सूची बनाई जा सकती है, न्योते की स्थिति देखी जा सकती है, और जब टेस्टर की ज़रूरत न हो, तो उन्हें मिटाया जा सकता है.
किसी एजेंट के लिए टेस्टर जोड़ना
cURL
curl -v -X POST "https://businesscommunications.googleapis.com/v1/testers" \ -H "Content-Type: application/json" \ -H "User-Agent: curl/business-messaging" \ -H "`oauth2l header --json rbm-developer-service-account-credentials.json businesscommunications`" \ -d "{ 'agentId': '$AGENT_ID', 'phoneNumber': '$MSISDN' }"
Python
endpoint_url = (BASE_ENDPOINT + 'testers') body = { "agentId": agentId, "phoneNumber": msisdn } response = authed_session.post(endpoint_url, data=json.dumps(body))
किसी एजेंट के टेस्टर की सूची बनाना
cURL
curl -v -X GET "https://businesscommunications.googleapis.com/v1/testers?agentId=$AGENT_ID" \ -H "User-Agent: curl/business-messaging" \ -H "`oauth2l header --json rbm-developer-service-account-credentials.json businesscommunications`"
Python
endpoint_url = (BASE_ENDPOINT + 'testers?' + 'agentId=' + agentId) response = authed_session.get(endpoint_url)
टेस्टर का स्टेटस वापस पाना
cURL
curl -v -X GET "https://businesscommunications.googleapis.com/v1/$TESTER_ID?agentId=$AGENT_ID" \ -H "User-Agent: curl/business-messaging" \ -H "`oauth2l header --json rbm-developer-service-account-credentials.json businesscommunications`"
Python
endpoint_url = (BASE_ENDPOINT + testerId + '?agentId=' + agentId) response = authed_session.get(endpoint_url)
किसी टेस्टर का ऐक्सेस हटाना
cURL
curl -v -X DELETE "https://businesscommunications.googleapis.com/v1/$TESTER_ID?agentId=$AGENT_ID" \ -H "User-Agent: curl/business-messaging" \ -H "`oauth2l header --json rbm-developer-service-account-credentials.json businesscommunications`"
Python
endpoint_url = (BASE_ENDPOINT + testerId + '?agentId=' + agentId) response = authed_session.delete(endpoint_url)