Skip to content

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