管理测试人员

所有代理都属于某个品牌(商家、组织或群组)。在创建代理之前,您需要先创建品牌。品牌纯粹是组织性的,可帮助您将相关代理分组。

本页上的代码段来自我们的 Python 示例

向代理添加测试人员

Python

endpoint_url = (BASE_ENDPOINT + 'testers')

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

response = authed_session.post(endpoint_url, data=json.dumps(body))
此代码摘自我们的 RBM 管理 API 示例

列出代理的测试人员

Python

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

response = authed_session.get(endpoint_url)
此代码摘自我们的 RBM 管理 API 示例

检索测试人员的状态

Python

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

response = authed_session.get(endpoint_url)
此代码摘自我们的 RBM 管理 API 示例

删除测试人员

Python

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

response = authed_session.delete(endpoint_url)
此代码摘自我们的 RBM 管理 API 示例