def agent
      @agent ||= Sawyer::Agent.new(api_endpoint, sawyer_options) do |http|
        http.headers['content-type'] = 'application/json'
        if basic_authenticated?
          http.basic_auth(@login, @password)
        end
      end
    end
def agent
      @agent ||= Sawyer::Agent.new(api_endpoint, sawyer_options) do |http|
        http.headers['content-type'] = 'application/json'
        if basic_authenticated?
          http.basic_auth(@login, @password)
        end
      end
    end
HTTP client

 @return [Sawyer::Agent]