<?php require_once 'MailerClass.php'; $getApi = new GetResponse('YOUR_API_AUTH_KEY'); // returns all campaigns $getApi->getCampaign(); // returns data specific to the campaign with the ID specified $getApi->getCampaign('my_campaign_id'); // creates a new campaign, and returns the campaigns info (like in getCampaign) $getApi->createCampaign('my_new_campaign'); // shows the contacts (people subscribed to campaign) $getApi->getContacts('my_campaign_id'); // search a campaign for a users info by email $getApi->getContacts('my_campaign_id', 'j.doe@example.com'); // subscribes user to a campaign, all fields required $getApi->subscribe('my_campaign_id', 'Joe Smith', 'j.doe@example.com', 'MY_IP'); // will unsubscribe a user from a list, returns either true or false $getApi->unsubscribe('my_campaign_id', 'j.doe@example.com'); ?>
- Notifications
You must be signed in to change notification settings - Fork 0
d-pollard/GetResponse-PHP-API
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lightweight library to handle requests to the GetResponse API with PHP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published