public function getSpam($ipblock, $spamstate)
    {
		if (!$ipblock)
			throw new BadMethodCallException('Parameter $ipblock is missing.');
		if (!$spamstate)
			throw new BadMethodCallException('Parameter $spamstate is missing.');
		switch ($spamstate) {
			case "blockedForSpam":
			case "unblocked":
			case "unblocking":
				break;
			default:
				throw new BadMethodCallException('Parameter $spamstate is invalid.');
		}
        try {
            $r = $this->get('ip/' . urlencode($ipblock) . '/spam/?state=' . $spamstate)->send();
        } catch (\Exception $e) {
            throw new IpException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }
public function getSpam($ipblock, $spamstate)
    {
		if (!$ipblock)
			throw new BadMethodCallException('Parameter $ipblock is missing.');
		if (!$spamstate)
			throw new BadMethodCallException('Parameter $spamstate is missing.');
		switch ($spamstate) {
			case "blockedForSpam":
			case "unblocked":
			case "unblocking":
				break;
			default:
				throw new BadMethodCallException('Parameter $spamstate is invalid.');
		}
        try {
            $r = $this->get('ip/' . urlencode($ipblock) . '/spam/?state=' . $spamstate)->send();
        } catch (\Exception $e) {
            throw new IpException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }
public function getSpam ( $ ipblock , $ spamstate ) { if ( ! $ ipblock ) throw new BadMethodCallException ( 'Parameter $ipblock is missing.' ) ; if ( ! $ spamstate ) throw new BadMethodCallException ( 'Parameter $spamstate is missing.' ) ; switch ( $ spamstate ) { case "blockedForSpam" : case "unblocked" : case "unblocking" : break ; default : throw new BadMethodCallException ( 'Parameter $spamstate is invalid.' ) ; } try { $ r = $ this -> get ( 'ip/' . urlencode ( $ ipblock ) . '/spam/?state=' . $ spamstate ) -> send ( ) ; } catch ( \ Exception $ e ) { throw new IpException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } return $ r -> getBody ( true ) ; }
Get Spam  - returns list of IPs on spam control in block

@param string $ipBlock
@param string $spamstate { "blockedForSpam", "unblocked", "unblocking"}
@return string Json
@throws Exception\IpException
@throws Exception\IpNotFoundException
Get Spam - returns list of IPs on spam control in block