Skip to main content

Get Templates by Period

This method retrieves a list of Transactional Messaging Templates created during a specified period.

This is a GET method.

REST WADL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest?_wadl&_type=xml

REST URL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/getByPeriod/{token}/{type]/{dateBegin}/{dateEnd}

| Input parameters
Required parameters | Description | Output parameters | Description | | ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- | | token | The connection token | return | The list of Template IDs | | type | The type of Template:

  • TRANSACTIONAL
  • SOCIALNETWORK (this value is deprecated)
| | | | dateBegin | The start date of the period to retrieve (yyyy-MM-dd HH:mm:ss) | | | | dateEnd | The end date of the period to retrieve (yyyy-MM-dd HH:mm:ss) | | |

Error messages

  • You must fill in the token parameter
  • You must fill in the type parameter.
  • You must fill in the dateBegin parameter.
  • You must fill in the dateEnd parameter.
  • dateBegin doesn't exist or is malformed (good format is : yyyy-MM-dd HH:mm:ss).
  • dateEnd doesn't exist or is malformed (good format is : yyyy-MM-dd HH:mm:ss).
  • An error occured on the server

REST Example

Input

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/getByPeriod/{token}/TRANSACTIONAL/2010-10-23%2000:00:00/2013-01-01%2000:00:00

Output

<response responseStatus="success">
<entities>
<id>178</id>
<id>176</id>
</entities>
</response>