|
5 | 5 | <?php
|
6 | 6 | require_once 'MailerClass.php';
|
7 | 7 | $getApi = new GetResponse('YOUR_API_AUTH_KEY');
|
8 |
| - $getApi->getCampaign(); // returns all campaigns |
9 |
| - $getApi->getCampaign('my_campaign_id'); // returns data specific to the campaign with the ID specified |
10 |
| - $getApi->createCampaign('my_new_campaign'); // creates a new campaign, and returns the campaigns info (like in getCampaign) |
11 |
| - $getApi->getContacts('my_campaign_id'); // shows the contacts (people subscribed to campaign) |
12 |
| - $getApi->getContacts('my_campaign_id', ' [email protected]'); // search a campaign for a users info by email |
13 |
| - $getApi->subscribe('my_campaign_id', 'Joe Smith', ' [email protected]', 'MY_IP'); // subscribes user to a campaign, all fields required |
14 |
| - $getApi->unsubscribe('my_campaign_id', ' [email protected]'); // will unsubscribe a user from a list, returns either true or false |
| 8 | + |
| 9 | + // returns all campaigns |
| 10 | + $getApi->getCampaign(); |
| 11 | + |
| 12 | + // returns data specific to the campaign with the ID specified |
| 13 | + $getApi->getCampaign('my_campaign_id'); |
| 14 | + |
| 15 | + // creates a new campaign, and returns the campaigns info (like in getCampaign) |
| 16 | + $getApi->createCampaign('my_new_campaign'); |
| 17 | + |
| 18 | + // shows the contacts (people subscribed to campaign) |
| 19 | + $getApi->getContacts('my_campaign_id'); |
| 20 | + |
| 21 | + // search a campaign for a users info by email |
| 22 | + $getApi->getContacts('my_campaign_id', ' [email protected]'); |
| 23 | + |
| 24 | + // subscribes user to a campaign, all fields required |
| 25 | + $getApi->subscribe('my_campaign_id', 'Joe Smith', ' [email protected]', 'MY_IP'); |
| 26 | + |
| 27 | + // will unsubscribe a user from a list, returns either true or false |
| 28 | + $getApi->unsubscribe('my_campaign_id', ' [email protected]'); |
15 | 29 | ?>
|
16 | 30 | ```
|
0 commit comments