Skip to content

Commit

Permalink
Merge pull request #21 from totalvoice/VIS-1844/atualizar-novo-endere…
Browse files Browse the repository at this point in the history
…co-lib-node

Vis 1844/atualizar novo endereco lib node
  • Loading branch information
vinifinger authored Aug 30, 2021
2 parents cb1ceae + 9d6741d commit 1191d34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion lib/totalvoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "totalvoice-node",
"version": "1.10.0",
"version": "1.11.0",
"description": "API de comunicação com os serviços da TotalVoice (http://totalvoice.com.br)",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1191d34

Please sign in to comment.