lib/fintecture/authentication.rb in fintecture-0.1.6 vs lib/fintecture/authentication.rb in fintecture-0.1.7
- old
+ new
@@ -14,14 +14,14 @@
}.map{|key, value| "#{key}=#{value}"}.join('&')}"
::Faraday.get "#{token_authorize_endpoint}#{query_string}"
end
- def access_token(auth_code = nil)
+ def get_access_token(auth_code = nil)
body = access_token_data auth_code
- Fintecture::Faraday::Authentication::Connection.post url: access_toke_url, req_body: body
+ Fintecture::Faraday::Authentication::Connection.post url: access_token_url, req_body: body
end
def refresh_token(refresh_token)
body = refresh_token_data refresh_token
@@ -36,10 +36,10 @@
def token_authorize_endpoint
"#{base_url}#{Fintecture::Api::Endpoints::Authentication::OAUTH_TOKEN_AUTHORIZE}"
end
- def access_toke_url
+ def access_token_url
"#{base_url}#{Fintecture::Api::Endpoints::Authentication::OAUTH_ACCESS_TOKEN}"
end
def refresh_token_url
"#{base_url}#{Fintecture::Api::Endpoints::Authentication::OAUTH_REFRESH_TOKEN}"
\ No newline at end of file