-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
According to https://github.com/paymoapp/api/blob/master/sections/datetime.md, date and time data needs to have ISO 8601 format. However, when I try it, it seems to work correctly only with Unix timestamps, actual ISO 8601 values do not work.
Demo:
$ curl -u xxxxxxxxxxxx:X -H 'Accept: application/json' "https://app.paymoapp.com/api/clients?where=updated_on%3E%3D2016-01-01T01%3A01%3A01Z%20and%20updated_on%3C2017-06-01T01%3A01%3A01Z"
{"clients":[]}
$ curl -u xxxxxxxxxxxx:X -H 'Accept: application/json' "https://app.paymoapp.com/api/clients?where=updated_on%3E%3D1451610061%20and%20updated_on%3C1496278861"
{"clients":[{"id":...............]}
By the way, if one forgets to URL-encode the where value, the API silently fails. It should probably return some kind of error message.
Metadata
Metadata
Assignees
Labels
No labels