Back to Documentation Overview
apikeyAdd
public static apikeyAdd(string username, string password, string apikey)
Add an API Key to your account. We will generate a new key for you and return it.
- Section:
- Security Related
- Parameters:
username Your MailChimp user name password Your MailChimp password apikey Any valid API Key - Returns:
- string - a new API Key that can be immediately used.
- <?php
- /**
- This Example shows how add an API Key to your account and then retrieve a list
- of all API Keys on your account using XML-RPC.
- Note that we are using the PEAR XML-RPC2 client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.inc.php';
- try {
- $result = $client->apikeyAdd($username,$password, $apikey);
- $result = $client->apikeys($username,$password, $apikey);
- foreach($result as $key){
- }
- } catch (XML_RPC2_FaultException $e){
- }
Examples (1)
download example code[1] xml-rpc_apikeyAdd.php
|
Add New Note
User Contributed Notes for
apikeyAdd |
|---|
| No notes, yet... Will you be the first?? |