def request(service, method = :get, payload = {})
      res = Infosimples::Data::HTTP.request(
        url: BASE_URL.gsub(':service', service),
        http_timeout: timeout,
        method: method,
        payload: payload.merge(
          token:   token,
          timeout: timeout,
          max_age: max_age,
          header:  1
        )
      )
      JSON.parse(res)
    end
def request(service, method = :get, payload = {})
      res = Infosimples::Data::HTTP.request(
        url: BASE_URL.gsub(':service', service),
        http_timeout: timeout,
        method: method,
        payload: payload.merge(
          token:   token,
          timeout: timeout,
          max_age: max_age,
          header:  1
        )
      )
      JSON.parse(res)
    end
Perform an HTTP request to the Infosimples Data API.

 @param [String] service  API method name.
 @param [Symbol] method   HTTP method (:get, :post, :multipart).
 @param [Hash]   payload  Data to be sent through the HTTP request.

 @return [Hash] Parsed JSON from the API response.