aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/activation_details.php60
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>