Skip to content

Solves #109, extended User-Agent data #110

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

Closed
wants to merge 1 commit into from

Conversation

nerdguru
Copy link
Contributor

The new code I added to extend the User-Agent data passes the linter, but an existing line now gets barked at for reasons that aren't clear, so I thought I'd submit to see if someone more expert could figure that out or if it'll go away.

The only part I was unsure of was the ability to set the two optional fields using environment variables. I went the quick route and pull the variables inside restsession.py but if you want me to follow the model of environments.py I can do that and resubmit. Since the paramaters are optional and the API key set by environments.py is required, I wasn't sure which way would be preferable.

@cmlccie
Copy link
Collaborator

cmlccie commented Jun 19, 2020

Hi Pete (@nerdguru), thank you for submitting this. I would like to play with this header (see what the finished results look like) and pull the header generation code out of the __init__() method. I think we could put it in a user_agent() function or method similar to what pip does.

@cmlccie
Copy link
Collaborator

cmlccie commented Jun 19, 2020

I will push this to a feature branch and work on the code a bit. -Thank you!

@nerdguru
Copy link
Contributor Author

Sounds good to me, thanks!

@cmlccie cmlccie self-assigned this Jul 8, 2020
@cmlccie cmlccie linked an issue Jul 8, 2020 that may be closed by this pull request
@@ -48,6 +52,7 @@
check_response_code, check_type, extract_and_parse_json, validate_base_url,
)

from webexteamssdk._version import get_versions

# Helper Functions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flake8 on the CI is failing because there is a blank line missing here.

@cmlccie
Copy link
Collaborator

cmlccie commented Jul 9, 2020

This functionality has been merged in #123. Thank you @nerdguru!

@cmlccie cmlccie closed this Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhanced User-Agent
3 participants