def connection
      return @connection if instance_variable_defined?(:@connection)

      check_api_keys
      @connection = Faraday.new(API_HOST) do |conn|
        # Use the Faraday OAuth middleware for OAuth 1.0 requests
        conn.request :oauth, @configuration.auth_keys

        # Using default http library, had to specify to get working
        conn.adapter :net_http
      end
    end
def connection
      return @connection if instance_variable_defined?(:@connection)

      check_api_keys
      @connection = Faraday.new(API_HOST) do |conn|
        # Use the Faraday OAuth middleware for OAuth 1.0 requests
        conn.request :oauth, @configuration.auth_keys

        # Using default http library, had to specify to get working
        conn.adapter :net_http
      end
    end
API connection