Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7164113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:00:59+00:00 2026-05-28T14:00:59+00:00

I am trying to get the profiles feed from my Google Apps domain using

  • 0

I am trying to get the profiles feed from my Google Apps domain using the gdata library supplied my Google for Python. This is my code

import atom
import gdata.auth
import gdata.contacts
import gdata.contacts.service

gd_client = gdata.contacts.service.ContactsService()
gd_client.email = 'name@domain.com'
gd_client.password = 'password'
gd_client.source = 'madeupgibberish'
gd_client.account_type = 'HOSTED'
gd_client.contact_list = 'domain.com'
gd_client.ProgrammaticLogin()

def PrintFeed(feed):
  for i, entry in enumerate(feed.entry):
    print '\n%s %s' % (i+1, entry.title.text)

max_results = raw_input(
    'Enter max return: ')
feed_uri = gd_client.GetProfilesFeed()
query = gdata.contacts.service.ContactsQuery(feed_uri)
print(feed_uri)
query.max_results = max_results
#query.orderby='title'
feed = gd_client.GetContactsFeed(query.ToUri())
# Use the print feed method defined above.
PrintFeed(feed)
print(feed_uri)
#print feed

f = open('c:\\python27\\junk.xml', 'w')
f.write(str(feed))
f.close()

When I run this it returns:

C:\Python27\Lib\gdata-2.0.16>python contactAPI.py
Enter max return: 300
Traceback (most recent call last):
  File "contactAPI.py", line 27, in <module>
    feed_uri = gd_client.GetProfilesFeed()
  File "build\bdist.win-amd64\egg\gdata\contacts\service.py", line 294, in GetProfilesFeed
  File "build\bdist.win-amd64\egg\gdata\service.py", line 1108, in Get
gdata.service.RequestError: {'status': 403, 'body': 'Version 1.0 is not supported.', 'reason': 'Forbidden'}

I am able to use GetContactsFeed and other feeds, but I cannot get profiles. Any idea whats happening here or what I need to fix? Thank you in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:01:00+00:00Added an answer on May 28, 2026 at 2:01 pm

    The gdata.contacts.service uses the deprecated version of the API. You should use gdata.contacts.{client, data} instead}
    Here is a sample getting users profiles.

    import atom
    import gdata.auth
    import gdata.contacts
    import gdata.contacts.client
    email = 'admin@domain.com'
    password = 'password'
    domain = 'domain.com'
    
    gd_client = gdata.contacts.client.ContactsClient(domain=domain)
    gd_client.ClientLogin(email, password, 'madeupgibberish')
    def PrintFeed(feed):
      for i, entry in enumerate(feed.entry):
        print '\n%s %s' % (i+1, entry.title.text)
    
    feed_link = atom.data.Link(gd_client.GetFeedUri(kind='profiles'))
    while feed_link:
      profiles_feed = gd_client.GetProfilesFeed(uri=feed_link.href)
      PrintFeed(profiles_feed)
      feed_link = profiles_feed.GetNextLink()
    

    The library’s contact_sample.py and unshare_profiles.py work with the client, data files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying get values from a GridView using the following code: foreach (GridViewRow row
I'm trying to get a list of all contacts within my Google Apps domain.
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
I am trying to get a list of all Google Apps users of a
Here's an ASPX code snippet from when I was trying to get multiple values
I'm trying to access out-of-network profiles using the LinkedIn API, following the instructions from
Trying to get my css / C# functions to look like this: body {
Trying to get comfortable with jQuery and I have encountered some sample code that
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.