config = $config ?: new Configuration(); } /** * Add tracking domains * Add a tracking domain to your account. */ public function addTrackingDomain($body = []) { return $this->config->post('/urls/add-tracking-domain', $body); } /** * Check cname settings * Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call. */ public function checkTrackingDomain($body = []) { return $this->config->post('/urls/check-tracking-domain', $body); } /** * List most clicked urls * Get the 100 most clicked URLs. */ public function list($body = []) { return $this->config->post('/urls/list', $body); } /** * Search most clicked urls * Return the 100 most clicked URLs that match the search query given. */ public function search($body = []) { return $this->config->post('/urls/search', $body); } /** * Get url history * Return the recent history (hourly stats for the last 30 days) for a URL */ public function timeSeries($body = []) { return $this->config->post('/urls/time-series', $body); } /** * List tracking domains * Get the list of tracking domains set up for this account. */ public function trackingDomains($body = []) { return $this->config->post('/urls/tracking-domains', $body); } }