I changed it, but it didn't make any difference, so I poked around and found
that the call goes into the ChangePhoto() in gdata/contacts/service.py. I
then changed the gdata.MediaSource references in this method to
gdata.data.MediaSource, and I got this error:
Traceback (most recent call last):
File "/Users/hdara/bin/scrape_contact.py", line 167, in <module>
main()
File "/Users/hdara/bin/scrape_contact.py", line 164, in main
change_photo(options, None, options.contacturl, options.photo_url)
File "/Users/hdara/bin/scrape_contact.py", line 138, in change_photo
content_type='image/jpg')
File
"/Users/hdara/bin/python/lib/python2.6/site-packages/gdata/contacts/service.py",
line 245, in ChangePhoto
return self.Put(payload, url)
File
"/Users/hdara/bin/python/lib/python2.6/site-packages/gdata/service.py", line
1395, in Put
media_source=media_source, converter=converter)
File
"/Users/hdara/bin/python/lib/python2.6/site-packages/gdata/service.py", line
1358, in PostOrPut
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': 'Attribute name
"object" associated with an element type
"gdata.data.MediaSource" must be followed by the ' = '
character.', 'reason': 'Bad Request'}
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html