Skip to content

Commit

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

Alterado novo endereço e adicionado User-Agent
  • Loading branch information
vinifinger authored Sep 2, 2021
2 parents c17e720 + a1410d0 commit 2c74ed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
require_relative 'api/ura'
require_relative 'api/webphone'
require_relative 'api/verificacao'
require_relative 'totalvoice/version'


module TotalVoice
# Inicializa o HTTP client
class API
include HTTParty
ENDPOINT = 'https://api2.totalvoice.com.br'
ENDPOINT = 'https://voice-api.zenvia.com'
# * *Args* :
# - +Access-Token+ -> Access-Token TotalVoice
# - +host+ -> Base URL para API
Expand All @@ -35,7 +36,8 @@ def initialize(access_token, host = nil, options = {})
headers: {
'Access-Token' => @access_token,
'Content-Type' => 'application/json',
'Accept' => 'application/json'
'Accept' => 'application/json',
'User-Agent' => 'lib-ruby/' + VERSION
}
}.merge(options)

Expand Down
2 changes: 1 addition & 1 deletion lib/totalvoice/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TotalVoice
VERSION = '1.9.0'
VERSION = '1.10.0'
end

0 comments on commit 2c74ed1

Please sign in to comment.