This is a work in progress; do not use
Forked from the Freemius PHP Webhook Example, which was built by Freemius for MailChimp. Super-simple webhook example that does two things:
- Subscribes new plugin users to a ConvertKit mailing list.
- Send post-uninstall custom emails to users based on different uninstall reasons.
- Freemius PHP SDK (https://github.com/Freemius/php-sdk)
- ConvertKit PHP SDK (https://github.com/ConvertKit/ConvertKitSDK-PHP)
- Emails sender (e.g. http://swiftmailer.org/)
- Download the Freemius SDK and add it to the
freemius-sdk
directory - Download the ConvertKit SDK and add the contents of their
src
directory it to this repo'sconvertkit-sdk
directory
Currently, the developer's dashboard does not expose an option to add your webhook address. You would need to contact Freemius first at 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.