dorosh / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 0 forks source link

Profiles example does not work for Google Apps account #576

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install gdata-python-client-2.0.15.
2. Try to run the samples/contacts/profiles_example.py for my Google Apps 
account.

What is the expected output? What do you see instead?

Expected output would be a list of contacts on my Google Apps account.

What I see instead is:

Traceback (most recent call last):
  File "./profiles_example.py", line 262, in <module>
    main()
  File "./profiles_example.py", line 259, in main
    sample.Run()
  File "./profiles_example.py", line 209, in Run
    self.ListAllProfiles()
  File "./profiles_example.py", line 160, in ListAllProfiles
    feed = self.gd_client.GetProfilesFeed()
  File "/Users/rvanmiddlesworth/dev/contact-sync/gdata-2.0.15/src/gdata/contacts/service.py", line 294, in GetProfilesFeed
    converter=gdata.contacts.ProfilesFeedFromString)
  File "/Users/rvanmiddlesworth/dev/contact-sync/gdata-2.0.15/src/gdata/service.py", line 1108, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 403, 'body': 'Version 1.0 is not 
supported.', 'reason': 'Forbidden'}

What version of the product are you using?

gdata-2.0.15

Please provide any additional information below.

I am the administrator of the account, so this cannot be a permissions issue.

Original issue reported on code.google.com by r...@vanmiddlesworth.org on 23 Dec 2011 at 1:23

GoogleCodeExporter commented 9 years ago
Hello,

The profiles_example sample runs on deprecated modules (contacts.service) 
whereas the contacts_example and unshare_profiles run on the new supported 
modules (contacts.{client,data}).
Have you tried running those (be careful, the unshare_profiles will remove all 
of your domain's profile from the autocomplete).

Best,
Alain

Original comment by ala...@google.com on 27 Dec 2011 at 4:54