How to get an active request with the Uber API

I am writing an iOS app that uses the uber API. I'm trying to get the current active request_id via Uber API, however GET request for / v1 / requests doesn't work. As you can see from the docs, this endpoint is not available, however it makes sense that getting the currently active request_id is something very useful. The v1.1 and v1.2 user activity endpoints only return completed requests. User profile endpoint does not return trip / request information.

Has anyone found a way to do this?

+3


source to share


2 answers


It seems that it is currently not possible to get an active request_id unless you have made a ride request from your application.

I want to check the progress of an active uber ride. This ride is requested on the UBER app. Then I want my custom app to monitor the status of the request_id status (drive start, car location, and drive complete).



It doesn't look like the current API.

+1


source


If you want to evaluate a request for a real ride or make a request for a real ride, you may need to use POST instead of GET as per the Uber doc:

POST /v1/requests

POST /v1/requests/estimate

      

If you want to check the status of a completed request, you can use GET:

GET /v1/requests/{request_id}

      



If you want to cancel your earlier request, you can use DELETE:

DELETE /v1/requests/{request_id}

      

The Uber doc looks more like a card and an acknowledgment: https://developer.uber.com/v1/endpoints/

Or you can check out UberKit , which is a thin wrapper for the Uber API.

0


source







All Articles