From 68d471d690a4d83e7a30507ec205afebffc0572b Mon Sep 17 00:00:00 2001 From: eriktobben Date: Wed, 3 Feb 2016 19:59:46 +0100 Subject: Update README.md Added Find My iPhone to FAQ. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3bbcfb0..08d93de 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,18 @@ ensures the certificate is sent with each request and you only have to define th A: First, install [simpletest][3], then: $ GSX_DEBUG=1 GSX_TECHID=123456 GSX_SN=12345678 GSX_SHIPTO=123456 GSX_USER=me@example.com GSX_KEYPASS='MySuperSecretKey' GSX_SOLDTO=123456 GSX_CERT=/path/to/my/cert.chain.pem php runtests.php + + +### Q: How can I get Find My iPhone status? + +A: Use the following code: + + $warrantylookup = $gsx->warrantyStatus($serialnumber); + if (strpos($warrantylookup->activationLockStatus,'Find My iPhone is active') !== false) { + $fmid = 1; + } else { + $fmid = 0; + } License -- cgit v1.2.3