Bom dia pessoal,
Alguém sabe se possui alguma API da blip que retorne os tickets já abertos por um cliente especifico?
Tentei usar a API https://docs.blip.ai/#get-all-messages-from-a-customer-by-a-ticket., mas ela sempre retorna o mesmo json.
Atenciosamente,
Olá
POST https://{{contract_id}}.http.msging.net/commands HTTP/1.1
Content-Type: application/json
Authorization: Key {YOUR_TOKEN}
{
"id": "{{$guid}}",
"to": "[email protected]",
"method": "get",
"/tickets/history?$filter=storageDate%20ge%20datetimeoffset'datainiT03%3A00%3A00.000Z'%20and%20storageDate%20le%20datetimeoffset'datafimT02%3A59%3A00.000Z'%20and%20status%20ne%20'Open'%20and%20status%20ne%20'Waiting'%20and%20(substringof('iddocontato'%2CCustomerIdentity))&$skip=20&$take=20
}
só alterar a data inicial e data final conforme :
"/tickets/history?$filter=storageDate%20ge%20datetimeoffset'2023-07-01T03%3A00%3A00.000Z'%20and%20storageDate%20le%20datetimeoffset'2023-09-27T02%3A59%3A00.000Z'%20and%20status%20ne%20'Open'%20and%20status%20ne%20'Waiting'%20and%20(substringof('0714c367-6834-451f-849e-0d2ba2bc9195%40tunnel.msging.net'%2CCustomerIdentity))&$skip=20&$take=20
- Bom dia
@Rafael_Figueiredo , tudo bem?
Obrigada!! Mas esse só retorna os tickets, eu precisava do histórico de mensagem. :(
Exempo:
Pesquisei o ticket e a API retorna o fluxo conversacional entre o cliente e o atendente.
Olá
getFromOwnerIfTunnel
exemplo :
"uri": "/tickets/425809af-d89c-46c9-b289-018921f490f2/messages?getFromOwnerIfTunnel=true"
Comente
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.