Reputation: 1
We are creating an application for Uber Driver and we found that we can authenticate the driver using Drivers Api, but we found that Riders and Drivers use the same api endpoint.
So how to know if the user is an Uber Driver or Rider? and how to know if the driver is verified driver and all his documents are approved or not?
Thanks in advance.
Upvotes: 0
Views: 177
Reputation: 857
When you authenticate your user - you have following endpoint available to get driver info: "GET /v1/partners/me".
The Profile endpoint returns the profile of the authenticated driver. A profile includes information such as name, email, rating, and activation status.
Similar endpoint to get rider info is: "GET /v1.2/me". The Rider User Profile endpoint returns information about the Uber user that has authorized with the application.
Upvotes: 1