GithubHelp home page GithubHelp logo

go-uber's People

Contributors

asubiotto avatar r-medina avatar sjkaliski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go-uber's Issues

Set your own http client

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.

Integration testing

We should start thinking about getting a token and testing the integration with the Uber API

More thorough tests

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?

Errors from API not handled

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).

Abstract OAuth authentication process

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.

Update to API v1.2 endpoints

Uber recently announced v1.2 endpoints for the Rides API. The following changes would be required to upgrade:

  1. API base URL would need to reflect the version bump: https://api.uber.com/v1.2/. Sample endpoint.
  2. A new ride request flow for upfront prices should be implemented, as described here
  3. All usage of rate limiting headers should be removed. The headers are deprecated with v1.2. A new endpoint to meet the needs will be created. Here are the impacted headers: X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset.

the uri generator does not work

Hey, i'm using your library and I found that the uri that your library generated is invalid. Might want to look into this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.