2017 © Pedro Peláez
 

library getresponse

GetResponse API v3 client library.

image

batons0/getresponse

GetResponse API v3 client library.

  • Friday, January 20, 2017
  • by batons0
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,128 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 53 Forks
  • 0 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

Overview

GetResponse API v3 wrapper working on PHP 5.2+. Here you can find our api documentation., (*1)

Examples

Standard authorization, (*2)

$getresponse = new GetResponse('your_api_key');

--, (*3)

Enterprise authorization, (*4)

$getresponse = new GetResponse('your_api_key');
$getresponse->enterprise_domain = 'somedomain.com';

//api URL is relative to your domain UR:
$getresponse->api_url = 'https://api3.getresponse360.pl/v3'; //for PL domains
$getresponse->api_url = 'https://api3.getresponse360.com/v3'; //default

-- Search contacts, (*5)

$result = $getresponse->getContacts(array(
    'query' => array(
        'email' => '@getresponse.com',
    ),
    'fields' => 'name,email'
));

Add contact, (*6)

$getresponse->addContact(array(
    'name'              => 'Jon Smith',
    'email'             => 'jonsmith@testdomain.com',
    'dayOfCycle'        => 0,
    'campaign'          => array('campaignId' => 'campaign_id_obtained_by_API'),
    'ipAddress'         => '89.206.31.190',
    'customFieldValues' => array(
        array('customFieldId' => 'custom_field_id_obtained_by_API',
            'value' => array(
                'Y'
            )),
         array('customFieldId' => 'custom_field_id_obtained_by_API',
            'value' => array(
                'Y'
            ))
    )
));

-- Send message, (*7)

$result = $getresponse->sendNewsletter(array(
                "subject" => 'Test subject',
                "fromField" => array('fromFieldId' => 'from_field_id'),
                "content" => array(
                    'html' => 'Test newsletter contetnt.'
                ),
                "sendSettings" => array(
                    "selectedContacts" => array('contact_id_obtained_by_API')
            )
    ));

-- Add custom field, (*8)

$getresponse->setCustomField(array(
                'name' => 'custom_name',
                'type' => 'text',
                'hidden' => 'false',
    ));

-- List saved search, (*9)

$result = $getresponse->searchContacts();

-- List new web forms, (*10)

$result = $getresponse->getForms();

-- List old web forms, (*11)

$result = $getresponse->getWebForms();

The Versions

20/01 2017

dev-master

9999999-dev https://github.com/Batons0/getresponse-api-php

GetResponse API v3 client library.

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *

 

by Pawel Maslak
by Grzegorz Struczynski
by Tomasz Żuk

api email getresponse

20/01 2017

0.1.0

0.1.0.0 https://github.com/Batons0/getresponse-api-php

GetResponse API v3 client library.

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *

 

by Pawel Maslak
by Grzegorz Struczynski
by Tomasz Żuk

api email getresponse

25/11 2015

0.0.2

0.0.2.0 https://github.com/GetResponse/getresponse-api-php

GetResponse API v3 client library.

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *

 

by Pawel Maslak
by Grzegorz Struczynski

api email getresponse