You are here

function MCAPI::apikeyAdd in Mailchimp 5.2

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

Add an API Key to your account. We will generate a new key for you and return it.

Related

@example xml-rpc_apikeyAdd.php

Parameters

string $username Your MailChimp user name:

string $password Your MailChimp password:

Return value

string a new API Key that can be immediately used.

File

./MCAPI.class.php, line 970

Class

MCAPI

Code

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