ForumsDevelopersProblem with results from deleted.php


Problem with results from deleted.php
Author Message
JTMcFarland

Posted: Nov 26, 2017
Score: 1 Reference
I've run across something I'm not sure I understand. It seems that I'm getting null back for some deleted requests and data indicating there are 0 records to return for others. I was expecting that both calls below would return the same content indicating there are no records which match the specified criteria. Please help me understand what's happening here.


'https://api.toodledo.com/3/tasks/deleted.php?after=1511674071.0'
status_code = 200
content = b'[{"num":0}]'


'https://api.toodledo.com/3/lists/deleted.php?after=1511674071.0'
status_code = 200
content = b'null'


These results have been consistent and repeatable for me.
Jake

Toodledo Founder
Posted: Nov 27, 2017
Score: 0 Reference
Try again with the timestamp being an integer, not a decimal.
JTMcFarland

Posted: Nov 27, 2017
Score: 1 Reference
I tested, and I get the same result with an integer.
Jake

Toodledo Founder
Posted: Nov 29, 2017
Score: 0 Reference
I have looked into it and it looks like you are correct. The return values for deleted tasks and deleted lists are slightly different if there is nothing to return. Sorry about that. Its too late to change it now without breaking apps that already account for the differences.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.