latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

MadMimi integration

Home Forums Community Forum MadMimi integration

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Tuesday Jun 12th, 2012 at 6:12 pm #16290

Critian, in a random forum topic you commented:

“I use MadMimi too, and you can integrate to it using their API and s2Member’s notifications.”

I’ve done some research on the MadMimi developer Wiki but can find a way to do this. Can you give me some code or something to help me accomplish this (so that a new member is automatically added to a Madmimi list when he or she registers for the forum)?

Thanks!
Lisa

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jun 13th, 2012 at 9:30 pm #16410

Hi Lisa.

Well, I haven’t integrated it with an s2Member site yet, but you’d be using the MadMimi API.
https://madmimi.com/developer/api-client-libraries/example-code
https://madmimi.com/developer/api-client-libraries

It’d be something like this:

[hilite pre_code]
require('MadMimi.class.php');
$mailer = new MadMimi('your MadMimi email address', 'your MadMimi API key');

$user = array(
'add_list' => $_GET['list'],
'email' => $_GET['email'],
'firstName' => $_GET['first_name'],
'lastName' => $_GET['last_name'],
'ip' => $_GET['user_ip'],
);

$mailer->AddUser($user);
[/hilite]

Then you’d load the file with your code, using the registration notification. [hilite path]Dashboard -› s2Member® -› API / Notifications -› Registration Notifications[/hilite]

You can use the other notifications and new code to, for example, move users between lists on upgrades.

If you don’t know PHP, I recommend that you get a freelancer to do this for you. You can try getting one from sites like elance.com, odesk.com or jobs.wordpress.net.

I hope that helps. :)

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.