모든 상담사는 브랜드 (비즈니스, 조직 또는 그룹)에 속합니다. 에이전트를 만들기 전에 먼저 브랜드를 만들어야 합니다. 브랜드는 관련 상담사를 그룹화하는 데 도움이 되는 순전히 조직적인 요소입니다.
에이전트에 테스터 추가
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)