python-ouraring
python-ouraring copied to clipboard
Fix /heartrate query parameters
/heartrate endpoint has slightly different query paramaters, so here I make adjustment for that
Also, if timestamp includes timezone info, which is separated by +, e.g. 2024-04-07T07:22:48+00:00, then in url it is considered as space, so we need to escape it. That's exactly what urlencode does. BTW it is the same function that requests use for escaping characters as well
@turing-complet Please review. Also, it is the last PR for now, so please make a release after that
Thanks, LGTM. I'll try to get a release out soon.