第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Gmail的OAuth2 IMAP訪問范圍是什么?

Gmail的OAuth2 IMAP訪問范圍是什么?

一只斗牛犬 2021-03-05 11:47:19
我正在使用google-api-python-client和imapclient庫來嘗試獲取對(duì)Gmail的IMAP訪問。通過身份驗(yàn)證流程時(shí),出現(xiàn)“無效范圍”錯(cuò)誤。我已經(jīng)嘗試過https://mail.google.com和https://mail.google.com/mail/feed/atom作為范圍。這是我想做的事情:from oauth2client.appengine import OAuth2DecoratorSCOPE = "https://mail.google.com"# SCOPE = "https://mail.google.com/mail/feed/atom"oauth2decorator_gmail = OAuth2Decorator(client_id="CLIENT_ID",                                   client_secret="CLIENT_SECRET",                                   scope=SCOPE,                                   callback_path='/mycallbackurl')class AuthenticateSyncServices(webapp2.RequestHandler):    @oauth2decorator_gmail.oauth_required    def get(self):        self.response.write("Authenticated")這是堆棧跟蹤:INFO     2013-06-06 08:56:36,686 client.py:1304] Failed to retrieve access token: {  "error" : "invalid_scope"}Traceback (most recent call last):  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.1/webapp2.py", line 1536, in __call__    rv = self.handle_exception(request, response, e)  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.1/webapp2.py", line 1530, in __call__    rv = self.router.dispatch(request, response)  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.1/webapp2.py", line 1278, in default_dispatcher    return route.handler_adapter(request, response)
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 213 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)