From de51878a831c6c2e13e2fccc7e9b42c3d64ba2dc Mon Sep 17 00:00:00 2001 From: Simon Elliston Ball Date: Thu, 8 Jan 2015 19:03:32 +0000 Subject: [PATCH] Enable family mode refresh locations now includes all devices associated with your family, not just the main account used. --- pyicloud/services/findmyiphone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyicloud/services/findmyiphone.py b/pyicloud/services/findmyiphone.py index 01900c6..e3e8564 100755 --- a/pyicloud/services/findmyiphone.py +++ b/pyicloud/services/findmyiphone.py @@ -35,7 +35,7 @@ class FindMyiPhoneServiceManager(object): """ host = self._service_root.split('//')[1].split(':')[0] self.session.headers.update({'host': host}) - req = self.session.post(self._fmip_refresh_url, params=self.params) + req = self.session.post(self._fmip_refresh_url, params=self.params, data='{"clientContext":{"fmly":true,"shouldLocate":true,"selectedDevice":"all"}}') self.response = req.json() for device_info in self.response['content']: