Get Groups

This request is used to retrieve all the groups of the user and their details.

HTTP Request

URLMethodDescription
https://app.tellody.com/CampaignCloud/Group/<groupId>/<path_variable> GET Get groups 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}
	
#get groups
print("\nRetrieving Contacts....")
groups_url="https://app.tellody.com/CampaignCloud/Group"
response = my_session.get(groups_url, headers=header)
print('\groups list is : {}'.format(response))
print(response.json())

Sample Response

The result returns a list of groups with at least one group with all of the blocked contacts which will always have the 'id' value of 1.

[
   {
      "size":5,
      "title":"BLOCKED CONTACTS",
      "id":1,
      "description":"BLOCKED CONTACTS"
	  
	  .....
   },
   {
      "size":1,
      "title":"New",
      "id":2,
      "description":"test
	  
	  .....
   }
]

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