Get Contacts

This request is used to retrieve all existing contacts of the user

HTTP Request

URLMethodDescription
https://app.tellody.com/CampaignCloud/Subscription GET Get contacts list

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/Subscription"
response= my_session.get(url, headers=header).json()
print(json.dumps(response,ensure_ascii=False))

Sample Response

A healthy response should always retrieve a list of contacts or an empty list if contacts do not exist

[
   {
      "msisdn":"+306974199985",
      "subscriber":{
         "subscriberId":1,
         "dateOfBirth":null,
         "streetAddress":null,
         "profession":null,
         "middleName":null,
         "email":null,
         "lastName":null,
         "firstName":null,
         "email":null,

         ......
      },
      "subscriptionType":"MSISDN",
      "subscriptionId":1,

      ......
   },
   {
      "msisdn":"+306974199982",
      "subscriber":{
         "streetAddress":null,
         "profession":null,
         "middleName":null,
         "lastName":null,
         "firstName":null,
         "email":null,

         .....
      },
      "subscriptionType":"MSISDN",
      "subscriptionId":2,

      ......
   }
]

Errors

Sample Response

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

Back to Top