Oct 22, 2019

PHP script to export web push subscription stats from SendPulse

Steps to use:
  1. Download the archive.
  2. Exctract it.
  3. Enable API access in your SendPulse settings.
  4. Make the needed amendments to the script:
    1. set your API_USER_ID and API_SECRET.
    2. add the list of your domains into $country_mapping variable
  5. Run the script with php index.php > senpulse.csv (PHP 7+ needed):
  6. Wait for the script to finish (average speed is ~60k subscribers per hour).
Important! The exported data  isn't enough for transfering yoour subscribers to other web push service provider. It's good only for stat analysis.