Skip to content

d-pollard/GetResponse-PHP-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GetResponse lightweight PHP API library

Simple usage

<?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'); ?>

About

A lightweight library to handle requests to the GetResponse API with PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages