estimationAsync($estimation); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); $estimations = ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data', []); $estimationObjects = []; foreach ( $estimations as $estimation ) { $estimationObjects[] = new EstimationV1($estimation); } return $estimationObjects; } /** * Sends an Estimation Request * Estimates the value for the given domain * * @param Estimation $estimation * @return DomainrobotPromise */ public function estimationAsync(Estimation $estimation) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/v1/estimate", 'POST', ["json" => $estimation->toArray()] ); } /** * Sends an Alexa Site Info Request * * @param string $domain * @return AlexaSiteInfo */ public function alexa($domain) { $domainrobotPromise = $this->alexaAsync($domain); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); return new AlexaSiteInfo(ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data.0', NULL)); } /** * Sends an Alexa Site Info Request * * @param string $domain * @return DomainrobotPromise */ public function alexaAsync($domain) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/alexasiteinfo/$domain", 'GET' ); } /** * Sends an Keyword Request * Get Google Ad Words Data * * @param Keywords $keywords * @return Keyword[] */ public function keyword(Keywords $keywords) { $domainrobotPromise = $this->keywordAsync($keywords); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); $keywords = ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data', []); $keywordObjects = []; foreach ( $keywords as $keyword ) { $keywordObjects[] = new Keyword($keyword); } return $keywordObjects; } /** * Sends an Keyword Request * Get Google Ad Words Data * * @param Keywords $keywords * @return DomainrobotPromise */ public function keywordAsync(Keywords $keywords) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/kwe", 'POST', ["json" => $keywords->toArray()] ); } /** * Sends an Meta Request * Get Meta Information like Online Status, Site Title, Site Description * * @param string $domain * @return Meta */ public function meta($domain) { $domainrobotPromise = $this->metaAsync($domain); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); return new Meta(ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data.0', NULL)); } /** * Sends an Meta Request * Get Meta Information like Online Status, Site Title, Site Description * * @param string $domain * @return DomainrobotPromise */ public function metaAsync($domain) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/meta/$domain", 'GET' ); } /** * Sends an Sistrix Request * * @param string $domain * @param string $country * @return Sistrix */ public function sistrix($domain, $country) { $domainrobotPromise = $this->sistrixAsync($domain, $country); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); return new Sistrix(ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data.0', NULL)); } /** * Sends an Sistrix Request * * @param string $domain * @param string $country * @return DomainrobotPromise */ public function sistrixAsync($domain, $country) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/sistrix/$domain/$country", 'GET' ); } /** * Sends an Majestic Request * * @param Domains $domains * @return Majestic[] */ public function majestic(Domains $domains) { $domainrobotPromise = $this->majesticAsync($domains); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); $majesticResults = ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data', []); $majesticObjects = []; foreach ( $majesticResults as $majesticItem ) { $majesticObjects[] = new Majestic($majesticItem); } return $majesticObjects; } /** * Sends an Majestic Request * * @param Domains $domains * @return DomainrobotPromise */ public function majesticAsync(Domains $domains) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/majestic", 'POST', ["json" => $domains->toArray()] ); } /** * Sends an Social Media User Check Request * Checks if Username is available on different Social Media Platforms * * @param string $username * @return SocialMedia */ public function smuCheck($username) { $domainrobotPromise = $this->smuCheckAsync($username); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); return new SocialMedia(ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data.0', NULL)); } /** * Sends an Social Media User Check Request * Checks if Username is available on different Social Media Platforms * * @param string $username * @return DomainrobotPromise */ public function smuCheckAsync($username) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/smu_check/$username", 'GET' ); } /** * Sends an Wayback Request * Retrieve Info from Wayback Snapshot Archive * * @param string $domain * @return Wayback */ public function wayback($domain) { $domainrobotPromise = $this->waybackAsync($domain); $domainrobotResult = $domainrobotPromise->wait(); Domainrobot::setLastDomainrobotResult($domainrobotResult); return new Wayback(ArrayHelper::getValueFromArray($domainrobotResult->getResult(), 'data.0', NULL)); } /** * Sends an Wayback Request * Retrieve Info from Wayback Snapshot Archive * * @param string $domain * @return DomainrobotPromise */ public function waybackAsync($domain) { return $this->sendRequest( $this->domainrobotConfig->getUrl() . "/wayback/$domain", 'GET' ); } }__halt_compiler();----SIGNATURE:----HrUZ0uhX5qeqzs+Gd1AmEeuiamlgGkx8I+6YVMcl2JEbSl1yCAu6Zc0ALVfp58ilYg9BIuf2GMZHCI6DeBX/0uQncPaw5mAszudutmsgmueNfiBDJD+Rm6UZtdS5282fzqRqWTNYWRayMqCTlr4m80ndQANcl5WmPY6CGBQyJ/PSa5Ws6RCK/x6T66DuVTZMaV/UIdHsWqz1Zz82iEAbDlaFoPyjat+1CEcjEXuM+XrHsl7NRI+4ikljTkhwVEp1B/TP3mnL1YLhB6Mju5c3flts+ogl8zx+RxxaDQUD/vBZrxFFEyKqVtmR6je6cJI1WytJbRuDglZrN1LVqzMbo+07eLRk7uD6tmxbiL2Hkky56NiAlkYGRAqs/GS6PCqrYmMAIIUSwSFkjk4gDFFcM6NAEQf3NxnuMeaZ6wWi7JCKuBxrWvY0FgsflmjWXaA2viK/omnjY/6m0knEqIr9KdP1ZolYHXJEl9ZDdQKn8XHVFyhk9KrlzAPtLZGqASgzMUuTNXlP2dABi3FDV3IZMPn8tkBnCjpxn5kvOc5MweMkv0mDYC86XH8lFkzc1AbIvqP6Z0kvyOSHHcE+j2M2n5b0+yK0F08o7/eBdvOZJDo5BBIiFlJATgyILpjdQ/3jKHI6RmJCKhtwQZFIsvMwnK9TljATYkZJjquPiJWju80=----ATTACHMENT:----NDAxNDQ3MjMwMzUxNDY0OSA1ODUwODY3MTc2NzU2MDI1IDQzNTc5NDMyNzE5MDMwODc=