Get Spam Complaint List

GET https://restapi.actonsoftware.com/api/1/list/spamcomplaint

This endpoint will allow you to download the spam complaint list from this account.

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header false required String Insert your generated access token.
(Bearer {access token})
count query false optional string Specify the number of elements to fetch.
(Maximum=1000)
offset query false optional string Specify the element offset to begin the fetch.
(Default=0)
createdbefore query false optional string Filter records created before the specified date.
createdafter query false optional string Filter records created after the specified date.

Parameter Notes

createdafter and createdbefore

The parameters return time in Unix timestamps. (timestamp converter:example)

Response

{
  "offset": 0,
  "count": 0,
  "totalCount": -1,
  "result": []
}

Note: totalCount will always be -1 and should not be used.

Code Examples

cURLPython

curl -X GET https://restapi.actonsoftware.com/api/1/list/spamcomplaint -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"

import requests

url = "https://restapi.actonsoftware.com/api/1/list/spamcomplaint"

payload = {}
headers = {
  'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs'
}

response = requests.request("GET", url, headers=headers, data = payload)

print(response.text.encode('utf8'))