RESTful API for Sendy built with Slim
Sendy-api works on Sendy DB, so it has to be hosted on the same server as Sendy.
- Launch
php composer.phar install
to install Slim framework - Copy
app/config-env-dist.php
toapp/config-env.php
- Fill in
app/config-env.php
credentials to Sendy MySQL DB
Api authorizes with Sendy App Key (tabel: apps, colum: app_key) which has to pass with every request as GET
parameter app_key
Example: [your_api_uri]/subscribers/get/list?app_key=[your_app_key]&list=1
/subscribers/add/user
description: Add user to subscribers list
method: POST
params: email
- subscriber email, list
- list id
return: number of created subscribers
/subscribers/get/list
description: Get subscribers list by list id
method: GET
params: list
- list id
return: list of subscribers
/subscribers/get/user
description: Get subscribers by email
method: GET
params: email
- subscriber email
return: subscriber
/subscribers/truncate/list
description: Truncate list of subscribers
method: GET
params: list
- list id
return: number of truncated subscribers
/subscribers/delete/user
description: Delete user from subscribers (all subscriber lists)
method: GET
params: email
- subscriber email
return: number of truncated subscribers
/lists/get
description: Get lists by name wildcard
method: GET
params: name
- wildcard name
return: lists