lib/hello_sign/client.rb in hellosign-ruby-sdk-3.6 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.6.1

- old
+ new

@@ -49,11 +49,11 @@ include Api::UnclaimedDraft include Api::Embedded include Api::OAuth include Api::ApiApp - attr_accessor :end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :logging, :log_level, :proxy_uri, :proxy_user, :proxy_pass + attr_accessor :end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :logging, :log_level, :proxy_uri, :proxy_user, :proxy_pass, :timeout ERRORS = { 400 => Error::BadRequest, 401 => Error::Unauthorized, 402 => Error::PaidApiPlanRequired, @@ -152,9 +152,10 @@ connection = Faraday.new(:url => url, :headers => { user_agent: user_agent }) do |faraday| faraday.request :multipart faraday.request :url_encoded faraday.response :logger, logger if @logging faraday.adapter :net_http + faraday.options[:timeout] = timeout if timeout end if options[:no_auth] elsif auth_token connection.authorization :Bearer, auth_token elsif api_key