# Class Mailchimp_Folders

Located at Mailchimp/Folders.php

Methods summary
`public` | # `__construct( `Mailchimp` $master )`
`public associative_array` | # `add( string $name, string $type )` Add a new folder to file campaigns, autoresponders, or templates in Add a new folder to file campaigns, autoresponders, or templates in #### Parameters $name `string` $name $type `string` $type #### Returns `associative_array` with a single value: - folder_id int the folder_id of the newly created folder.
`public associative_array` | # `del( integer $fid, string $type )` Delete a campaign, autoresponder, or template folder. Note that this will simply make whatever was in the folder appear unfiled, no other data is removed Delete a campaign, autoresponder, or template folder. Note that this will simply make whatever was in the folder appear unfiled, no other data is removed #### Parameters $fid `integer` $fid $type `string` $type #### Returns `associative_array` with a single entry: - complete bool whether the call worked. reallistically this will always be true as errors will be thrown otherwise.
`public array` | # `getList( string $type )` List all the folders of a certain type List all the folders of a certain type #### Parameters $type `string` $type #### Returns `array` structs for each folder, including: - folder_id int Folder Id for the given folder, this can be used in the campaigns/list() function to filter on. - name string Name of the given folder - date_created string The date/time the folder was created - type string The type of the folders being returned, just to make sure you know. - cnt int number of items in the folder.
`public associative_array` | # `update( integer $fid, string $name, string $type )` Update the name of a folder for campaigns, autoresponders, or templates Update the name of a folder for campaigns, autoresponders, or templates #### Parameters $fid `integer` $fid $name `string` $name $type `string` $type #### Returns `associative_array` with a single entry: - complete bool whether the call worked. reallistically this will always be true as errors will be thrown otherwise.