1
我试图把这个行:为什么Pocket API总是返回403 Forbidden?
curl https://getpocket.com/v3/oauth/authorize --insecure -X POST -H "Content-Type: application/json" -H "X-Accept: application/json" -d "{\"consumer_key\":\"61999-492f79db0bd3292f0b4...1\",\"code\":\"c9166709-0c45-2b1f-a22f-e...r\"}"
,每次我得到403 Forbidden
。
我不知道并理解这个原因。
有谁知道吗?我试了一下通过Python的太:
import requests
auth_params = {'consumer_key': 'key_here', 'redirect_uri': 'https://www.twitter.com/'}
tkn = requests.post('https://getpocket.com/v3/oauth/request', data=auth_params)
tkn.content
上面的代码给了我一个代码:
usr_params = {'consumer_key': 'key_here', 'code': 'code_here'}
usr = requests.post('https://getpocket.com/v3/oauth/authorize', data=usr_params)
usr.content
在这里我得到403
了。
我该如何解决这个问题?
卷发器:https://shibukawa.github.io/curl_as_dsl/index .html和http://curl.trillworks.com/ – furas