परीक्षकों को प्रबंधित करें

सभी एजेंट किसी ब्रैंड (कारोबार, संगठन या ग्रुप) से जुड़े होते हैं. एजेंट बनाने से पहले, आपको एक ब्रैंड बनाना होगा. ब्रैंड सिर्फ़ संगठन के लिए होते हैं. इनकी मदद से, एक जैसे एजेंट को एक साथ ग्रुप किया जा सकता है.

किसी एजेंट के लिए टेस्टर जोड़ना

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'
  }"
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

Python

endpoint_url = (BASE_ENDPOINT + 'testers')

body = {
  "agentId": agentId,
  "phoneNumber": msisdn
}

response = authed_session.post(endpoint_url, data=json.dumps(body))
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

किसी एजेंट के टेस्टर की सूची बनाना

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`"
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

Python

endpoint_url = (BASE_ENDPOINT +
  'testers?' +
  'agentId=' + agentId)

response = authed_session.get(endpoint_url)
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

टेस्टर का स्टेटस वापस पाना

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`"
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

Python

endpoint_url = (BASE_ENDPOINT +
  testerId +
  '?agentId=' + agentId)

response = authed_session.get(endpoint_url)
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

टेस्टर को मिटाना

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`"
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.

Python

endpoint_url = (BASE_ENDPOINT +
  testerId +
  '?agentId=' + agentId)

response = authed_session.delete(endpoint_url)
यह कोड, हमारे RBM Management API के सैंपल का एक हिस्सा है.