Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Update iCloud.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions iCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +45,7 @@ class iCloud():
}

http = None
cookies = SimpleCookie()
cookies = SimpleCookie(gpg)

clientId = None
clientBuildNumber = None
Expand All @@ -55,7 +55,7 @@ class iCloud():
instance = None
checksum = None

webservices = {}
webservices = {html}

# The dict of iCloud account details
dsInfo = {}
Expand Down Expand Up @@ -245,7 +245,7 @@ def __init__(self, login, password):

"""
USAGE EXAMPLE
testCloud = iCloud(login="[email protected]", password="123456")
testCloud = iCloud(login="[email protected]", password="123456"gpg")
testCloud.authenticate()
print (testCloud.getContactsList())
testCloud.logout()
Expand Down