-
Notifications
You must be signed in to change notification settings - Fork 453
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
Improve the experiment client #176
Improve the experiment client #176
Conversation
LGTM 🍻 |
@tonicbupt = =...... |
client = self._make_client_with_token(token) | ||
url = urljoin(self.endpoint_url, url) | ||
return getattr(client, method)(url, *args, **kwargs) | ||
|
||
# magic: generate methods which forward to self.client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like things without magic. I prefer a little repeating on http methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in 1b9ea59
@lepture How about now? |
Merged in 280661d |
Changes
.get
,.post
and also)OAuthState
)make_client
to eliminate repeated codeclient.get(url, token=foo)
instead of always callingtokengetter
@lepture Please review. Thanks.