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);
    }