Перейти к содержимому

Get server time

Time resource allows retrieving current server time. Business unit timezone will be applied.

This could be useful when managing several business units through API which use different timezones. All other requests which require passing datetime parameters, assume they are in business unit timezone.

Request data format

Request URL parameters:

ParameterTypeNotes
apiKeystringYour API key, required for authentication. Required.

Examples:

https://api.esv2.com/v2/Api/Time?apiKey=YOUR_API_KEY_HERE

Response

Element/attributeTypeNotes
DatadateTimeCurrent server date and time.*

*Note: Date/time format is ISO-8601, as used by XML Schema.

Examples

Request:#

GET https://api.esv2.com/v2/Api/Time?apiKey=test_api_key1 HTTP/1.1
Accept-Encoding: gzip,deflate
Host: api.esv2.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

OK response:#

XML
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 3.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 24 Apr 2013 10:33:09 GMT
Content-Length: 173

<ApiResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Data>2013-04-24T10:33:09.4338472Z</Data>
</ApiResponse>
On this page
To top