Campaign Statistics

This request returns the total count of campaigns per type of campaign (eg. SMS,EMAIL) and status (e.g. Active,Ended,etc.).

HTTP Request

URLMethodDescription
https://app.tellody.com/CampaignCloud/Report/CampaignTile GET Get Campaign statistics

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}
url="https://app.tellody.com/CampaignCloud/Report/CampaignTile"
response = my_session.get(url,headers=header).json()
print(json.dumps(response,ensure_ascii=False))

Sample Response

{
   "SMS_CAMPAIGN":55,
   "EMAIL_CAMPAIGN":0,
   "ACTIVE":0,
   "NOT_STARTED":0,
   "COUNTRIES_COUNT":0,
   "ENDED":73
}

Errors

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

Back to Top