Skip to content

Commit

Permalink
Add family sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
zuyan9 authored Apr 19, 2018
1 parent aef3ac8 commit 65d9896
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FMIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ def FMIP(username, password):
'X-Apple-AuthScheme': '%s' % auth_type,
'User-Agent': 'FindMyiPhone/500 CFNetwork/758.4.3 Darwin/15.5.0',
}
request = urllib2.Request(url, None, headers)
data = {
'clientContext': {
'appVersion': '7.0', # Not adding this will cause http error 503
'fmly': 'true',
}
}
json_data = json.dumps(data)
request = urllib2.Request(url, json_data, headers)
request.get_method = lambda: "POST"
try:
response = urllib2.urlopen(request)
Expand Down

0 comments on commit 65d9896

Please sign in to comment.