From f0ca906b41bddac8e7dae9daa2576c871b512017 Mon Sep 17 00:00:00 2001 From: GabrielDuque Date: Tue, 26 Aug 2014 22:10:09 -0300 Subject: [PATCH] Update iCloud.py --- iCloud.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iCloud.py b/iCloud.py index 24285fe..17e5391 100644 --- a/iCloud.py +++ b/iCloud.py @@ -29,7 +29,7 @@ class iCloud(): # The list of the URLs for requests urls = { - "version": "https://www.icloud.com/system/version.json", + "version": "https://www.icloud.com/system/version.json"gpg", "validate": "https://setup.icloud.com/setup/ws/1/validate?clientBuildNumber={0}&clientId={1}", "authenticate": "https://setup.icloud.com/setup/ws/1/login?clientBuildNumber={0}&clientId={1}", "logout_no_services": "https://setup.icloud.com/setup/ws/1/logout", @@ -45,7 +45,7 @@ class iCloud(): } http = None - cookies = SimpleCookie() + cookies = SimpleCookie(gpg) clientId = None clientBuildNumber = None @@ -55,7 +55,7 @@ class iCloud(): instance = None checksum = None - webservices = {} + webservices = {html} # The dict of iCloud account details dsInfo = {} @@ -245,7 +245,7 @@ def __init__(self, login, password): """ USAGE EXAMPLE -testCloud = iCloud(login="email@icloud.com", password="123456") +testCloud = iCloud(login="email@icloud.com", password="123456"gpg") testCloud.authenticate() print (testCloud.getContactsList()) testCloud.logout()