Class User
CloudFlare API wrapper
User The currently logged in/authenticated User
- Cloudflare\Api
-
Cloudflare\User
Namespace: Cloudflare
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/User.php
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/User.php
public
|
|
public
|
|
public
|
#
change_email( string $email, string $email_confirm, string $password )
Change your email address. Note: You must provide your current password. |
public
|
#
change_password( string $old_password, string $new_password, string $new_password_confirm )
Change your password |
public
|
#
change_username( string $username, string $password )
Change your username. Note: You must provide your current password. |
public
|
#
initialize_two_factor_authentication( integer $country_code, string $mobile_phone_number, string $current_password )
Begin setting up CloudFlare two-factor authentication with a given telephone number |
public
|
#
finalize_two_factor_authentication( integer $auth_token )
Finish setting up CloudFlare two-factor authentication with a given telephone number |
public
|
#
disable_two_factor_authentication( integer $auth_token )
Disable two-factor authentication for your CloudFlare user account |
__construct(),
delete(),
get(),
patch(),
permissions(),
post(),
put(),
request(),
setAuthKey(),
setCurlOption(),
setEmail()
|
protected
array
|
$permission_level
Default permissions level |
#
['read' => null, 'edit' => null]
|
$auth_key,
$curl_options,
$email
|