ajit
ajit

Reputation: 27

Ola Android API issue

I am trying to integrate OLA api in android application

https://devapi.olacabs.com/v1/products?pickup_lat=12.9491416&pickup_lng=77.64298&category=mini

in header

X-APP-TOKEN: XXXXXXX

geting error message like below

{"code":"invalid_partner_key","message":"Partner key is not authorized"}

I am using link https://developers.olacabs.com/docs/ride-availablity

What is wrong?

Upvotes: 0

Views: 386

Answers (2)

user3782676
user3782676

Reputation: 51

Use https://sandbox-t1.olacabs.com/ instead of https://devapi.olacabs.com/ while making a ride availability api request

Upvotes: 1

Nitesh Pareek
Nitesh Pareek

Reputation: 362

pass the X-APP-TOKEN as string use Key which identifies the partner this X-APP_TOKEN get from ola developer console after register

Upvotes: 0

Related Questions