jonathanzong / node-oneride

Uber, Lyft, Sidecar, Summon aggregate ridesharing API for Node.js. Started at YC Hacks 2014.
MIT License
11 stars 4 forks source link

SideCar "ping" endpoint needs to be changed #3

Open canzhiye opened 10 years ago

canzhiye commented 10 years ago

/getBestMatch isn't the actual "ping" endpoint, even though we've been treating it as such. I'll run Charles app and confirm what the actual one is.

canzhiye commented 10 years ago

(CHECK THIS ON iOS DEVICE FIRST)

I checked with Charles app re: how Sidecar works.

It appears to ping /getBestMatch until the the user puts in a destination. Then it pings /getDriverListStatus.

When the user requests a ride, the app calls /vehicles/getJobAssignedData/#/#/1 (twice). It doesn't ping anymore after the ride is confirmed. When the ride is cancelled, /getBestMatch is called again ONCE, then the app resumes pinging /getDriverListStatus.