code: def connection
        options = {
          :headers => {
            :accept => 'application/json',
            :user_agent => user_agent
          },
          :proxy => proxy,
          :ssl => {
            :verify => false
          },
          :url => endpoint
        }
  
        Faraday.new(options) do |connection|
          connection.response :raise_server_error
          connection.response :raise_client_error
          connection.response :mashify
          connection.response :json
          connection.request :oauth, credentials
          connection.request :multipart
          connection.request :url_encoded
          connection.adapter adapter
        end
      end
docs: Returns a Faraday::Connection object