Skip to content

Commit 600cfd9

Browse files
authored
Update README.md
1 parent 5fa60cd commit 600cfd9

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

README.md

+21-7
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,26 @@
55
<?php
66
require_once 'MailerClass.php';
77
$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]');
1529
?>
1630
```

0 commit comments

Comments
 (0)