Add doc page for addList method

[MAILPOET-2035]
This commit is contained in:
Rostislav Wolny
2019-05-22 17:06:57 +02:00
committed by M. Shull
parent 22ee0964bd
commit 75feb900bd

View File

@@ -0,0 +1,19 @@
[back to list](../Readme.md)
# Add Subscriber
## `array addList(array $list)`
In MailPoet, subscribers are organized into lists. This method provides functionality for creating a new list.
It returns the new list. See [Get Lists](GetLists.md) for a list data structure description.
## Arguments
### `$list` (required)
An associative array which contains list data.
| Property | Type | Limits | Description |
| --- | --- | --- | --- |
| name (required) | string | 90 chars | A name of the list. |
| description (optional) | string\|null| 250 chars | A description of the list. |