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 6190909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:40:16+00:00 2026-05-24T02:40:16+00:00

Try to use python-auth2 for my project, but I got: In [1]: import oauth2

  • 0

Try to use python-auth2 for my project, but I got:

In [1]: import oauth2 as oauth

In [2]: consumer_key='dijscrape.ep.io'

In [3]: consumer_secret='my-secret-here'

In [4]: REQUEST_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetRequestToken'

In [5]: consumer = oauth.Consumer(consumer_key, consumer_secret)

In [6]: client = oauth.Client(consumer)

In [7]: r, c = client.request(REQUEST_TOKEN_URL, "GET")

In [8]: print r
------> print(r)
{'status': '400', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'expires': 'Tue, 26 Jul 2011 13:38:13 GMT', 'server': 'GSE', 'cache-control': 'private, max-age=0', 'date': 'Tue, 26 Jul 2011 13:38:13 GMT', 'content-type': 'text/plain; charset=UTF-8'}

In [9]: print c
------> print(c)
parameter_absent
oauth_parameters_absent:scope

What it can be?

  • 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-24T02:40:17+00:00Added an answer on May 24, 2026 at 2:40 am

    Google requires a ‘scope’ parameter for the request_token uri.

    http://code.google.com/apis/accounts/docs/OAuth.html#prepScope

    So something like

    scope = "http://www.google.com/calendar/feeds/default/allcalendars/full"
    REQUEST_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetRequestToken?scope={0}'.format(scope)
    

    I notice you haven’t accepted an answer to any of the questions you’ve asked. If an answer helps, please remember to accept it by clicking the check mark next to the answer.

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

Sidebar

Related Questions

I try to use doctest from example from http://docs.python.org/library/doctest.html But when I run python
When I try to use curl or file_get_contents to read something like http://example.com/python/json/ from
I'm learning Python and I try to use Python Markdown in a gedit plugin.
In a project I work on we use a Python C module compiled from
i try to fetch data from web,but the page use a 302 redirect how
I'm trying to use Python's ctypes to work with a DLL, but I occasionally
I am try to use the xgoogle python library for the purpose of me
I use python-twitter to get the date of a tweet and try to parse
I try to use checkContour() function in new python api (cv2) and it do
I try to use this code for toggling text on the link: var showText=<span>Open</span>

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.