Adding a new User

68 views
Skip to first unread message

Joe Workman

unread,
Nov 18, 2011, 7:20:57 PM11/18/11
to madmi...@googlegroups.com
This looks insanely easy and I have followed the examples to a T (I think). What am I doing wrong? I am not seeing the new user being created. 

require_once('MadMimi.class.php');
$mailer = new MadMimi($madmimi_username, $madmimi_apikey);

$user = array('email' => $email, 'firstName' => $first_name, 'lastName' => $last_name, 'add_list' => $madmimi_list);
$mailer->AddUser($user);

Sally

unread,
Nov 21, 2011, 2:49:47 PM11/21/11
to Joe Workman, madmi...@googlegroups.com
Hi Joe!

What's there looks good to me! From what I can see there, all you should need to do is upgrade your account. You're currently over the limit for the level you are on. Mimi returns a code and a short explanation on why a user is not added. In this case it should be something like this:

402) Payment Required. Audience limit reached: It looks like you went over your audience import limit. 
   <a href='https://api.madmimi.com/service_agreements/get_payment_for_upgrade'>Upgrading your account</a>
   will fix this.

So you may consider just adjusting your code so that you are able to check the return code for the request. You may also need to add $debug and set it to true in the MadMimi($madmimi_username, $madmimi_apikey, $debug) function. See https://github.com/madmimi/madmimi-php/blob/master/MadMimi.class.php.

Mimi allows members to be added over the limit by webform provided at madmimi.com/signups, but users cannot be added over the limit via API, and nor can they be sent to by any means until the upgrade is done.

Best,
Sally L
--
Sally at Mad Mimi®
Deliverability/Customer Support
Simple. Lovely. Email Marketing.
http://madmimi.com
http://twitter.com/madmimi
Reply all
Reply to author
Forward
0 new messages