def request(path, params = {})
      if oauth_configured?
        oauth_request(path, params)
      else
        http_request(path, params)
      end
    end
def request(path, params = {})
      if oauth_configured?
        oauth_request(path, params)
      else
        http_request(path, params)
      end
    end
Perform an API request using API key or OAuth token

 path   - Request path
 params - Parameters hash

 Will make a request with the configured API key (application
 authentication) or OAuth token (user authentication) if available.