An open API service indexing awesome lists of open source software.

https://github.com/hayanisaid/mailchip-api

Using MailChip API to manage subscriber , delete,add subscribers to mailList
https://github.com/hayanisaid/mailchip-api

Last synced: 2 months ago
JSON representation

Using MailChip API to manage subscriber , delete,add subscribers to mailList

Awesome Lists containing this project

README

        

## MailChip-Api-

Using MailChip API to manage subscriber , delete,add subscribers to mailList Using PHP With Ajax

## Usage

**include mailC.php file in your principal file**
```

include('./mailC.php');
```
** assign new MailChip Object to a Varaible**
```

$MailChimp = new MailChimp('API_KEY');
```
**add ListID**
```
$list_id = 'yourListId';
```
** to get mailChip List**
use get Method
```
$result = $MailChimp->get('lists');
print_r($result)
```
** To add new Subscriber to an List **
Use post Method
```
// add subscriber to mail list
$result = $MailChimp->post("lists/$list_id/members", [
'email_address' => $mail,
'status' => 'subscribed',
]);
```
*** That 's it :) ***