PluginProbe
Mailchimp List Subscribe Form / 1.3
Mailchimp List Subscribe Form v1.3
1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 All 55 releases
mailchimp / lib / sopresto / test.php

test.php in Mailchimp List Subscribe Form 1.3, at lib/sopresto/test.php

21 lines 536 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require('sopresto.php');
3 $public = 'XXX';
4 $secret = 'YYY';
5 $version = '1.3'; // or '2.0'
6
7 $sopresto = new Sopresto_MailChimp($public, $secret, $version);
8
9 if ( $version == '2.0' ) {
10 // First underscore will be changed for a slash.
11 // Remaning underscores will be changed by a dash
12 // Ie.- to call 'helper/search-members' you should use $sopresto->helper_search_members()
13
14 $response = $sopresto->campaigns_list(array(), 0, 2);
15 } else {
16 $response = $sopresto->campaigns(array(), 0, 2);
17 }
18
19 print_r($response);
20
21