Please download sample code (PHP) from here.
- subscription.php This file includes all the functions related to subscription API
- notification.php This script collects the subscription notifications, which send to the app from ideamart (or simulator)
- definitions.php This file contains Ideamart API endpoint data
- log.php That helps to record activities.
First, add following script on the head of the PHP script for initializing settings
How to register a user?
How to unregister a user?
Need to know how many users currently registered on your app?
(Please note that this function gives only the count of active users. On ideamart, PENDING CHARGE status doesn't count as an active user. So actual subscriber base may be higher than this value)
Are you need to check the status of your subscriber?
When user registering or unregistering from your app, ideamart send a notification to your app. You need to give the URL of this script to "Subscription notification URL" in subscription API configurations.