/** * Execute API command to fetch available website genders * * @param void * @access public * @return Response */ public function getWebsiteGenders() { $command = new Command(self::CMD_GET_GENDERS); return $this->api->execute($command); }
/** * Send unique click event * (you are responsible of maintaining info if click is unique or not) * * Mandatory params: * - aff_id * - aff_pg * - _domain * Domain name you're targeting, eg: www.domain.com - domain name only, don't include protocol * There's no mistake - _domain is prefixed with underscore. * * Optional params: * - aff_cp * - aff_tr * - aff_kw * - aff_src * - aff_adg * - HTTP_REFERER * - ua (User-Agent string) * - ip (Client IP Address) * * @param array $data * @access public * @return Response */ public function sendClickUnique(array $data) { $data['_unique'] = 1; $command = new Command(self::CMD_SEND_CLICK, $data); return $this->api->execute($command); }