Uber-api 历史端点在授权后不工作
Uber-api endpoint for history is not working after authorization
我正在编写基于优步 apis 的应用程序。
为此,我在使用 oauth2 进行身份验证时使用 'profile history_lite request' 作为范围。身份验证后,我正在调用端点:-
'https://api.uber.com/v1/history'
这给出错误 401:-
"message":"Requires at least one scope. Available scopes: ","code":"unauthorized"
但其他端点“https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823”正在工作。
第一个端点是否需要任何其他许可才能工作,或者我遗漏了什么?
我使用 python 请求库进行 api 调用,看起来像:-
res = requests.get(endpoint, headers=headers)
headers 是一个映射,其值为
{'Content-Type': 'application/json', 'Authorization': 'Bearer xxx-acces-token-xxx'}
/v1/history
(需要 history
范围)已被弃用,不再可用。
/v1.1/history
仍然可用,可以使用 history_lite
范围访问。
我正在编写基于优步 apis 的应用程序。 为此,我在使用 oauth2 进行身份验证时使用 'profile history_lite request' 作为范围。身份验证后,我正在调用端点:-
'https://api.uber.com/v1/history'
这给出错误 401:-
"message":"Requires at least one scope. Available scopes: ","code":"unauthorized"
但其他端点“https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823”正在工作。
第一个端点是否需要任何其他许可才能工作,或者我遗漏了什么?
我使用 python 请求库进行 api 调用,看起来像:-
res = requests.get(endpoint, headers=headers)
headers 是一个映射,其值为
{'Content-Type': 'application/json', 'Authorization': 'Bearer xxx-acces-token-xxx'}
/v1/history
(需要 history
范围)已被弃用,不再可用。
/v1.1/history
仍然可用,可以使用 history_lite
范围访问。