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

Date and time format problem #28

Open
maxguru opened this issue May 30, 2017 · 2 comments
Open

Date and time format problem #28

maxguru opened this issue May 30, 2017 · 2 comments

Comments

@maxguru
Copy link

maxguru commented May 30, 2017

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.

@daveladouceur
Copy link

Why hasn't these issues been cleared out?

@Relativiteit
Copy link

Is there a fix available to add a separate keys the API, for date and time, so we don't need to parse. Is this possible?

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

3 participants