\GetResponse
Synopsis
class GetResponse
{
- // members
- protected string $base_url = 'https://api.getresponse.com/v3';
- protected $apiKey;
- protected $handle;
- // methods
- public static GetResponse create()
- public void __construct()
- public mixed getCampaigns()
- public mixed subscribe()
- public mixed search()
- public mixed unsubscribe()
- protected mixed get()
- protected mixed post()
- protected mixed delete()
- protected mixed perform()
- protected string getAuthenticationHeader()
Tasks
Line | Task |
---|---|
230 | error handling |
Members
protected
- $apiKey
—
string
API key - $base_url
—
string
Base url to GetResponse API v3 - $handle
—
resource
cURL handle
Methods
protected
- delete() — Send a delete request to the API
- get() — Send a get request to the API
- getAuthenticationHeader() — Retrieve the authentication header
- perform() — Perform a cURL request
- post() — Send a post request to the API
public
- __construct() — GetResponse constructor.
- create() — Create a new GetResponse client
- getCampaigns() — Retrieve the campaigns
- search() — Search for an emailadress
- subscribe() — Subscribe an emailadress
- unsubscribe() — Unsubscribe a subscriber