Get spam complaint list
1 |
GET /api/1/list/spamcomplaint |
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | false | required | String (Bearer {access token}) | Pass the authentication token that was granted when you authorized access. |
count | query | false | optional | string | Quantity of records to return in response, if no value given, returns all. |
offset | query | false | optional | string | index number at which to start the count, if no value given, no offset. |
createdbefore | query | false | optional | string | Epoch seconds date. Only records created before the supplied date will be returned. |
createdafter | query | false | optional | string | Epoch seconds date. Only records created after the supplied date will be returned. |
Request
HTTP
Following is an example HTTP request:
1 2 3 4 |
GET /api/1/list/spamcomplaint HTTP/1.1 Host: restapi.actonsoftware.com Authorization: Bearer c54259c6920d2d7a5f1fda13cff89ee Cache-Control: no-cache |
curl
Following is an example curl request:
1 |
curl -X GET -H "Authorization: Bearer c54259c6920d2d7a5f1fda13cff89ee" -H "Cache-Control: no-cache" https://restapi.actonsoftware.com/api/1/list/spamcomplaint |
Response
A successful request results in an HTTP 200 response with a JSON object like the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
{ "offset": 0, "count": 255, "totalCount": -1, "result": [ { "email": "JohnDoe@abc.com", "timestamp": 1238687382000, "origin": "Genealogy - e-familytree.net" }, { "email": "JaneDoe@easystreet.com", "timestamp": 1238687382000, "origin": "Genealogy - e-familytree.net" ... } ] } |
Note: totalCount will always be -1 and should not be used.