list_manager
is a simple PHP API for fast querying and manipulating of Mailman 2.1.9 data.
All requests are expected to be GET and response are returned as JSON.
For the most part, the names of the API correspond to the names of the Mailman commandline utilities.
You'll need to create a config.php
file that defines MAILMAN_CMD_PREFIX
, which is typically the path to the actual mailman commandline tools. This constant is prepended to mailman commands like list_lists
.
You can copy config.php.template
to get started with your own config.php
file.
Returns a list of all the list names.
None
["my_list_1", "my_list2", "my_list3"]
Returns a list of list names that the given member is in.
list
- name of list
Adds a member to a list
member
- email of member to addlist
- name of list
HTTP status code will return 200 if successful, 400 if unsuccessful.
Removes a member from a list
member
- email of member to removelist
- name of list
HTTP status code will return 200 if successful, 400 if unsuccessful.
Returns a list of the names of all lists that a given member is in.
member
- email of member to look for
["my_list2", "my_list3"]
Removes the member from all lists.
member
- email of member to look for
HTTP status code will return 200 if successful, 400 if unsuccessful.