-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request rides #35
Comments
@steverob thanks for the feedback - and really good idea (definitely a product gap for this CLI). I actually thought about requesting rides via the command line but it's non-trivial. I'm sure you've looked at the developer docs. Basically, the biggest technical task is implementing OAuth2 (would be interested in your take on how to successfully accomplish this). A complicating factor in all of this is that I made the decision to expose the server token (#19) for ease of use on the consumer-side and also because all of the requests that this CLI makes are I feel queasy about building user mutating actions on top of an exposed server token. One solution is to create a new Uber developer app and sufficiently obfuscate its server token (as I should have done originally) / ask people to supply their own tokens, and perform the relevant actions on their behalf. Both of these present interesting technical challenges in their own right - would also love your feedback! Looking forward to the discussion! |
Presenting the driver's location in realtime on a CLI is also challenging. |
@jaebradley Hey, thanks for your reply. And sorry about the late reply. Yes I've looked into the docs and OAuth2 is the trickiest bit here. It looks like we have to go through a web flow to get the auth tokens. Wish Uber had something like what Dropbox had where they would simply display the request token which can be pasted into the console when authorizing dropbox cli. There is something we could do though but its very hacky. We could setup an application on Uber and set the But now we run into the issue of having our keys exposed ( Huh, this is pretty tricky.. |
@jaebradley any further thoughts? :) sorry if I'm bugging you. I dont wanna start working on something that might not be the right thing for us at this time. |
@steverob hey thanks for bumping this thread - I've been busy consolidating code in some other repos and haven't had time to reinvestigate this. Personally / selfishly, my next goals with this project are to increase the code quality to a point where I'm comfortable - something I hope to accomplish in the next one or two months (slightly sandbagging here). After that, I'll start considering the technical challenges that have been presented in this thread but the way I'm thinking about all this is that before I do any additional feature work, I'd like to consolidate the code base. That being said, I welcome you to tackle some of the technical tasks around OAuth 2, etc. and would love to collaborate. |
@steverob @jaebradley this is probably not the best option and not 100% thought out but how about this:
worth noting that you'd need to have the client_secret to exchange the auth code for an access_token... Ideally, users would have an own app and basically set the server_token and their client_secret before using uber-cli. |
This is a really neat tool. I was hoping I could contribute a feature to request rides as well. But I was little surprised this has not been attempted here yet. So just wanted to check with you @jaebradley whether you think its a good idea or not?
Once you give me the go ahead, I'll start working on this. 👍 Thanks.
The text was updated successfully, but these errors were encountered: