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
- Host: GitHub
- URL: https://github.com/hayanisaid/mailchip-api
- Owner: hayanisaid
- Created: 2017-12-23T19:18:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T20:28:07.000Z (over 7 years ago)
- Last Synced: 2025-01-05T20:41:47.279Z (4 months ago)
- Language: PHP
- Size: 698 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 :) ***