CloudFlare\Api::setAuthKey PHP Method

setAuthKey() public method

Setter to allow the setting of the Authentication Key
public setAuthKey ( string $token )
$token string Authentication key, this can be retrieve from the 'My Account' section of the Cloudflare account
    public function setAuthKey($token)
    {
        $this->auth_key = $token;
    }

Usage Example

Example #1
0
 public function testSetAuthKey()
 {
     $api = new Api();
     $api->setAuthKey('Auth Key');
     $this->assertEquals('Auth Key', $api->auth_key);
 }