This script is an IFTTT Webhook service that can be used as an action from an Uber "ride completed" trigger.
TBC
- Create an IFTTT account and associate it with your Uber account
- Click to create a new Applet
- For the trigger service, select "Uber" and the "Ride completed" trigger
- Choose appropriate pickup/dropoff locations (most likely "Anywhere")
- For the action service, select "Webhook" and the "Make a web request" action
- Enter the URL in the format
https://username:password@example.com
- Select POST method and
application/x-www-form-url-encoded
content type - Set the body to the following:
CompletedAt={{CompletedAt}}&RideType={{RideType}}&VehicleMakeModel={{VehicleMakeModel}}&VehicleLicensePlate={{VehicleLicensePlate}}&DriverName={{DriverName}}&DriverPhoneNumber={{DriverPhoneNumber}}&DriverPhoto={{DriverPhoto}}&SurgeMultiplier={{SurgeMultiplier}}&PickupLat={{PickupLat}}&PickupLong={{PickupLong}}&DropoffLat={{DropoffLat}}&DropoffLong={{DropoffLong}}&TripMapImage={{TripMapImage}}
- Save the Applet.
TBC
- Review data formats sent by IFTTT
- Check if token refresh works
- Check if RideType can be used to differentiate account type