/** * Getter/Setter for static::$apiKey. * * @param string $method */ public static function apiKey($key = null) { if (is_null($key)) { return static::$apiKey; } static::$apiKey = $key; }
public static function setApiKey($apiKey) { static::$apiKey = $apiKey; }
/** * Set your API key * * @param string $key require Set your main API Key or Monitor-Specific API Keys (only getMonitors) * @param bool $noJsonCallback optional Define if the function wrapper to be removed * */ public static function configure($key, $noJsonCallback = 1) { static::$apiKey = $key; static::$noJsonCallback = $noJsonCallback; }
/** * @Given I'm logged in as :arg1 with password :arg2 */ public function iAmLoggedInAs($arg1, $arg2) { static::$apiKey = $this->authenticate($arg1, $arg2); }