This is an older version of the Campaign Monitor API. We strongly encourage you to quit livin' in the past and use the shiny new RESTful version with lots of new functionality. You won't regret it.

User.GetSystemDate

Gets the server system time for your time zone. This is handy for when you are syncing your Campaign Monitor lists with some other in-house list, allowing you accurately determine the time on our server when you carry out the synchronization.

Parameters and required information

Here’s a list of all the parameters you’ll need to pass to the User.GetSystemDate method. All of the parameters are required unless otherwise noted.

ApiKey
Your API application key. See here for more details.

Return Codes

Success

Upon a successful call, this method will return a string consisting of a date and time in the yyyy-MM-dd hh:mm:ss format.

Error

100: Invalid API Key
The API key pass was not valid or has expired.

SOAP 1.1

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /api/api.asmx HTTP/1.1
Host: api.createsend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.createsend.com/api/User.GetSystemDate"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <User.GetSystemDate xmlns="http://api.createsend.com/api/">
      <ApiKey>string</ApiKey>
    </User.GetSystemDate>
  </soap:Body>

</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>
    <User.GetSystemDateResponse xmlns="http://api.createsend.com/api/">
      <User.GetSystemDateResult>string</User.GetSystemDateResult>
    </User.GetSystemDateResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /api/api.asmx/Campaign.GetSystemDate?ApiKey=string HTTP/1.1
Host: api.createsend.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://api.createsend.com/api/">string</string>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /api/api.asmx/Campaign.GetSystemDate HTTP/1.1
Host: api.createsend.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ApiKey=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>

<string xmlns="http://api.createsend.com/api/">string</string>