Lyft

FREE
-/10
Popularity Score
-
Latency
-
Success Rate

Lyft API Documentation

Embed Lyft ride-share functionality into your app.

View API Details
POSTcancelRequestedRide
POSTcheckDriverComeTiming
POSTestimateRideCost
POSTgetAccessToken
POSTgetMe
POSTgetMyRides
POSTgetMySingleRide
POSTgetNearbyAvailableDrivers
POSTgetRideTypes
POSTrefreshAccessToken
POSTrequestRide
POSTupdateRideDestination
POSTcancelRequestedRide

Allows your application to cancel the specified ride.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
rideIdSTRING
REQUIREDId of the ride
accessTokenSTRING
REQUIREDAccess Token received from Lyft
Optional Parameters
cancelConfirmationTokenSTRING
OPTIONALCancel confirmation token
Code Snippet
unirest.post("https://Lyftvolodimir-kudriachenkoV1.p.rapidapi.com/cancelRequestedRide")
.header("X-RapidAPI-Host", "Lyftvolodimir-kudriachenkoV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://Lyftvolodimir-kudriachenkoV1.p.rapidapi.com/cancelRequestedRide
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://Lyftvolodimir-kudriachenkoV1.p.rapidapi.com/cancelRequestedRide")
.header("X-RapidAPI-Host", "Lyftvolodimir-kudriachenkoV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication