List Subscription LIsts

Return a list of subscription listobjects.

https://app.mojotxt.com/api/v1/{phone_number}/lists/list

Parameters:

Parameters can be sent in the URL querystring or as POST variables.

Parameter Options Description
Sort ListID, Keyword, ListName Sort the list by a field.
SortDirection ASC, DESC Sort Ascending or Descending
Limit Any Integer Limit the results to a certain number of records.
Page Any Integer If Limit is specified, return a certain page of results.
Stats 1, 0 Include statistical information about the list (TotalSubscribers)

Example Request:

GET https://app.mojotxt.com/api/v1/+16146827117/lists/list?Sort=Keyword&SortDirection=ASC&Stats=1

Example Result:

{
"result": "success",
"timestamp": 1459373600,
"request": {
"phone": "+16146827117",
"object": "lists",
"verb": "list",
"Sort": "Keyword",
"SortDirection": "ASC",
"Stats": "1"
},
"record_count": 3,
"records": [
{
"ListID": 1,
"KeywordID": 37,
"Keyword": "notes",
"ListName": "Weekly Message Notes",
"SubscriberCount": 173
},
{
"ListID": 3,
"KeywordID": 38,
"Keyword": "PCA",
"ListName": "School Closing Alerts",
"SubscriberCount": 126
},
{
"ListID": 134,
"KeywordID": 296,
"Keyword": "Updates",
"ListName": "Church Updates",
"SubscriberCount": 124
}
]
}