From 4d51842841cdd68cbee2a32acc7b26d1609c3d78 Mon Sep 17 00:00:00 2001 From: Vinicius Finger Date: Wed, 4 Aug 2021 16:41:42 -0300 Subject: [PATCH 1/4] =?UTF-8?q?Alterado=20novo=20endere=C3=A7o=20e=20adici?= =?UTF-8?q?onado=20User-Agent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/client.js | 2 +- lib/totalvoice.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index c33922a..e4f86c3 100644 --- a/lib/client.js +++ b/lib/client.js @@ -6,7 +6,7 @@ const defaultReject = require('./interceptor').defaultReject * Módulo Client */ module.exports = function Client(baseURL, options, resolve = defaultResolve, reject = defaultReject) { - const URL = baseURL || "https://api2.totalvoice.com.br"; + const URL = baseURL || "https://voice-api.zenvia.com"; let params = Object.assign({ baseURL: URL, timeout: 5000 diff --git a/lib/totalvoice.js b/lib/totalvoice.js index 4d0fdd1..9d66d29 100644 --- a/lib/totalvoice.js +++ b/lib/totalvoice.js @@ -13,6 +13,7 @@ const DID = require('./api/did'); const Status = require('./api/status'); const Fila = require('./api/fila'); const Verificacao = require('./api/verificacao'); +const pack = require('../package.json'); /** * Módulo TotalVoice * @param {string} accessToken @@ -31,7 +32,8 @@ function Totalvoice(accessToken, baseUrl, options) { opts['headers'] = { 'Access-Token': token, - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'User-Agent': `lib-node/${pack.version}` }; this.httpClient = opts.httpClient || new Client(baseUrl, opts); From 4c3aa13f794c5c5d2136cea7fa384e73386cea2b Mon Sep 17 00:00:00 2001 From: Vinicius Finger Date: Thu, 5 Aug 2021 17:55:32 -0300 Subject: [PATCH 2/4] Atualizada versao no package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8e9a15..86f6b43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "totalvoice-node", - "version": "1.10.0", + "version": "1.11.1", "description": "API de comunicação com os serviços da TotalVoice (http://totalvoice.com.br)", "main": "index.js", "scripts": { From bb4f823756c8c4724dc68d45c7515d0d8955f732 Mon Sep 17 00:00:00 2001 From: Vinicius Finger Date: Tue, 17 Aug 2021 16:30:32 -0300 Subject: [PATCH 3/4] Atualizada versao do package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 86f6b43..79c3b77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "totalvoice-node", - "version": "1.11.1", + "version": "1.12.0", "description": "API de comunicação com os serviços da TotalVoice (http://totalvoice.com.br)", "main": "index.js", "scripts": { From 9d6741d204903472e8da53a1f01ec9bdb307d9e6 Mon Sep 17 00:00:00 2001 From: Vinicius Finger Date: Mon, 30 Aug 2021 16:58:24 -0300 Subject: [PATCH 4/4] Atualizada versao do package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 79c3b77..2da457d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "totalvoice-node", - "version": "1.12.0", + "version": "1.11.0", "description": "API de comunicação com os serviços da TotalVoice (http://totalvoice.com.br)", "main": "index.js", "scripts": {