Copied!
Cloneable Instantiable
Methods
public __construct ( PHPFUI\ConstantContact\Client $client )
public PHPFUI\ConstantContact\Base :: getLastError () : string
public PHPFUI\ConstantContact\Base :: getResponseText () : string
public PHPFUI\ConstantContact\Base :: getStatusCode () : int
public PHPFUI\ConstantContact\Base :: next () : array
 

If the endpoint is paginated, you can call next() to retrieve the next set of data. If no next is provided, an empty array is returned.

  • return array filled with next part of the response from the endpoint, or empty if no next.
public post ( PHPFUI\ConstantContact\Definition\ContactCreateOrUpdateInput $body ) : array
 

Create or Update a Contact

Use this method to create a new contact or update an existing contact.
This method uses the email_address string value you include in the
request body to determine if it should create an new contact or update
an existing contact.

Updates to existing contacts are partial updates. This method only updates
the contact properties you include in the request body. Updates append
new contact lists or custom fields to the existing list_memberships
or custom_fields arrays.

Only use this method when a contact
gives you their explicit permission to send them emails. It is a violation
of US and Canadian anti-spam laws, as well as a serious violation of
the Constant Contact Terms of Service to use the Opt-in features of
the API to opt a contact back in without his or her own action and consent.

When this method creates a new contact, it returns a 201 response code.

When this method updates an existing contact, it returns a 200 response
code. Updating a deleted contact restores the contact.

The method automatically modifies the contact's permission_to_send
and opt_in_source properties depending on the Confirmed Opt-In
Constant Contact account setting:

If Confirmed Opt-in is enabled, this method automatically sets the
permission_to_send property as pending_confirmation for new contacts.

If Confirmed Opt-in is disabled, this method automatically sets the
permission_to_send property as explicit and the opt_in_source property
as Contact for new contacts. Updated contacts have their permission_to_send
property set as explicit.

public PHPFUI\ConstantContact\Base :: success () : bool
Properties
protected PHPFUI\ConstantContact\Client PHPFUI\ConstantContact\Base :: $client
protected string PHPFUI\ConstantContact\Base :: $urlPath
Methods
protected PHPFUI\ConstantContact\Base :: doDelete ( array $parameters ) : array
protected PHPFUI\ConstantContact\Base :: doGet ( array $parameters ) : array
protected PHPFUI\ConstantContact\Base :: doPatch ( array $parameters ) : array
protected PHPFUI\ConstantContact\Base :: doPost ( array $parameters ) : array
protected PHPFUI\ConstantContact\Base :: doPut ( array $parameters ) : array
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration