Gestisci tester

Tutti gli agenti appartengono a un brand (attività, organizzazione o gruppo). Prima di creare un agente, devi creare un brand. I brand sono puramente organizzativi e ti aiutano a raggruppare gli agenti correlati.

Gli snippet di codice in questa pagina provengono dai nostri esempi Python.

Aggiungere un tester a un agente

Python

endpoint_url = (BASE_ENDPOINT + 'testers')

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

response = authed_session.post(endpoint_url, data=json.dumps(body))
Questo codice è un estratto del nostro esempio di API RBM Management.

Elencare i tester di un agente

Python

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

response = authed_session.get(endpoint_url)
Questo codice è un estratto del nostro esempio di API RBM Management.

Recuperare lo stato di un tester

Python

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

response = authed_session.get(endpoint_url)
Questo codice è un estratto del nostro esempio di API RBM Management.

Eliminare un tester

Python

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

response = authed_session.delete(endpoint_url)
Questo codice è un estratto del nostro esempio di API RBM Management.