public function keyCheck($apiKey, $url)
    {
        $check = $this->query(
            array(
                'key' => $apiKey,
                'blog' => $url
            ),
            self::PATH_KEY,
            self::RETURN_VALID
        );

        if ($check === true) {
            $this->apiKey = $apiKey;
            $this->url = $url;
            $this->apiUrl = sprintf('http://%s.%s/%s/', $this->apiKey, self::AKISMET_URL, self::AKISMET_API_VERSION);
            return true;
        } else {
            return false;
        }
    }
public function keyCheck($apiKey, $url)
    {
        $check = $this->query(
            array(
                'key' => $apiKey,
                'blog' => $url
            ),
            self::PATH_KEY,
            self::RETURN_VALID
        );

        if ($check === true) {
            $this->apiKey = $apiKey;
            $this->url = $url;
            $this->apiUrl = sprintf('http://%s.%s/%s/', $this->apiKey, self::AKISMET_URL, self::AKISMET_API_VERSION);
            return true;
        } else {
            return false;
        }
    }
public function keyCheck ( $ apiKey , $ url ) { $ check = $ this -> query ( array ( 'key' => $ apiKey , 'blog' => $ url ) , self :: PATH_KEY , self :: RETURN_VALID ) ; if ( $ check === true ) { $ this -> apiKey = $ apiKey ; $ this -> url = $ url ; $ this -> apiUrl = sprintf ( 'http://%s.%s/%s/' , $ this -> apiKey , self :: AKISMET_URL , self :: AKISMET_API_VERSION ) ; return true ; } else { return false ; } }
Checks if Akismet API key is valid

@param string $apiKey Akismet API key
@param string $url    The front page or home URL of the instance making the request

@return boolean
Checks if Akismet API key is valid