diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-02-09 10:01:31 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-02-09 10:01:31 +0200 |
commit | e9cf49004e705712934ee8d4220843b23591306c (patch) | |
tree | 4ecf54e18b5a9b126b96c8779f248bb1a4707026 /examples/activation_details.php | |
parent | 9e61b531d42c470bca1c2e34cd76ce83f7640c8e (diff) | |
download | gsxlib-e9cf49004e705712934ee8d4220843b23591306c.tar.gz gsxlib-e9cf49004e705712934ee8d4220843b23591306c.tar.bz2 gsxlib-e9cf49004e705712934ee8d4220843b23591306c.zip |
Added activation details example
Diffstat (limited to 'examples/activation_details.php')
-rw-r--r-- | examples/activation_details.php | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/examples/activation_details.php b/examples/activation_details.php new file mode 100644 index 0000000..da4bf1a --- /dev/null +++ b/examples/activation_details.php @@ -0,0 +1,60 @@ +<?php + + /** + * This example mimics the iOS device activation details in GSX + */ + + require 'gsxlib/gsxlib.php'; + + $sold_to = ''; + $username = ''; + $password = ''; + $serialnumber = ''; + + $gsx = GsxLib::getInstance($sold_to, $username, $password); + $info = $gsx->fetchiOsActivation($serialnumber); + + ?> + + <table> + <tr> + <td><strong>Serial Number:</strong> <?= $info->serialNumber ?></td> + <td><strong>Initial Activation Policy ID:</strong> <?= $info->initialActivationPolicyDetails ?></td> + </tr> + <tr> + <td><strong>MEID:</strong> <?= $info->meid ?></td> + <td><strong>Activation Policy Description:</strong> <?= $info->appliedActivationDetails ?></td> + </tr> + <tr> + <td><strong>IMEI:</strong> <?= $info->imeiNumber ?></td> + <td><strong>Applied Activation Policy ID:</strong> <?= $info->appliedActivationPolicyID ?></td> + </tr> + <tr> + <td><strong>Part Description:</strong> <?= $info->partDescription ?></td> + <td><strong>Applied Activation Description:</strong> <?= $info->appliedActivationDetails ?></td> + </tr> + <tr> + <td><strong>Product Version:</strong> <?= $info->productVersion ?></td> + <td><strong>Next Tether Policy ID:</strong> <?= $info->nextTetherPolicyID ?></td> + </tr> + <tr> + <td><strong>Last Restore Date:</strong> </td> + <td><strong>Next Tether Activation Policy Description:</strong> <?= $info->nextTetherPolicyDetails ?></td> + </tr> + <tr> + <td><strong>Bluetooth MAC address:</strong> <?= $info->bluetoothMacAddress ?></td> + <td><strong>First Unbrick Date:</strong> <?= $info->firstUnbrickDate ?></td> + </tr> + <tr> + <td><strong>MAC address:</strong> <?= $info->macAddress ?></td> + <td><strong>ICCID:</strong> <?= $info->iccID ?></td> + </tr> + <tr> + <td><strong>Last Unbrick Date:</strong> <?= $info->lastUnbrickDate ?></td> + <td><strong>Unbricked:</strong> <?= $info->unbricked ?></td> + </tr> + <tr> + <td><strong>Unlocked:</strong> <?= $info->unlocked ?></td> + <td></td> + </tr> + </table> |