Hi people,
I'm having problems when trying to retreive google contacts using
programatic login, let me show you my code...
class MainPage(webapp.RequestHandler):
def get(self):
gd_client = gdata.contacts.service.ContactsService()
gd_client.email = '[EMAIL PROTECTED]'
gd_client.password = 'password'
gd_client.source = 'exampleCo-exampleApp-1'
gd_client.ProgrammaticLogin()
when the code executes I get the following error...
Traceback (most recent call last):
File "D:\google_appengine\google\appengine\ext\webapp\__init__.py",
line 499, in __call__
handler.get(*groups)
File "D:\google_appengine\src\gcontacts\main.py", line 22, in get
gd_client.ProgrammaticLogin()
File "D:\google_appengine\src\gdata\gdata\service.py", line 491, in
ProgrammaticLogin
headers={'Content-Type':'application/x-www-form-urlencoded'})
File "D:\google_appengine\src\gcontacts\atom\http.py", line 93, in
request
connection = self._prepare_connection(url, all_headers)
File "D:\google_appengine\src\gcontacts\atom\http.py", line 234, in
_prepare_connection
return HttpClient._prepare_connection(self, url, headers)
File "D:\google_appengine\src\gcontacts\atom\http.py", line 157, in
_prepare_connection
return httplib.HTTPSConnection(url.host)
AttributeError: 'module' object has no attribute 'HTTPSConnection'
Any idea?
I'm using programatic login because authsub login was giving me a lot
of headaches , maybe I need to study a more python/GAE.
if you have a working sample of google contacts service using authsub
login , that would be very useful too!
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---