Minor style changes.
This commit is contained in:
parent
de51878a83
commit
e45984b49c
1 changed files with 13 additions and 1 deletions
|
@ -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']:
|
||||||
|
|
Loading…
Reference in a new issue