Method: Phaxio::Client.conn
- Defined in:
- lib/phaxio/client.rb
.conn ⇒ Faraday::Connection
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns A new Faraday connection to ‘Phaxio::Config.api_endpoint`.
42 43 44 45 46 47 48 |
# File 'lib/phaxio/client.rb', line 42 def conn Faraday.new(Phaxio.api_endpoint) do |conn| conn.request :multipart conn.request :url_encoded conn.adapter :net_http end end |