Skip to content

Commit 2c74ed1

Browse files
authored
Merge pull request #15 from totalvoice/VIS-2016/atualizar-novo-endereco-lib-ruby
Alterado novo endereço e adicionado User-Agent
2 parents c17e720 + a1410d0 commit 2c74ed1

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/client.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
require_relative 'api/ura'
1818
require_relative 'api/webphone'
1919
require_relative 'api/verificacao'
20+
require_relative 'totalvoice/version'
2021

2122

2223
module TotalVoice
2324
# Inicializa o HTTP client
2425
class API
2526
include HTTParty
26-
ENDPOINT = 'https://api2.totalvoice.com.br'
27+
ENDPOINT = 'https://voice-api.zenvia.com'
2728
# * *Args* :
2829
# - +Access-Token+ -> Access-Token TotalVoice
2930
# - +host+ -> Base URL para API
@@ -35,7 +36,8 @@ def initialize(access_token, host = nil, options = {})
3536
headers: {
3637
'Access-Token' => @access_token,
3738
'Content-Type' => 'application/json',
38-
'Accept' => 'application/json'
39+
'Accept' => 'application/json',
40+
'User-Agent' => 'lib-ruby/' + VERSION
3941
}
4042
}.merge(options)
4143

lib/totalvoice/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module TotalVoice
2-
VERSION = '1.9.0'
2+
VERSION = '1.10.0'
33
end

0 commit comments

Comments
 (0)