uber-ruby
uber-ruby copied to clipboard
A Ruby Interface to the Uber API
Trying to allow users to book uber rides using this gem on rails 6.1.4 and ruby 3.0.2 and getting the error in faraday. I tried upgrading the faraday gem and...
The idea is to have a RELP console to test the library.
Should be placed in every single Ruby file the magic comment ```ruby #frozen_string_literal: true ```
tested and change all api to v1.2
Business API - https://developer.uber.com/docs/businesses/introduction Checklist - [ ] GET /business/trips/{trip_id}/receipt - [ ] GET /business/trips/{trip_id}/receipt/pdf_url - [ ] GET /business/trips/{trip_id}/invoice_urls
The gem breaks when the distance between two coordinates is over 100 miles. #34 is a PR that fixes the problem just for reference - be warned that it breaks...
With Sandbox mode enabled, a successful `trip_request` can be made and the `Response: #` is returned. However, the `request_id` (from invoking `request_id` on this object) is nil.
The response from `v1/me` and `v1.2/me` looks the same however the returned object doesn't have `rider_id` attribute. This PR adds `rider_id` attribute to User model
_Do not merge this yet_ @sishen : I'm using raise_error middleware of Faraday and passing the message to `Uber::Error.from_error` which raises exception based on status code. Though, this is not...