keenlabs / KeenClient-Python

Official Python client for the Keen IO API. Build analytics features directly into your Python apps.
https://keen.io/docs
MIT License
133 stars 58 forks source link

Accept dict in SavedQueriesInterface.create() #120

Closed masojus closed 7 years ago

masojus commented 7 years ago

Accept a dict for the saved_query properties, and convert to a json-formatted str to send as the PUT payload. Fixes Issue #119

masojus commented 7 years ago

It also looks like one can use the Requests "json" param instead of the "data", but we don't do that elsewhere: http://docs.python-requests.org/en/master/user/quickstart/#more-complicated-post-requests