What if we don't give the
todate parameters in a /me call?
Will it give result of user of all times? It's not mentioned explicitly in documentation.
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It only takes a minute to sign up.Sign up to join this community
Yes, if you omit those parameters it will give you the expected result...
If a valid token is passed, then it will return the user ("There can be only one.") who obtained/approved that token.
For this route, the
todate parameters filter on the
creation_date property of the
So, if the authorized user signed up for his/her account outside of the range specified by any
todate values, then no user will be returned at all.
todateblank, he gets a valid result.
1472688000(Sept 1st, 2016), he gets no result (no user object).
1409529600(Sept 1st, 2014), he gets a valid result.
I can't imagine a legitimate use for this. The presence of these parameters for this route just adds clutter, and confusion, with no purpose.
/me/* routes that could benefit immensely from date parameters (like /me/inbox) don't have them!