Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actuallymentor/mailchimp-api-v3.0-php-curl-example
This is a Mailchimp API 3 example using PHP and cURL. I made this for a client, took a while because their documentation is horrible, though maybe they improved it by the time you read this.
https://github.com/actuallymentor/mailchimp-api-v3.0-php-curl-example
Last synced: 4 days ago
JSON representation
This is a Mailchimp API 3 example using PHP and cURL. I made this for a client, took a while because their documentation is horrible, though maybe they improved it by the time you read this.
- Host: GitHub
- URL: https://github.com/actuallymentor/mailchimp-api-v3.0-php-curl-example
- Owner: actuallymentor
- Created: 2015-08-05T08:33:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T09:46:35.000Z (about 7 years ago)
- Last Synced: 2024-04-14T23:01:24.006Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 52
- Watchers: 12
- Forks: 35
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MailChimp API v3.0 Example
This ia a Mailchimp API 3 example using PHP and cURL. I made this for a client, took a while because their documentation is horrible, though maybe they improved it by the time you read this.
My collegue wanted a file he could post data to, this file would then execute MailChimp API calls.
## Usage
The php file takes POSTed arguments. There are 5 functions in this file:
- Adding a subscriber 'mc_subscribe();'
- Changing a subscriber fname merge tag 'mc_changename();'
- Adding someone to an interest group 'mc_addinterest();'
- Removing a subscriber from an interest group 'mc_reminterest();'
- Checking if a subscriber exists (returns 'subscribed' or '404')Check the file to see what arguments are needed for these separate functions.
### Post tester
The post tester file can be used to test queries from your broswer. It's a form to post to the actor php.
## Variables you need to set
At the top of the file you need to set:
- Your API key from MailChimp
- Your MailChimp server prefix (e.g. us1.)## Debug and testing
If you set the posted $_POST["debug"] to true the MailChimp API response if outputted into the screen.
## License
Use this as you will. Tweet me as thanks at @ActuallyMentor.