Minor style changes.

This commit is contained in:
Adam Coddington 2015-01-10 11:21:30 -08:00
parent de51878a83
commit e45984b49c

View file

@ -35,7 +35,19 @@ class FindMyiPhoneServiceManager(object):
""" """
host = self._service_root.split('//')[1].split(':')[0] host = self._service_root.split('//')[1].split(':')[0]
self.session.headers.update({'host': host}) self.session.headers.update({'host': host})
req = self.session.post(self._fmip_refresh_url, params=self.params, data='{"clientContext":{"fmly":true,"shouldLocate":true,"selectedDevice":"all"}}') req = self.session.post(
self._fmip_refresh_url,
params=self.params,
data=json.dumps(
{
'clientContext': {
'fmly': True,
'shouldLocate': True,
'selectedDevice': 'all',
}
}
)
)
self.response = req.json() self.response = req.json()
for device_info in self.response['content']: for device_info in self.response['content']: