Class Templates
-
MailChimp\MailChimp
-
MailChimp\Templates\Templates
Methods summary
public
object
|
#
getTemplates( array $query = [] )
Get a list of templates for the account
Get a list of templates for the account
Available query fields:
array["fields"] array list of strings of response fields to return
array["exclude_fields"] array list of strings of response fields to exclude (not to be used with "fields")
array["count"] int number of records to return
array["offset"] int number of records from a collection to skip.
array["folder_id"] string Filter results by a specific campaign folder.
array["type"] string The campaign type. Possible values: regular,plaintext,absplit,rss,variate
array["status"] string The status of the campaign. Possible Values: save,paused,schedule,sending,sent
array["before_send_time"] string Restrict the response to campaigns sent before the set time. ISO 8601 time format: 2015-10-21T15:41:36+00:00.
array["since_send_time"] string Restrict the response to campaigns sent after the set time. ISO 8601 time format: 2015-10-21T15:41:36+00:00.
array["before_create_time"] string Restrict the response to campaigns sent after the set time. ISO 8601 time format: 2015-10-21T15:41:36+00:00.
array["since_create_time"] string Restrict the response to campaigns created after the set time. ISO 8601 time format: 2015-10-21T15:41:36+00:00.
Parameters
- $query
- (See Above) OPTIONAL associative array of query parameters.
Returns
object
|
public
object
|
#
getTemplate( integer $template_id, array $query = [] )
Get a list of campaigns for the account
Get a list of campaigns for the account
Available query fields:
array["fields"] array list of strings of response fields to return
array["exclude_fields"] array list of strings of response fields to exclude (not to be used with "fields")
Parameters
- $template_id
- id
- $query
- (See Above) OPTIONAL associative array of query parameters.
Returns
object
|
public
object
|
#
getDefaultContent( integer $template_id, array $query = [] )
Get a list of campaigns for the account
Get a list of campaigns for the account
Available query fields:
array["fields"] array list of strings of response fields to return
array["exclude_fields"] array list of strings of response fields to exclude (not to be used with "fields")
Parameters
- $template_id
- id
- $query
- (See Above) OPTIONAL associative array of query parameters.
Returns
object
|
public
object
|
#
createTemplate( string $name, string $html, integer $folder_id = null )
Upload a new image or file to the File Manager.
Upload a new image or file to the File Manager.
Parameters
- $name
- $html
- $folder_id
- $folder_id
Returns
object
|
public
object
|
#
updateTemplate( integer $template_id, array $data = [] )
Update an existing template
Update an existing template
Parameters
- $template_id
- id
- $data
- data
Returns
object
|
public
|
#
deleteTemplate( integer $template_id )
Update an existing template
Update an existing template
Parameters
|
__construct(),
authorizedApps(),
automations(),
batchOps(),
campaignFolders(),
campaigns(),
conversations(),
createLog(),
ecommerce(),
execute(),
fileManager(),
fileManagerFolders(),
getAccountInfo(),
getMemberHash(),
lists(),
logData(),
optionalFields(),
reports(),
searchMembers(),
templateFolders(),
templates()