Module: Portal1C::Connection

Included in:
Request
Defined in:
lib/portal_1c/connection.rb

Constant Summary collapse

BASE_URL =
'https://partner-api.1c.ru/'

Instance Method Summary collapse

Instance Method Details

#connection(client) ⇒ Object



7
8
9
10
11
12
# File 'lib/portal_1c/connection.rb', line 7

def connection(client)
  Faraday.new(options) do |faraday|
    faraday.request :authorization, :basic, client., client.password
    faraday.adapter Faraday.default_adapter
  end
end