PHP: Download PHP SDK
The PHP SDK contains three files:
- Config.class.php
- Analytics.class.php
- readme.txt
Â
You can download the most current SDK version here:
BlinkMobile Analytics PHP SDK.zip
Â
To download older versions of the SDK:Â
Â
Once you've downloaded the SDK, unzip the file onto your computer and follow the steps below to implement these on the Blink Mobility Platform:
Config.class.php
Configuration:
The Config file will contain your API key pairs. You will need to update this file with your own details. To do so, open it up in a text editor.
You will see code similar to the code below:
Â
//data collection key public static $ANALYTICS_COLLECTOR = array( "ACCESS" => "#COLLECTOR_ACCESS_KEY#", "SECRET" => "#COLLECTOR_SECRET_KEY#" ); //data reporting, query building key public static $ANALYTICS_ANALYST = array( "ACCESS" => "#ANALYST_ACCESS_KEY#", "SECRET" => "#ANALYST_SECRET_KEY#" ); public static $CONTACT_EMAIL = "#YOUR-EMAIL-HERE#";
Â
- Replace the #COLLECTOR_ACCESS_KEY# and the #COLLECTOR_SECRET_KEY# with the Collector API access and secret key we've provided.
- Replace the #ANALYST_ACCESS_KEY# and the #ANALYST_SECRET_KEY# with the Analyst API access and secret key we've provided.
- If you wish to use the built-in error checking method, then add your email address into the Contact Email line.
Â
Upload to Blink Mobility Platform:
Once you have entered your details, to upload this class file to the Blink Mobility Platform you will need to:
- Login to you BlinkMobile answerSpace administration area
- Create a new MADL interaction, and name it: Config.class.php
(note the capital C) - Save your interaction.Â
Â
Analytics.class.php
Configuration:
You don't need to modify this file.
Upload to Blink Mobility Platform:
To upload this class file to the Blink Mobility Platform you will need to:
- Login to you BlinkMobile answerSpace administration area
- Create a new MADL interaction, and name it:Â Analytics.class.php
(note the capital A) - Save your interaction.Â
Â
Readme.txt
This file just contains a link to this documentation. You do not need to upload this file to your answerSpace.
Â
Next Steps:
Â