r-medina / go-uber Goto Github PK
View Code? Open in Web Editor NEWGolang bindings for Uber API
License: ISC License
Golang bindings for Uber API
License: ISC License
Instead of using the default http client, you should expose that as a public variable, that way a user can substitute it with their own client.
For get and generating urls
We should start thinking about getting a token and testing the integration with the Uber API
As of now, the tests are designed only for "perfect" requests. That is, ones in which the Uber API is available and the client request is properly made.
Also, do we need tests for the helpers and authorization tools? Those should be tested via our more generalized tests. Thoughts?
duration and distance response variables from price estimate endpoint:
https://developer.uber.com/v1/endpoints/#price-estimates
promotion endpoint:
https://developer.uber.com/v1/endpoints/#promotions
If the Uber api returns an error, we wouldn't parse it properly. Non-2xx responses do not produce an error.
I'm making an UberError
type that implements the error
interface and parses the body of a failed request to the api to generate a worth-while error.
The exported methods should probably not return a fancy error type (as that would be too different from normal golang flow).
Currently, before a client can use the user info endpoints (history and profile) they must go through a three step authentication with uber (https://developer.uber.com/v1/auth/#oauth-2-0) which results in them receiving an access token which they use to access these endpoints.
This issue is to figure out a way to abstract/hide this from the client, maybe by changing some construction parameters and authentication logic being handled in the construction.
Uber recently announced v1.2 endpoints for the Rides API. The following changes would be required to upgrade:
https://api.uber.com/v1.2/
. Sample endpoint.X-Rate-Limit-Limit
, X-Rate-Limit-Remaining
, X-Rate-Limit-Reset
.Hey, i'm using your library and I found that the uri that your library generated is invalid. Might want to look into this.
Not sure what your plan is but this library won't work in google app engine since url fetches are done using the urlfetch instead of &http.Client{}
MIT or Apache? @r-medina @asubiott
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.