TimeStamp
This method of the Image Recognition API obtains a timestamp giving you a convenient way to validate your collection token and to check network connectivity.
URL
https://search.craftar.net/v1/timestamp
Method
POST
Parameters
- token: the token of the collection to be searched.
Request example
The example uses collection token afe34dbe14890fac.
Curl example
1 |
curl https://search.craftar.net/v1/timestamp -d "token=afe34dbe14890fac" |
Response fields
Timestamp of the server, in Unix epoch time.
In case of an error, in addition to an appropriate HTTP status code, the service will also return a much more specific and informative error codes in the JSON response. Check the documentation on Error codes in the recognition API for more detailed information.
Response examples
Success
1 2 3 |
{ "timestamp": "1347991533.91" } |
Failure
1 2 3 4 5 6 |
{ "error": { "code": "TOKEN_INVALID", "message": "Token is invalid" } } |