You are here

function MCAPI::apikeys in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::apikeys()
  2. 5 MCAPI.class.php \MCAPI::apikeys()
  3. 6.2 MCAPI.class.php \MCAPI::apikeys()
  4. 6 MCAPI.class.php \MCAPI::apikeys()

Retrieve a list of all MailChimp API Keys for this User

Related

@example xml-rpc_apikeyAdd.php @example mcapi_apikeyAdd.php

@returnf string apikey The api key that can be used @returnf string created_at The date the key was created @returnf string expired_at The date the key was expired

Parameters

string $username Your MailChimp user name:

string $password Your MailChimp password:

boolean $expired optional - whether or not to include expired keys, defaults to false:

Return value

array an array of API keys including:

File

./MCAPI.class.php, line 1502

Class

MCAPI

Code

function apikeys($username, $password, $expired = false) {
  $params = array();
  $params["username"] = $username;
  $params["password"] = $password;
  $params["expired"] = $expired;
  return $this
    ->callServer("apikeys", $params);
}