-
Notifications
You must be signed in to change notification settings - Fork 245
Decouple TwitterApi from global oauthClient #222
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
Conversation
|
Note: we actually do break the API compatibility for None of the public examples / tests rely on it, fwiw. EDIT: I now understand the need for those methods. We should really document their use-case. This change will break the API for users of this authentication flow. |
|
Thanks for waiting on this - since this is the first time we're heard-breaking backwards compatibility in a significant (albeit easily-upgradeable) way, I wanted to make sure we were doing everything properly with respect to vendoring and versioning (see also: #230). Don't worry about the build failure - that's because the new OS X image for Go 1.6 on Travis is buggy (I've encountered this with my other projects too). I'll need to disable Travis builds for Go 1.6 on OS X - I'll do that on a separate PR. All this looks good to me. Would you mind updating the first example in |
|
Of course, happy to update them! |
|
Pushed. Sorry for the delay! |
|
If we're breaking backwards compatibility, we could have a discussion if there are other breaking changes that might also be worth being included in the next release. A couple linter warnings come to mind. Otoh, this change alone probably doesn't affect too many of anaconda's current users (I'm just guessing, really, I have no figures that would back me up, obviously). |
|
Whoops - github didn't give me a notification for your first comment and commit, just the second one. Thanks for pushing it! Now that we have a vendoring and tagging strategy that's flexible enough, I'm comfortable making breaking changes more regularly (and tagging them appropriately), so we can address those separately. |
|
Hello @muesli, Thanks |
* 'master' of https://github.com/ChimeraCoder/anaconda: add PostAccountUpdateProfile (ChimeraCoder#259) Add RemoveUserFromList / RemoveMultipleUsersFromList (ChimeraCoder#247) Update README for streaming API. (ChimeraCoder#241) Add Category struct and change GetUsersSuggestions to use it (ChimeraCoder#228) Use exclude instead of include directive for Travis (ChimeraCoder#235) Implement GetListMembers (ChimeraCoder#240) Cleaned up README indentations and captions (ChimeraCoder#237) Implement IndicateTyping endpoint (ChimeraCoder#236) Enforce a default HTTP client timeout (ChimeraCoder#226) Store OAuth credentials per TwitterApi instance (ChimeraCoder#222) Disable Go 1.6 tests on OS X in Travis (ChimeraCoder#232)
Each TwitterApi now maintains its own oauthClient. The global oauthClient has been replaced by a slimmer global oauthCredentials to maintain backwards-compatibility with the old API.
This fixes #101 and is based on #182.
I'd appreciate a thorough review.