Back to Documentation Overview
login
public static login(string username, string password)
Log into the MailChimp API - see closeOneOhSecurityHole() !!!!
- Section:
- Security Related
- Parameters:
username Your MailChimp user name password Your MailChimp password - Returns:
- string - a unique id for your user account that will be passed into the rest of the API calls
- <?php
- /**
- This Example shows how to Login using the XML-RPC service and do some
- basic error checking.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- include('inc/config.inc.php'); //contains username & password
- try {
- $uuid = $client->login($username,$password);
- } catch (XML_RPC2_FaultException $e){
- }
- ?>
Examples (1)
download example code[1] xml-rpc_login.php
|
Add New Note
User Contributed Notes for
login |
|---|
| No notes, yet... Will you be the first?? |