Subscription Form Post URL
Where subscription data will be sent via HTTP POST. This is the URL in YOUR application or handling script where you will process the subscription data sent by WishList Member.
Data Sent
This is the data WishList Member will send to your “Subscription Form Post URL” for you to process in your script or application.
email_address | the email address to subscribe or unsubscribe |
first_name | the subscriber’s first name |
last_name | the subscriber’s last name |
unsubscribe | 1 or 0. 1 if email_address is to be unsubscribed |
Example Code
This is a basic example script for handling the data sent by WishList Member. This will depend heavily on your system:
if( $_POST ) {
$email_address = trim( $_POST['email_address'] );
$first_name = trim( $_POST['first_name'] );
$last_name = trim( $_POST['last_name'] );
$unsubscribe = (int) $_POST['unsubscribe'];
if( $unsubscribe ) {
// unsubscribe code
} else {
// subscribe code
}
}
—
Automations
Another option to check into is integrating with a system that can be used to set up automations.
Setting up automations is a way to connect multiple systems that maybe don’t have an included integration. It can also be used in some cases for creating a more in depth integration for a system.
Some examples are automatically adding a member to a Level if they are tagged by a system. Or automatically adding or removing a member from a Level if they subscribe or unsubscribe from an email list.
Those are just a couple examples as there are many different applications when it comes to automation. It can be a simple automation or an automation that includes a number of moving parts.
A few of the options available to create automations with WishList Member are listed below. Each option links to their Knowledge Base article for more details.
Details in the Automations Knowledge Base article.
—
WebHooks
The WebHooks integration can be Enabled and used in the Setup > Integrations > Other Services section.
Another option you might want to check out is WebHooks.
We have created a video that runs through a number of settings, options, etc. available. Topics like configuring incoming and outgoing webhooks, sending HTTP Posts, Adding/Removing Actions and more.
Details in the WebHooks Knowledge Base article.