Comments (6)
Not sure if this is possible to do on our end since we need the end-user to login via uber. What do you guys think? @r-medina @sjkaliski
from go-uber.
In my opinion there are three options:
- Leave it up to the user.
- Take OAuth configuration as an argument when creating a client. See https://github.com/kurrik/twittergo, https://github.com/ChimeraCoder/anaconda)
- Inject http routes in a similar way that net/http/pprof does (you can even use an "_" import).
I'm leaning towards the second option. Seems to be pretty standard across other api wrappers. https://github.com/garyburd/go-oauth is a good starting point.
from go-uber.
Sounds good. What do you mean by taking the oauth configuration as an argument. Are you referring to the access_token (in which case the process is not abstracted) or something else?
from go-uber.
from go-uber.
@asubiott wanna knock this out sunday?
from go-uber.
from go-uber.
Related Issues (12)
- Errors from API not handled HOT 1
- More thorough tests HOT 4
- finish basic tests
- handle unsuccessful or bad requests in tests HOT 2
- license HOT 1
- Integration testing HOT 1
- new response variables and enpdoints
- Set your own http client
- the uri generator does not work HOT 1
- fetching a url won't work in google app engine HOT 1
- Update to API v1.2 endpoints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-uber.