diff --git a/lib/client.rb b/lib/client.rb index 0ce2104..5d8e908 100644 --- a/lib/client.rb +++ b/lib/client.rb @@ -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 @@ -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) diff --git a/lib/totalvoice/version.rb b/lib/totalvoice/version.rb index a57489f..6039464 100644 --- a/lib/totalvoice/version.rb +++ b/lib/totalvoice/version.rb @@ -1,3 +1,3 @@ module TotalVoice - VERSION = '1.9.0' + VERSION = '1.10.0' end