1-866-284-2541  |  Registered Users LOGIN 

MailChimp Home Learn More Pricing Resource Center Blog Free Trial

MailChimp API
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

Examples (1)

[1] xml-rpc_login.php

  1. <?php
  2. /**
  3. This Example shows how to Login using the XML-RPC service and do some
  4. basic error checking.
  5. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  6. **/
  7. require_once 'XML/RPC2/Client.php';
  8. include('inc/config.inc.php'); //contains username & password
  9.  
  10. $client = XML_RPC2_Client::create($apiUrl);
  11.  
  12. try {
  13. $uuid = $client->login($username,$password);
  14. echo "SUCCESS!\n";
  15. echo "Your User ID is :". $uuid."\n";
  16. } catch (XML_RPC2_FaultException $e){
  17. echo "ERROR!!!!\n";
  18. echo $e->getFaultCode()." : ".$e->getFaultString()."\n";
  19. }
  20. ?>
  21.  
Add New Note User Contributed Notes
login
No notes, yet... Will you be the first??

Email Marketing Resources  |   Free HTML Email Templates  |   Partners  |  Find an Expert  |   Add-ons  |   API  |   Plugins  |   Blog  |  Demos  |  Surveys  |   Webinars  |   Subscribe to our free Email Marketing Tips Newsletter

New Features:  RSS to Email  |   A/B Split Testing Emails  |   Google Analytics Integration  |   Segmentation

Truste Certified Privacy Click to verify BBB accreditation and to see a BBB report ESPC Members MAAWG Email Experience Council Members HACKER SAFE certified sites prevent over 99.9% of hacker crime.
WebAward Winner W3 Award Webby Award Nominee As featured on MSNBC's Your Business Program