Last active
September 8, 2018 12:24
-
-
Save avivl/183d27f20cc1d8742f9f74853299790f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api = PyiCloudService(user_mail, password) | |
location = api.iphone.location() | |
if location['isOld']: | |
fulfillment_text = "Can't get an accurate location for %s" % Name | |
body = '{"fulfillmentText":"%s"}' % fulfillment_text | |
return body | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment