The PHP SDK contains three files:
- Config.class.php
- AnalyticsPdf.class.php
- readme.txt
You can download the ZIP file here:
BlinkMobile PDF Service PHP SDK.zip
Once you've downloaded itthe file, unzip the file it onto your computer and follow the steps below to implement these on the Blink Mobility Platform:
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
class Config { public static $PDF = array( "ACCESS" => "YOUR ACCESS KEY", "SECRET" => "YOUR SECRET ACCESS KEY" ); public static $CONTACT_EMAIL = "support@blinkmobileyou@example.com.au"; public static function handleErrors($t, $interaction, $errors) { $body = "<pre>" . print_r($errors, 1) . "</pre>"; $t->email(self::$CONTACT_EMAIL, $interaction, $body); } } |
- Replace the #COLLECTOR_ACCESS_KEY# "YOUR 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 "YOUR SECRET ACCESS KEY" with the 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.
...
Pdf.class.php
Configuration:
You don't need to modify this file.
...
- Login to you BlinkMobile answerSpace administration area
- Create a new MADL interaction, and name it: Analytics Pdf.class.php
(note the capital CP) - Save your interaction.
...