public function __construct($url, $method = 'GET', $headers = array(), $postBody = null) { $this->setUrl($url); $this->setRequestMethod($method); $this->setRequestHeaders($headers); $this->setPostBody($postBody); if (!Config::has('application_name')) { $this->userAgent = self::USER_AGENT_SUFFIX; } else { $this->userAgent = Config::get('application_name') . " " . self::USER_AGENT_SUFFIX; } }
public function __construct() { if (Config::has('developer_key')) { $this->setDeveloperKey(Config::get('developer_key')); } }