Get CMS Content

This request returns all available content in CMS tool.

HTTP Request

URLMethodDescription
https://app.tellody.com/CampaignCloud/Content/LoadAllContent?page=0&per_page=<integer> GET Get all available content in CMS

HTML Parameters

NameDescription
page Page=0 defines the first page in the UI. This parameter should be set to zero in html so that the response will return all entries or the X most recent entries where X corresponds to the value set using "per_page" parameter.
per_page This can be set to any integer to limit the number of returned entries in the defined page. An unrealistic number can be set to retrieve all messages when page=0.

Sample Request

PythonOther

#Retrieving the XSRF Token needed for Session
pingResponse = my_session.get("https://app.tellody.com/CampaignCloud/RememberMeController/ping")

#Import the X-XSRF-Token returned from RememberMeController/ping into the request headers
xsrfToken = pingResponse.headers.get("X-XSRF-TOKEN")

#HTTP request header
header = {"Content-Type" : "application/json", "X-XSRF-TOKEN" : xsrfToken}
#get Messages
url="https://app.tellody.com/CampaignCloud/Config/WithFilters?page=0&per_page=2&sort_by=timestamp&order=desc"
response = my_session.get(url,headers=header).json()
print(json.dumps(response,ensure_ascii=False))

Sample Response

The response amongst other content related information, returns a json list with the filepath and filename of every content item in CMS.

{
   
   .......
   
   "count":4,
   "data":[
      {
         .....
		 
         "filePath":"file/alamiaeros.jpgcampaign_43",
         "filename":"alamiaeros.jpg",
         "lastModifiedBy":null,
         "fileSubType":"jpeg",
         "created":1434627162263,
         "data":null,
         "fileLength":5615,
         "mimeType":"image/jpeg",
         "fileType":"image",
         "contentType":"FILE_CONTENT",
         
		 ......
      },
      {
         ......
		 
         "filePath":"file/digestive bar.jpgcampaign_43",
         "filename":"digestive bar.jpg",
         "lastModifiedBy":null,
         "fileSubType":"jpeg",
         "created":1434627158988,
         "data":null,
         "fileLength":11689,
         "mimeType":"image/jpeg",
         "fileType":"image",
         "contentType":"FILE_CONTENT",
         "contentCategoryPath":null,
         
		 .......
      },
	  
	  .......
	  
   ]
}

Errors

In case of an error, there is no returned list and information may be derived by the HTTP Status in the result of each request (e.g. HTTP 400 – Bad Request).

Back to Top