("clicktocall", gc_backend.GCDialer._clicktocallURL),
("recent", gc_backend.GCDialer._inboxallURL),
("contacts", gc_backend.GCDialer._contactsURL),
- ("contactdetails", gc_backend.GCDialer._contactDetailURL),
]
password = sys.argv[2]
loginPostData = urllib.urlencode({
- 'Email' : username,
- 'Passwd' : password,
- 'service': "grandcentral",
- "ltmpl": "mobile",
- "btmpl": "mobile",
- "PersistentCookie": "yes",
+ 'username' : username,
+ 'password' : password,
})
try:
tokenGroup = gc_backend.GCDialer._accessTokenRe.search(forwardPage)
if tokenGroup is None:
+ print "="*60
print forwardPage
+ print "="*60
raise RuntimeError("Could not extract authentication token from GrandCentral")
token = tokenGroup.group(1)