getTokensByDate()
getTokensByDate() returns the tokens created before the specified date/time.
Request Parameters
Parameters | Data Types | Descriptions |
---|---|---|
customData | string | Customer-specific data. Note: For MySQL, if the customData parameter is null or empty, then the getTokenByDate() API returns results for all customData values in token vault. |
msec | long | Number of milliseconds since epoch (start of day, Jan 1,1970). |
table | string | This is the Token Vault name and it must be in CAPITAL LETTERS. |
Returned Values
A string array of the tokens.
Exception
Passes an exception if:
A table or date are missing.
A customData element is too long.
Example
Note
Date to millisecond-since-epoch converter: http://www.fileformat.info/tip/java/date2millis.htm