Solves #109, extended User-Agent data #110
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.