Coder Social home page Coder Social logo

sendy-api's Introduction

Sendy API

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.

Installation

  1. Launch php composer.phar install to install Slim framework
  2. Copy app/config-env-dist.php to app/config-env.php
  3. Fill in app/config-env.php credentials to Sendy MySQL DB

API Authorization

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

Methods

Subscribers

/subscribers/user/add

description: Add user to subscribers list
method: POST
params: email - subscriber email, list - list id , name = subscriber name return: number of created subscribers

/subscribers/user/subscribe

description: Subscribe user to list
method: POST
params: email - subscriber email, list - list id return: number of created subscribers

/subscribers/user/unsubscribe

description: Unsubscribe user from 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

/lists/get

description: Get lists by name wildcard
method: GET
params: name - wildcard name
return: lists

/lists/show

description: Show all lists by account API
method: GET
params: app_key - App API key
return: lists

Campaigns

/campaigns/get

description: Get campaign info method: GET
params: id - campaign id
return: campaign

/campaigns/show

description: Show all campaigns by account
method: GET
params: app_key - App API key
return: campaigns

sendy-api's People

Contributors

gellu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.