From 51801e3ba4f0a26c445cd84aaf1b1eecaedf45cc Mon Sep 17 00:00:00 2001 From: Ivelox <90524467+Ivelox@users.noreply.github.com> Date: Sun, 12 Sep 2021 13:52:40 -0300 Subject: [PATCH] Update your-response-1.3.x.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit { "info": { "_postman_id": "3bb16931-811c-42ee-9510-1b55339cf5ca", "name": "ChatBot", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Clientes", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "{{token_chatbot}}", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "cpfcnpj", "value": "228.745.500-00", "description": "Busca do Cliente por CPF/CNPJ", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "Busca do Cliente por idCliente", "type": "text", "disabled": true }, { "key": "phone", "value": "18997143993", "description": "Bsuca do Cliente por Telefone", "type": "text", "disabled": true } ] }, "url": { "raw": "https://sistema.receitanet.local/api/novo/chatbot/clientes", "protocol": "https", "host": [ "sistema", "receitanet", "local" ], "path": [ "api", "novo", "chatbot", "clientes" ] }, "description": "Busta de Clientes por CPF/CNPJ, Telefone ou idCliente." }, "response": [ { "name": "Clientes", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "cpfcnpj", "value": "191.823.749-29", "description": "Busca do Cliente por CPF/CNPJ", "type": "text", "disabled": true }, { "key": "idCliente", "value": "15678", "description": "Busca do Cliente por idCliente", "type": "text", "disabled": true }, { "key": "phone", "value": "18997143993", "description": "Bsuca do Cliente por Telefone", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/clientes", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "clientes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Encoding", "value": "gzip" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:18:06 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "387" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"Contrato Localizado\",\n \"contratos\": {\n \"idCliente\": 15678,\n \"razaoSocial\": \"CLIENTE TESTE\",\n \"contratoStatusDisplay\": \"Ativo\",\n \"isPromessaPagamento\": false,\n \"contratoValorAberto\": 50,\n \"faturasEmAberto\": [\n {\n \"valor\": 50,\n \"vencimento\": \"2050-09-29\",\n \"url\": \"https://b.receitanet.net/g8ty\",\n \"vencido\": false\n }\n ],\n \"email\": \"leandro@receitanet.net\",\n \"cpfCnpj\": \"19182374929\",\n \"contratoStatus\": 1,\n \"existeChamado\": 0,\n \"isChamados\": {\n \"1\": 0,\n \"2\": 0,\n \"4\": 0,\n \"5\": 0\n },\n \"clienteLiberadoConfianca\": 0,\n \"usouLiberacaoConfianca\": 0,\n \"logins\": [\n {\n \"login\": \"leandrose\",\n \"senha\": \"123\",\n \"isPrincipal\": true\n }\n ],\n \"planos\": [],\n \"tecnologia\": 1\n }\n}" }, { "name": "Clientes Não Encontrado", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "cpfcnpj", "value": "191.823.749-29", "description": "Busca do Cliente por CPF/CNPJ", "type": "text", "disabled": true }, { "key": "idCliente", "value": "15679", "description": "Busca do Cliente por idCliente", "type": "text" }, { "key": "phone", "value": "18997143993", "description": "Bsuca do Cliente por Telefone", "type": "text", "disabled": true } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/clientes", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "clientes" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:23:54 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "54" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"Cliente não localizado.\"\n}" } ] }, { "name": "Enviar Boletos", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "Id do Cliente (idCliente)", "type": "text" }, { "key": "tipo", "value": "email", "description": "Tipo de envio por email", "type": "text" }, { "key": "tipo", "value": "sms", "description": "Tipo de envio por sms", "type": "text", "disabled": true }, { "key": "contato", "value": "18999998888", "description": "Número do contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/boletos", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "boletos" ] }, "description": "Requisitar envios do boleto por Email ou SMS." }, "response": [] }, { "name": "Verificar Acesso", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número do contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/verificar-acesso", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "verificar-acesso" ] }, "description": "Verificar se o Cliente esta ONLINE ou OFFLINE." }, "response": [ { "name": "Verificar Acesso - Cliente ou Servidor não Localizada", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número do contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/verificar-acesso", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "verificar-acesso" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "html", "header": [ { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Encoding", "value": "gzip" }, { "key": "Content-Type", "value": "text/html; charset=UTF-8" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:28:59 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Transfer-Encoding", "value": "chunked" } ], "cookie": [], "body": "Page Not Found\n\n\n\n\n\n\n\n
\n
\n
\n
\n 404
\n
\n

\n Sorry, the page you are looking for could not be found.

\n \n \n \n
\n
\n
\n
\n
\n
\n
\n\n" } ] }, { "name": "Notificação Pagamento", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/notificacao-pagamento", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "notificacao-pagamento" ] }, "description": "Notificar Pagamento Realizado." }, "response": [ { "name": "Notificação Pagamento - Excedida", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/notificacao-pagamento", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "notificacao-pagamento" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:25:53 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "234" } ], "cookie": [], "body": "{\n \"success\": 2,\n \"idCliente\": 15678,\n \"liberado\": false,\n \"razaoSocial\": \"CLIENTE TESTE\",\n \"cpfCnpj\": \"191.823.749-29\",\n \"msg\": \"O uso da notificação de pagamento foi excedida\",\n \"contato\": \"18999998888\",\n \"protocolo\": \"20191014122553\",\n \"status\": 2\n}" }, { "name": "Notificação Pagamento - Erro na Liberação", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/notificacao-pagamento", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "notificacao-pagamento" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:27:00 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "216" } ], "cookie": [], "body": "{\n \"success\": 0,\n \"idCliente\": 15678,\n \"liberado\": false,\n \"razaoSocial\": \"CLIENTE TESTE\",\n \"cpfCnpj\": \"191.823.749-29\",\n \"msg\": \"Erro na liberação do Cliente\",\n \"contato\": \"18999998888\",\n \"protocolo\": \"20191014122700\",\n \"status\": 0\n}" } ] }, { "name": "Abertura de Chamados", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "{{token_chatbot}}", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "36", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" }, { "key": "motivoos", "value": "Motivo da OS", "description": "Descrição do Motivo do Chamado", "type": "text" }, { "key": "ocorrenciatipo", "value": "2", "description": "Tipo de Chamado\n1 = Manutenção\n2 = Instalação\n5 = Financeiro", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.local/api/novo/chatbot/abertura-chamado", "protocol": "https", "host": [ "sistema", "receitanet", "local" ], "path": [ "api", "novo", "chatbot", "abertura-chamado" ] }, "description": "Criar novo Chamados." }, "response": [ { "name": "Abertura de Chamados", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" }, { "key": "motivoos", "value": "Motivo da OS", "description": "Descrição do Motivo do Chamado", "type": "text" }, { "key": "ocorrenciatipo", "value": "2", "description": "Tipo de Chamado\n1 = Manutenção\n2 = Instalação\n5 = Financeiro", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/abertura-chamado", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "abertura-chamado" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:25:34 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "175" } ], "cookie": [], "body": "{\n \"success\": true,\n \"idCliente\": 15678,\n \"idSuporte\": 662066,\n \"razaoSocial\": \"CLIENTE TESTE\",\n \"cpfCnpj\": \"191.823.749-29\",\n \"contato\": \"18999998888\",\n \"protocolo\": 20191014122534,\n \"status\": true\n}" } ] }, { "name": "Gravação de Chamados", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "{{token_chatbot}}", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idSuporte", "value": "955268", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "urlgravacao", "value": "18999998888", "description": "Número de Contato", "type": "text", "disabled": true }, { "key": "is_finalizar", "value": "1", "description": "Finalizar OS", "type": "text" }, { "key": "transcricao", "value": "[{\n\t\"tipo\": 1,\n\t\"nome\": \"Cliente\",\n\t\"mensagem\": \"Mensagem\"\n}, {\n\t\"tipo\": 2,\n\t\"nome\": \"BOT\",\n\t\"mensagem\": \"Mensagem do BOT\"\n}]", "description": "Transcrição da Conversa com o Cliente", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.local/api/novo/chatbot/chamado-gravacao", "protocol": "https", "host": [ "sistema", "receitanet", "local" ], "path": [ "api", "novo", "chatbot", "chamado-gravacao" ] } }, "response": [ { "name": "Abertura de Chamados", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "15678", "description": "ID do Cliente (idCliente)", "type": "text" }, { "key": "contato", "value": "18999998888", "description": "Número de Contato", "type": "text" }, { "key": "motivoos", "value": "Motivo da OS", "description": "Descrição do Motivo do Chamado", "type": "text" }, { "key": "ocorrenciatipo", "value": "2", "description": "Tipo de Chamado\n1 = Manutenção\n2 = Instalação\n5 = Financeiro", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/abertura-chamado", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "abertura-chamado" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:25:34 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "175" } ], "cookie": [], "body": "{\n \"success\": true,\n \"idCliente\": 15678,\n \"idSuporte\": 662066,\n \"razaoSocial\": \"CLIENTE TESTE\",\n \"cpfCnpj\": \"191.823.749-29\",\n \"contato\": \"18999998888\",\n \"protocolo\": 20191014122534,\n \"status\": true\n}" } ] }, { "name": "Chamados", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "{{token_chatbot}}", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" }, { "key": "idCliente", "value": "36", "description": "ID do Cliente (idCliente)", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.local/api/novo/chatbot/chamados", "protocol": "https", "host": [ "sistema", "receitanet", "local" ], "path": [ "api", "novo", "chatbot", "chamados" ] } }, "response": [] }, { "name": "Planos de Cobranças", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "d93e1659-d843-477a-80b6-f66df61f6f80", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/planos-cobrancas", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "planos-cobrancas" ] }, "description": "Lista de Cobranças Disponíveis." }, "response": [ { "name": "Planos de Cobranças", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/planos-cobrancas", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "planos-cobrancas" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:25:17 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "93" } ], "cookie": [], "body": "[\n {\n \"idPlano\": 1,\n \"descricao\": \"1MB\",\n \"valor\": 59.99\n },\n {\n \"idPlano\": 2,\n \"descricao\": \"2MB\",\n \"valor\": 69.99\n }\n]" } ] }, { "name": "Débitos", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/debitos?page=1", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "debitos" ], "query": [ { "key": "page", "value": "1", "description": "Páginação" } ] }, "description": "Lista de Boletos vencidos." }, "response": [ { "name": "Débitos", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "token", "value": "72bb3421-7ad6-4da0-82ea-fd0317f1e31a", "description": "Token", "type": "text" }, { "key": "app", "value": "chatbot", "description": "Sempre \"chatbot\"", "type": "text" } ] }, "url": { "raw": "https://sistema.receitanet.net/api/novo/chatbot/debitos?page=1", "protocol": "https", "host": [ "sistema", "receitanet", "net" ], "path": [ "api", "novo", "chatbot", "debitos" ], "query": [ { "key": "page", "value": "1", "description": "Páginação" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Date", "value": "Mon, 14 Oct 2019 15:25:06 GMT" }, { "key": "Server", "value": "nginx/1.17.2" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/7.1.28" }, { "key": "Content-Length", "value": "209" } ], "cookie": [], "body": "[\n {\n \"id\": 8984,\n \"nome\": \"ERIVALDO DE BRITO\",\n \"login\": \"erivaldo\",\n \"telefone1\": \"(96)9294-397\",\n \"telefone2\": \"\",\n \"telefone3\": \"\",\n \"boletos\": [\n {\n \"vencimento\": \"2019-09-10\",\n \"valor\": 50,\n \"link\": \"https://b.receitanet.net/g8Ar\"\n }\n ]\n }\n]" } ] } ] } --- .../your-response/your-response-1/your-response-1.3.x.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/twiml/message/your-response/your-response-1/your-response-1.3.x.js b/twiml/message/your-response/your-response-1/your-response-1.3.x.js index ca38b123b4..8b13789179 100644 --- a/twiml/message/your-response/your-response-1/your-response-1.3.x.js +++ b/twiml/message/your-response/your-response-1/your-response-1.3.x.js @@ -1,9 +1 @@ -const MessagingResponse = require('twilio').twiml.MessagingResponse; - -const response = new MessagingResponse(); -const message = response.message(); -message.body('Hello World!'); -response.redirect('https://demo.twilio.com/welcome/sms/'); - -console.log(response.toString());