UBER Python API返回UBER_座驾.错误.客户

2024-04-26 21:29:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我写了一段代码来获取产品信息。我使用了他们的github中提供的代码。你知道吗

from uber_rides.session import Session
session = Session(server_token="key_given_here")

from uber_rides.client import UberRidesClient
client = UberRidesClient(session)
response = client.get_products(12.9242845,77.582953)
products = response.json.get('products')
print products

它返回以下错误:

uber_rides.errors.ClientError: The request contains bad syntax or cannot be filled due to a fault from the client sending the request.

为什么会这样。我的代码怎么了?你知道吗


Tags: the代码fromimportclientget产品response