close
Skip to content

Allow setting user-agent header for api methods.#344

Closed
Drino wants to merge 1 commit into
googleapis:masterfrom
Drino:master
Closed

Allow setting user-agent header for api methods.#344
Drino wants to merge 1 commit into
googleapis:masterfrom
Drino:master

Conversation

@Drino
Copy link
Copy Markdown

@Drino Drino commented Jan 31, 2017

Allow setting user-agent header for api methods.

Now if one need to call an API method with his own user agent, he may
just use user_agent keyword argument for method call.

Resolves: #342

Now if one need to call an API method with his own user agent, he may
just use user_agent keyword argument for method call.

Resolves: googleapis#342
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 31, 2017
parameters = ResourceMethodParameters(methodDesc)

def method(self, **kwargs):
def method(self, user_agent=None, **kwargs):

This comment was marked as spam.

@Drino
Copy link
Copy Markdown
Author

Drino commented Feb 1, 2017

I've found that my problems can be solved another way. Sorry for making a pull request.

@Drino Drino closed this Feb 1, 2017
@theacodes
Copy link
Copy Markdown
Contributor

theacodes commented Feb 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants