Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The PHP SDK contains three files:

  1. Config.class.php
  2. Analytics.class.php
  3. readme.txt

 

You can download the ZIP file here:

BlinkMobile PDF Service PHP SDK.zip

 

 

Once you've downloaded it, 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:

 

Configuration Class Code
 class Config
{

    public static $PDF = array(
			"ACCESS" => "YOUR ACCESS KEY",
			"SECRET" => "YOUR SECRET ACCESS KEY"
    );

    public static $CONTACT_EMAIL = "support@blinkmobile.com.au";

    public static function handleErrors($t, $interaction, $errors)
    {
        $body = "<pre>" . print_r($errors, 1) . "</pre>";
        $t->email(self::$CONTACT_EMAIL, $interaction, $body);
    }
}

 

  1. Replace the #ACCESS_KEY# and the #SECRET_KEY# with the API access and secret key we've provided.
  2. 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:

    1. Login to you BlinkMobile answerSpace administration area
    2. Create a new MADL interaction, and name it: Config.class.php
      (note the capital C)
    3. Save your interaction. 

 

PDF.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:

    1. Login to you BlinkMobile answerSpace administration area
    2. Create a new MADL interaction, and name it: Pdf.class.php
      (note the capital P)
    3. 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:

Usage and Code Examples

 

  • No labels