{"id":21487234,"url":"https://github.com/dtinth/ubr","last_synced_at":"2025-03-17T10:14:42.116Z","repository":{"id":34497700,"uuid":"38438243","full_name":"dtinth/ubr","owner":"dtinth","description":"Request an Uber from the command line","archived":false,"fork":false,"pushed_at":"2015-07-02T16:57:28.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T06:08:37.924Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtinth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-02T14:44:02.000Z","updated_at":"2021-09-16T21:36:12.000Z","dependencies_parsed_at":"2022-08-24T11:40:08.166Z","dependency_job_id":null,"html_url":"https://github.com/dtinth/ubr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fubr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fubr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fubr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fubr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtinth","download_url":"https://codeload.github.com/dtinth/ubr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014187,"owners_count":20383716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby"],"created_at":"2024-11-23T13:27:33.967Z","updated_at":"2025-03-17T10:14:40.958Z","avatar_url":"https://github.com/dtinth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ubr\n\nA command-line Uber client. Request an Uber from your command line.\n\n## Synopsis and Example\n\n```\n$ from_central_embassy=13.743704,100.546668\n$ to_the_emquatier=13.730656,100.569770\n$ ubr $from_central_embassy $to_the_emquatier -p uberX\nSearching for available Ubers...\nSelected: uberX\nGetting the ETA...\nPickup in 4 minutes.\nEstimation:\n- Distance: 2.82 miles\n- Pickup 09:59\n- Dropoff 10:10\n- Price: ฿52-61 (no surge)\nDo you want to request an uberX? (y to confirm): y\nDone! Please check your phone.\n```\n\n## Disclaimer\n\nThis app will request an Uber on your behalf, and\nyou will pay for any ride initiated by this application.\n\nWhile I strive to make this tool as stable and bug-free as possible,\nI could not make any guarantee that it does not contain a bug that may cause unintended requests to be sent, which may lead to monetary loss.\nTherefore, please this tool at your own risk.\n\n## Installation\n\n```\ngem install ubr\n```\n\n## Usage\n\nTo keep the Uber system safe, only an application's developer will be able to\nrequest a ride until the app is approved by Uber.\nMy original `ubr` application has not been approved yet.\nTherefore, you need to [create your own application](https://developer.uber.com/apps).\n\nSet these information:\n\n- __Callback URL:__ https://dtinth.github.io/ubr/callback.html\n- __Privacy Policy URL:__ https://github.com/dtinth/ubr#privacy-policy\n\nAs of writing, it is OK to keep the webhook URLs blank.\n\nAfter registering, you should get a __client ID__ and __secret__.\nTo login, run this command:\n\n```\nubr login xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\nIt should open a browser and let you log in to the application.\nUpon completion, it should redirect you to a page where it says:\n\n```\nubr authorize 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 'https://dtinth.github.io/ubr/callback.html'\n```\n\nCopy and paste that into the terminal.\nIt will ask you to provide the secret key.\nPaste in the secret key and press enter.\n\n```\nGive me your secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\nHurray! Your are authorized!\nThe token is saved to /Users/username/.ubr\n```\n\nNow, you can request an Uber by running this command:\n\n```\nubr PICKUP DROPOFF\n```\n\nWhere __PICKUP__ and __DROPOFF__ are the coordinates to pick-up and drop-off,\nspecified in `LATITUDE,LONGITUDE` format.\nIt is useful to put these coordinates as shell variables.\nYou can also add `-p` option to specify product type, e.g., `-p uberX`.\n\n\n## Privacy Policy\n\nThis privacy policy applies only to the authentic copy of `ubr` application.\nWe do not keep your personal information.\nOnly your `client_id` and the `authorization_code` is sent to GitHub Pages server for the purpose of making logins easier.\nThese two pieces of information are then combined with the `secret` key, which you supply in your own computer, to exchange for the `access_token`.\nThe `access_token` is then kept on your computer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Fubr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtinth%2Fubr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Fubr/lists"}