jrsaunders / get-response
Get Response API
v1.0.0
2019-10-30 12:27 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2024-10-29 05:53:03 UTC
README
Get Response API
Example of use:
$gr = new \GetResponse\GetResponse('MyAPIkey','my360domain.com',null);
$contact = new \GetResponse\ValueObject\ContactByEmail('auser@emailaddress.com');
echo $contact->getName();
Create a Contact:
$gr = new \GetResponse\GetResponse('MyAPIkey','my360domain.com','iR');
$newContact = ( new \GetResponse\ValueObject\Contact() )->setName( 'John Smith' )->setEmail( 'john@smith.com' );
$gr->getContacts()->createByContact( $newContact );