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\ContactsJsonImport $body ) : array
 

Import Contacts using a JSON Payload

Use this method to create an asynchronous background job that adds new
contacts or updates existing contacts by importing a JSON payload. This
method requires a request body that contains the contact data you are
importing and the contact lists you are adding all imported contacts
to.

Importing a new contact automatically sets the contact's permission_to_send
property as implicit and the opt_in_source property as Account.
Importing an existing contact only updates the contact properties you
include in the request.

You can import custom fields by prefixing a custom field name with cf:
and adding it as a contact property. For example, use the property name
cf:first_name if you have a custom field named first_name. The custom
field must already exist in the Constant Contact account you are using.
Each contact can contain up to 25 custom fields.

The request body payload has a maximum size of 4 megabytes (MB). If
the request body exceeds 4 MB, this method only imports the first 4
MB and drops the remaining data.

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