我写了一段代码来获取产品信息。我使用了他们的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.
为什么会这样。我的代码怎么了?你知道吗
我知道答案了。代码运行得很好。我提供的
server_token
中缺少一个字符。你知道吗相关问题 更多 >
编程相关推荐