diff options
author | Filipp Lepalaan <f@230.to> | 2014-04-10 13:08:34 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-04-10 13:08:34 +0300 |
commit | 9e61b531d42c470bca1c2e34cd76ce83f7640c8e (patch) | |
tree | 342da0e2299286bf2dbebeeef976548477c3ca48 | |
parent | 612ee8577f5f64b0e82fefb4ba7db09e7ec7b6a3 (diff) | |
download | gsxlib-9e61b531d42c470bca1c2e34cd76ce83f7640c8e.tar.gz gsxlib-9e61b531d42c470bca1c2e34cd76ce83f7640c8e.tar.bz2 gsxlib-9e61b531d42c470bca1c2e34cd76ce83f7640c8e.zip |
Updated readme
-rw-r--r-- | README.md | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -6,28 +6,32 @@ from knowing the underlying PHP SOAP architecture and to some extent even the GS some performance benefits by minimizing the number of requests made to the servers as well as doing some rudimentary input validation (as opposed to burdening Apple's servers with totally invalid requests). + Requrements =========== -- SOAP support in your PHP. -- GSX account with the "Can access Web Services" privilege enabled +- SOAP support in your PHP installation +- A GSX account with the "Can access Web Services" privilege enabled Usage ===== Best illustrated with a simple example: - <?php +```php +<?php + + include 'gsxlib/gsxlib.php'; + $gsx = GsxLib::getInstance($sold_to, $username, $password); + $info = $gsx->warrantyStatus($serialnumber); + echo $info->productDescription; + > MacBook Pro (15-inch 2.4/2.2GHz) - include 'gsxlib/gsxlib.php'; - $gsx = GsxLib::getInstance($sold_to, $username, $password); - $info = $gsx->warrantyStatus($serialnumber); - echo $info->productDescription; - > MacBook Pro (15-inch 2.4/2.2GHz) - - ?> - -If you're in the US, remember to set the fifth argument to the constructor to 'am'. +?> +``` + +US users should remember to set the fifth argument of the constructor to 'am'. + gsxcl ===== |