Class: UserManagementApi::ConnectionManager
- Inherits:
-
Object
- Object
- UserManagementApi::ConnectionManager
- Defined in:
- lib/user_management_api/connection_manager.rb
Class Method Summary collapse
Class Method Details
.get_connection(uri, access_token) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/user_management_api/connection_manager.rb', line 8 def get_connection(uri, access_token) Faraday.new(uri, {ssl: {verify: false}}) do |faraday| faraday.headers = {'Content-Type' => 'application/json'} faraday.token_auth(access_token) faraday.adapter(Faraday.default_adapter) end end |