我有一個使用Google Blogger API和oauth 2.0的python腳本。現在問題是有一個功能blogger.posts.insert
。它返回一個錯誤「HTTP 403'Rate Limited Exceeded'」。Google Blogger v3 API中的HTTP 403'速率限制超出'錯誤
有誰能告訴我如何解決這個問題嗎? 我也試圖在python中做同樣的事情,錯誤仍然存在。
注意:blogger.posts.update
功能完美!
credentials = storage.get()
http = httplib2.Http()
http = credentials.authorize(http)
service = build('blogger', 'v3', http=http)
TheBlogID = 'somethingHERE'
print "fetching posts, please wait!"
posts = service.posts()
thisposties = posts.list(blogId=TheBlogID).execute()
posts.insert(blogId=TheBlogID, # THIS IS THE PROBLEM
body=body,
isDraft=False, fetchImages=False, fetchBody=True).execute()
編輯:此外,我必須告訴你,只需幾分鐘前,我創建的證書由這裏選擇Web Application
:https://console.developers.google.com/apis/credentials?
但停止增加50名經過工作,所以我切換到other
。此外,我試圖創建一個新的證書與Web Application
但urn:ietf:wg:oauth:2.0:oob
重定向URL否認所以目前我使用other
作爲憑據的OAuth 2.0,並收到此錯誤試圖插入時...
我也試過從在這裏:https://developers.google.com/apis-explorer/#p/blogger/v3/
同樣的錯誤......我假設這是與谷歌API的一些bug ......
您發送請求的頻率如何?我認爲這可能是您從API獲得的響應,因爲您發送的請求過多(而不是您的代碼存在問題) –
從一開始就無法正常工作。我沒有發送一個循環,所以它應該至少在腳本第一次調用這個函數的時候起作用,但是不幸的是沒有。 – ryspbsk
別人也在使用這些憑據嗎? –