kulpa / google-api-python-client

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

Google+ support example #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Google+ has limited read methods publicly available.
https://developers.google.com/+/api/

I tried editing the Buzz Appspot Python example to work with Google+ but 
couldn't get it to work.

I created a 
/apiclient/contrib/plus/future.json

main.py

---
scope='https://www.googleapis.com/auth/plus.me'

---
      service = build("plus", "v1", http=http)
      people = service.people()
      me = people.get(userId='me').execute()
      path = os.path.join(os.path.dirname(__file__), 'me.html')
      logout = users.create_logout_url('/')
      self.response.out.write(
          template.render(
              path, {'me': me,
                     'logout': logout
                     }))

---

My error:
HttpError: <HttpError 403 when requesting 
https://www.googleapis.com/plus/v1/people/me?alt=json returned "Daily Limit 
Exceeded. Please sign up">

See: http://chainrxn-plus.appspot.com/

The daily limit is not the issue (have credits), it seems the oAuth credential 
are not correctly served, because this is the same error when you visit the API 
endpoint directly.

Who can checkin a working example of Google+ /people/me, or look into the issue.

Original issue reported on code.google.com by ymsch...@gmail.com on 14 Oct 2011 at 12:21

GoogleCodeExporter commented 9 years ago
Google+ API Samples are hosted here:

  http://code.google.com/p/google-plus-python-starter/

Original comment by jcgregorio@google.com on 14 Oct 2011 at 1:00