我想通过url https://trello.com/b/VLtX3aOw/board_name.json获得私有的trello板数据
当我使用requests.get(json_url)时,unauthorized permission requested无法理解如何使用OAuth 1.0 --我已经得到了api_key、令牌和api_secret。
复制注释:在尝试时获得相同的错误:
从requests_oauthlib import OAuth1Session trl = OAuth1Session('trello_api_key',client_OAuth1Session=‘trello_api_’) url = 'trello.com/b/VLtX3aOw/board_name.json‘r= trl.get(url)
发布于 2019-09-19 11:06:31
1day
https://trello.com/app-key/,获取api_key和api_secret
https://trello.com/1/authorize?expiration=1day&name=MyPersonalToken&scope=read&response_type=token&key={YourAPIKey}的令牌,您也可以使用expiration=never代替api_secret,这段代码:from requests_oauthlib import OAuth1Session api_key = your_api_key api_secret = your_api_secret token = your_token trello = OAuth1Session(api_key, api_secret, token) url = 'https://trello.com/b/VLtX3aOw/board_name.json' r = trello.get(url) print(r.json())
https://stackoverflow.com/questions/58006680
复制相似问题