UBER Python API returns uber_rides.errors.ClientError
<p>I wrote a piece of code to get product information. I used the code provided in their <a href="https://github.com/uber/rides-python-sdk" rel="nofollow">github</a>.</p>

<pre><code>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
</code></pre>

<p>It returns the following error:</p>

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

<p>Why this happening. What is wrong with my code ?</p>

<p>I got the answer. The code is working perfect. One character was missing in the <code>server_token</code> I provided.</p>

python uber-api