Super-simple webhook example that does two things:
- Subscribes new plugin users to MailChimp's mailing list.
- Send post-uninstall custom emails to users based on different uninstall reasons.
- Freemius PHP SDK (https://github.com/Freemius/php-sdk)
- MailChimp PHP SDK (https://github.com/drewm/mailchimp-api)
- Emails sender (e.g. http://swiftmailer.org/)
Currently, the developer's dashboard do not expose an option to add your webhook address. You would need to contact us first via support@freemius.com
During development on localhost, your webhook will not be accessible from the Internet. Therefore, testing will not automatically work.
- You can examine the webhook calls with tools like RequestBin.
- Or the recommended way is to use tunneling with services like ngrok. This way you can use your IDE and debugger.