getServerTime (service)

API version: 2

Availability: DIGIPASS Gateway 5.0 and later

Authentication: Basic HTTP authentication using the front-end API key.

The getServerTime service retrieves the current server time as Unix time to be used in activation and re-activation of Mobile Authenticator Studio.

The server time returned used the Unix time format (POSIX time or UNIX Epoch time), i.e. the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), not counting leap seconds.

URL

https://dpgateway_host:dpgateway_port/rest/v2/provisioning/getServerTime

Request

The getServerTime service does not accept any parameters.

Response

getServerTime return values
Return value Description
resultCodes

A JSON object that contains the return and status codes of the service.

result A JSON object that contains the current server time as Unix time. This is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC). Leap seconds are not counted.

Example

{
  "resultCodes":
    {
      "returnCodeEnum": "RET_SUCCESS",
      "statusCodeEnum": "STAT_SUCCESS",
      "returnCode": 0,
      "statusCode": 0
    },
  "result":
    {
      "serverTime": 1547556827
    }
}