uber-0.1.1.0: Uber client for Haskell

Safe HaskellNone
LanguageHaskell2010

Uber.Client

Synopsis

Documentation

getProducts :: Settings -> LatLng -> IO (Response GET ProductsR) Source #

Returns information about the Uber products offered at a given location

getProductDetails :: Settings -> ProductId -> IO (Response GET ProductDetailsR) Source #

Returns information aboit a specific Uber product

getPriceEstimate :: Settings -> PriceEstimateParams -> IO (Response GET PriceEstimateR) Source #

Returns an estimated price range for each product offered at a given location

getTimeEstimate :: Settings -> TimeEstimateParams -> IO (Response GET TimeEstimateR) Source #

Returns ETAs for all products offered at a given location

getHistory :: Settings -> HistoryParams -> IO (Response GET HistoryR) Source #

Returns data about a user’s activity with Uber

getUserInfo :: Settings -> IO (Response GET UserInfoR) Source #

Returns information about the Uber user that has authorized with the application

requestARide :: Settings -> RideReqParams -> IO (Response POST RequestRideR) Source #

Requests a ride on behalf of an Uber user

getCurrentRequest :: Settings -> IO (Response GET CurrentRequestR) Source #

Returns the real-time details for an ongoing trip

updateCurrentRequest :: Settings -> RidePatchParams -> IO (Response PATCH CurrentRequestR) Source #

Updates an ongoing request’s destination

cancelCurrentRequest :: Settings -> IO (Response DELETE CurrentRequestR) Source #

Cancels the user's current trip

getRideEstimate :: Settings -> RideReqParams -> IO (Response POST RideEstimateR) Source #

Gets a ride's estimates given the desired product, start, and end locations

getRideStatus :: Settings -> RideId -> IO (Response GET RideR) Source #

Gets the status of an ongoing or completed trip

cancelRide :: Settings -> RideId -> IO (Response GET RideR) Source #

Cancels an ongoing Request on behalf of a rider

updateRide :: Settings -> RideId -> RidePatchParams -> IO (Response PATCH RideR) Source #

Updates an ongoing request’s destination

getTrackingMap :: Settings -> RideId -> IO (Response GET TrackingMapR) Source #

Gets a map for an accepted Request

getReceipt :: Settings -> RideId -> IO (Response GET ReceiptR) Source #

Gets the receipt information of the completed request

getAddress :: Settings -> PlaceId -> IO (Response GET PlaceR) Source #

Retrieves home and work addresses from an Uber user's profile

updateAddress :: Settings -> PlaceId -> Address -> IO (Response PUT PlaceR) Source #

Updates home and work addresses for an Uber user's profile

getPaymentMethods :: Settings -> IO (Response GET PaymentMethodR) Source #

Retrievs the list of user’s available payment methods

createReminder :: Settings -> ReminderParams -> IO (Response POST CreateReminderR) Source #

Sets a reminder for a future trip

getReminderInfo :: Settings -> ReminderId -> IO (Response GET ReminderR) Source #

Gets the status of an existing ride reminder

deleteReminder :: Settings -> ReminderId -> IO (Response DELETE ReminderR) Source #

Removes any reminder in the pending state from being sent