Howto - Please read

Every campaign has it's own "reseller statuslink". You can find and copy this link on the campaign stats page.

There are two differnet examples on this page. One for pulling html (easy) and one for JSON data (expert).

Easy: Pull HTML Data from fanslave and show stats on your domain

1. Copy paste the following php example code and place it on your server. The new file should be reachable at https://yourdomain.com/stats.php

Copy Code

Now you are able to show campaign stats for any of your campaigns. You just need to pass the correct GET parameters. Please load https://yourdomain.com/stats.php you should see an error message like "Stats not found - wrong link". Take a look how to pass the correct GET parameters:

1. Please copy the "reseller statuslink" from the fanslave stats area. The link looks like this: https://www.promotioncontrol.com/stats.php?site_id=your_site_id&unique_id=your_unique_id

2. Change the copied link to your url. Please change only the bold part of the url. Link should look like this: https://yourdomain.com/stats.php?site_id=your_site_id&unique_id=your_unique_id

3. Open the url.

Done - You should see the whitelable stats on your domain. You can send this link to your customer.

Please feel free to use your logo and text on this page.

Expert: Pull JSON data from fanslave and show customised stats on your domain

In this example you will learn to pull stats as JSON data from fanslave server. You can show these stats customized on your website / app.

1. Copy paste the following php example code and place it on your server. The new file should be reachable at https://yourdomain.com/stats.php

Copy Code

Now you are able to show campaign stats for any of your campaigns. You just need to pass the correct GET parameters. Please load https://yourdomain.com/stats.php you should see an error message like "Stats not found - wrong link". Take a look how to pass the correct GET parameters:

1. Please copy the "reseller statuslink" from the fanslave stats area. The link looks like this: https://www.promotioncontrol.com/stats.php?site_id=your_site_id&unique_id=your_unique_id

2. Change the copied link to your url. Please change only the bold part of the url. Link should look like this: https://yourdomain.com/stats.php?site_id=your_site_id&unique_id=your_unique_id

3. Open the url

Done - You should see the whitelable stats on your domain. Please customize this scipt and use it in your website / app.