我正在编写一个基于uber的应用程序。为此,我使用'profile history_lite请求‘作为作用域,同时使用oauth2进行身份验证。身份验证之后,我将调用端点:-
'https://api.uber.com/v1/history‘
这导致错误401:-“消息”:“至少需要一个范围。可用范围:",”代码“:”未经授权“
但其他端点“https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823”正在工作。
我是否需要第一个端点的任何其他许可才能工作,或者我缺少了什么?
我使用python请求库进行api调用,类似于:-
res = requests.get(endpoint, headers=headers) 标头是一个值为
{'Content-Type': 'application/json', 'Authorization': 'Bearer xxx-acces-token-xxx'}发布于 2015-03-31 23:16:07
/v1/history (它需要history作用域)已被废弃,不再可用。
/v1.1/history仍然可用,并且可以使用history_lite范围进行访问。
https://stackoverflow.com/questions/29370695
复制相似问题