diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-11-25 07:50:30 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-11-25 07:50:30 +0000 |
commit | 907ce8c044159ca8da6ccce3ec5362ac61e7c142 (patch) | |
tree | 4e4b83a3aa041a1826e4ac876b001195fce3f7c2 /Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php | |
parent | a41b9219a66f4018dc581f561fbe3fedd24e73f2 (diff) | |
download | Post-SMTP-907ce8c044159ca8da6ccce3ec5362ac61e7c142.zip |
deleted by mistake
Diffstat (limited to 'Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php')
-rw-r--r-- | Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php b/Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php deleted file mode 100644 index ca681e9..0000000 --- a/Postman/Postman-Mail/mailchimp-mandrill-api-php-da3adc10042e/src/Mandrill/Metadata.php +++ /dev/null @@ -1,64 +0,0 @@ -<?php - -class Postman_Mandrill_Metadata { - public function __construct(Postman_Mandrill $master) { - $this->master = $master; - } - - /** - * Get the list of custom metadata fields indexed for the account. - * @return array the custom metadata fields for the account - * - return[] struct the individual custom metadata field info - * - name string the unique identifier of the metadata field to update - * - state string the current state of the metadata field, one of "active", "delete", or "index" - * - view_template string Mustache template to control how the metadata is rendered in your activity log - */ - public function getList() { - $_params = array(); - return $this->master->call('metadata/list', $_params); - } - - /** - * Add a new custom metadata field to be indexed for the account. - * @param string $name a unique identifier for the metadata field - * @param string $view_template optional Mustache template to control how the metadata is rendered in your activity log - * @return struct the information saved about the new metadata field - * - name string the unique identifier of the metadata field to update - * - state string the current state of the metadata field, one of "active", "delete", or "index" - * - view_template string Mustache template to control how the metadata is rendered in your activity log - */ - public function add($name, $view_template=null) { - $_params = array("name" => $name, "view_template" => $view_template); - return $this->master->call('metadata/add', $_params); - } - - /** - * Update an existing custom metadata field. - * @param string $name the unique identifier of the metadata field to update - * @param string $view_template optional Mustache template to control how the metadata is rendered in your activity log - * @return struct the information for the updated metadata field - * - name string the unique identifier of the metadata field to update - * - state string the current state of the metadata field, one of "active", "delete", or "index" - * - view_template string Mustache template to control how the metadata is rendered in your activity log - */ - public function update($name, $view_template) { - $_params = array("name" => $name, "view_template" => $view_template); - return $this->master->call('metadata/update', $_params); - } - - /** - * Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete. - * @param string $name the unique identifier of the metadata field to update - * @return struct the information for the deleted metadata field - * - name string the unique identifier of the metadata field to update - * - state string the current state of the metadata field, one of "active", "delete", or "index" - * - view_template string Mustache template to control how the metadata is rendered in your activity log - */ - public function delete($name) { - $_params = array("name" => $name); - return $this->master->call('metadata/delete', $_params); - } - -} - - |