OLA API Integration giving error as invalid partner key
<p>I wanted to use OLA APIs for my project. So I followed the <a href="https://developers.olacabs.com/docs/overview" rel="nofollow">official docs</a>  of OLA and tried something as follow using python requests. This request expects response for ride estimate from source to destination.</p>

<pre><code>import requests

headers = {'X-APP-TOKEN' : "your_api_token"}
payload= {'pickup_lat': 12.9490936, 'pickup_lng': 77.67773056, 'drop_lat': 12.9190934, 'drop_lng': 77.1777356, 'category': 'micro'}
response = requests.get('https://devapi.olacabs.com/v1/products', params=payload, headers=headers)
print(response.json())
</code></pre>

<p>As mentioned in the docs I have included the <strong>X-APP-TOKEN</strong> in the request header as well. But I'm getting the following issue.</p>

<pre><code>{'code': 'invalid_partner_key', 'message': 'Partner key is not authorized'}
</code></pre>

<p>Any help would be highly appreciated.</p>

<p>You need to use the following url while testing(sandbox):</p>

<p><a href="http://sandbox-t.olacabs.com/v1/products" rel="nofollow">http://sandbox-t.olacabs.com/v1/products</a></p>

android python api