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

Allow passing query parameters as a params kwarg to underlying Requests #37

Closed
foresmac opened this issue Apr 12, 2018 · 2 comments
Closed

Comments

@foresmac
Copy link

It would be nice if the query params could be specified as a kwarg to the get, post, et al methods as the underlying Requests library does.

Ex:

wcapi = API(...)
params = {
    'status': 'cancelled',
    'per_page': 25,
    'page': 1
}
r = wcapi.get('orders', params=params)
@foresmac
Copy link
Author

Looks like there are already two pull requests open to add this support: #34 and #35.

@claudiosanches
Copy link
Contributor

Closed by #34

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

No branches or pull requests

2 participants