def url_generator(path, opts = {}, require_key = false)
      uri      = URI.parse base_api_url
      headers  = { read_timeout: read_timeout }
      uri.path = '/v2/' + path
      query    = options_parser opts
      endpoint = path.split('/')[0]
      case authentication_method
      when :header
        headers.merge! 'Authorization' => "api_key #{api_key(endpoint)}"
        query += "&api_key=#{api_key(endpoint)}" if require_key
      when :parameter
        query += "&api_key=#{api_key(endpoint)}"
      end
      uri.query = query
      @sqoot_query_uri = uri
      [uri, headers]
    end
def url_generator(path, opts = {}, require_key = false)
      uri      = URI.parse base_api_url
      headers  = { read_timeout: read_timeout }
      uri.path = '/v2/' + path
      query    = options_parser opts
      endpoint = path.split('/')[0]
      case authentication_method
      when :header
        headers.merge! 'Authorization' => "api_key #{api_key(endpoint)}"
        query += "&api_key=#{api_key(endpoint)}" if require_key
      when :parameter
        query += "&api_key=#{api_key(endpoint)}"
      end
      uri.query = query
      @sqoot_query_uri = uri
      [uri, headers]
    end
Generate valid Sqoot API V2 url and provide two different way of
 authentication: :header, :parameter