Overview
  • Namespace
  • Class

Namespaces

  • MailChimp
    • AuthorizedApps
    • Automations
    • Batches
    • CampaignFolders
    • Campaigns
    • Conversations
    • Ecommerce
    • FileManager
    • Lists
    • Reports
    • TemplateFolders
    • Templates

Classes

  • Files
  • Folders

Class Files

MailChimp\MailChimp
Extended by MailChimp\FileManager\Files
Namespace: MailChimp\FileManager
Located at FileManager/Files.php

Methods summary

public object
# getFiles( array $query = [] )

Get a list of available images and files stored in the File Manager for the account.

Get a list of available images and files stored in the File Manager 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"] int Filter results by a specific campaign folder. array["created_by"] string The MailChimp account user who created the File Manager file. array["type"] string The file type for the File Manager file Possible values: image,file array["before_created_at"] string Restrict the response to files created before the set date ISO 8601 time format: 2015-10-21T15:41:36+00:00. array["since_created_at"] string Restrict the response to files created after the set date. ISO 8601 time format: 2015-10-21T15:41:36+00:00. array["sort_field"] string Returns files sorted by the specified field. array["sort_dir"] string Determines the order direction for sorted results.

Parameters

$query
(See Above) OPTIONAL associative array of query parameters.

Returns

object
public object
# getFile( integer $file_id, array $query = [] )

Get information about a specific file in the File Manager.

Get information about a specific file in the File Manager.

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

$file_id
file_id
$query
(See Above) OPTIONAL associative array of query parameters.

Returns

object
public object
# uploadFile( string $name, string $file_data, 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
$file_data
$folder_id
$folder_id

Returns

object
public
# updateFile( string $file_id, array $data = [] )

Update a file in the File Manager.

Update a file in the File Manager.

Parameters

$file_id
file_id
$data
public
# deleteFile( integer $file_id )

Remove a specific file from the File Manager.

Remove a specific file from the File Manager.

Parameters

$file_id
file_id

Methods inherited from MailChimp\MailChimp

__construct(), authorizedApps(), automations(), batchOps(), campaignFolders(), campaigns(), conversations(), createLog(), ecommerce(), execute(), fileManager(), fileManagerFolders(), getAccountInfo(), getMemberHash(), lists(), logData(), optionalFields(), reports(), searchMembers(), templateFolders(), templates()

API documentation generated by ApiGen