function MCAPI::apikeyExpire in Mailchimp 6.2
Same name and namespace in other branches
- 5.2 MCAPI.class.php \MCAPI::apikeyExpire()
- 5 MCAPI.class.php \MCAPI::apikeyExpire()
- 6 MCAPI.class.php \MCAPI::apikeyExpire()
- 7 MCAPI.class.php \MCAPI::apikeyExpire()
Expire a Specific API Key. Note that if you expire all of your keys, just visit <a href="http://admin.mailchimp.com/account/api" target="_blank">your API dashboard</a> to create a new one. If you are trying to shut off access to your account for an old developer, change your MailChimp password, then expire all of the keys they had access to. Note that this takes effect immediately, so make sure you replace the keys in any working application before expiring them! Consider yourself warned...
Related
@example mcapi_apikeyExpire.php @example xml-rpc_apikeyExpire.php
Parameters
string $username Your MailChimp user name:
string $password Your MailChimp password:
Return value
boolean true if it worked, otherwise an error is thrown.
File
- ./
MCAPI.class.php, line 1909
Class
Code
function apikeyExpire($username, $password) {
$params = array();
$params["username"] = $username;
$params["password"] = $password;
return $this
->callServer("apikeyExpire", $params);
}