2017 © Pedro Peláez
 

library getresponse-v3-api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

image

timenomad/getresponse-v3-api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  • Monday, May 23, 2016
  • by timenomad
  • Repository
  • 1 Watchers
  • 0 Stars
  • 218 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

GetResponseV3Api

A read-only PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow., (*1)

Create GetResponse App

  • You need to create an app here: https://app.getresponse.com/manage_api.html (Third party applications)
  • Note the Client ID & Client Secret, you will need them.
  • Set Redirect URL to your web app's route responsible for fetching the access token, after user approves to grant your app access.

Usage

  • Install via composer: composer require timenomad/getresponse-v3-api
  • Init API object: $getResponse = new \Timenomad\GetResponseV3Api("*Client ID*", "*Client Secret*", "*State*");.
    State is just a random combination of characters, to validate callback's origin. It's a static value.
    An example would be: fdsfjhs3SDGg23refsd2u09@$
  • Get OAuth2 user consent URL: $getResponse->getOAuthConsentUrl()
  • When user approves and your callback URL is called: $accessToken = $getResponse->getAccessToken();
  • Store the token in your storage engine
  • Having the token, we can now configure the authentication and begin calling the API:
    $getResponse->setAccessToken($token['access_token']);
    $getResponse->setAccessTokenExpiryCallback($token['refresh_token'], function($newTokenData) {
    // Access Token expired. This function will be called after a new token has been generated.
    // Here you can save the new token data to the database, or any other storage means.
    });
  • We can now call the API!
    $userInfo = $getResponse->getAccountInfo();
    $campaigns = $getResponse->getCampaigns();
    $statistics = $getResponse->getCampaignStatistics();

SSL Verification

For development purposes, it can be handy to disable curl's SSL certificate verification, to do so, instantiate the API wrapper object like so (4th param sets to bypass verfification):, (*2)

GetResponseV3Api(x, y, z, true), (*3)

The Versions

23/05 2016

dev-master

9999999-dev https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

23/05 2016

1.1.0

1.1.0.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

23/05 2016

1.0.9

1.0.9.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

18/03 2016

1.0.8

1.0.8.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

17/03 2016

1.0.7

1.0.7.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

17/03 2016

1.0.6

1.0.6.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

17/03 2016

1.0.5

1.0.5.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

16/03 2016

1.0.4

1.0.4.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

15/03 2016

1.0.3

1.0.3.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

15/03 2016

1.0.2

1.0.2.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

15/03 2016

1.0.1

1.0.1.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0
  • ext-curl *

 

oauth2 getresponse

15/03 2016

1.0.0

1.0.0.0 https://github.com/timenomad/GetResponseV3Api

A PHP wrapper for the GetResponse V3 API, supporting OAuth2 authorization flow

  Sources   Download

GNU GPLv3

The Requires

  • php >=5.3.0

 

oauth2 getresponse