Skip to content
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

Stop inflecting API method parameters on each call #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petedmarsh
Copy link
Contributor

Previously, every parameter of an API call was converted to camel case before
being serialized to JSON - even if it had been converted before. This added
unnecessary overhead to every API call.This avoids these conversions by
manually constructing dicts with the correct keys from the parameters passed
to the method.

This is a little less pretty but is the most straight forward way of achieving this.

The code passes flake8 checks, but if there are any formatting changes you would
like I will happily make them.

Previously, every parameter of an API call was converted to camel case before
being serialized to JSON  - even if it had been converted before. This added
unnecessary overhead to every API call.This avoids these conversions by
manually constructing dicts with the correct keys from the parameters passed
to the method.
@petedmarsh
Copy link
Contributor Author

The flake8 errors are unrelated to the changes in this PR, #54 will fix them.

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.

1 participant