Skip to content

Instantly share code, notes, and snippets.

View activeprospect-support's full-sized avatar

ActiveProspect Support activeprospect-support

View GitHub Profile
@activeprospect-support
activeprospect-support / Add.sh
Last active August 29, 2015 14:07
Add items to a list
$ curl -X POST https://app.suppressionlist.com/lists/my_list/items \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"values":"[email protected]"}' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
@activeprospect-support
activeprospect-support / Killing a running job.sh
Last active August 29, 2015 14:07
SL - SuppressionList Jobs Overview
$ curl -X PUT https://app.suppressionlist.com/lists/512d79a8bd9059be60000006/jobs/512fabcf82d28b2462000009/kill \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "512fabcf82d28b2462000009",
@activeprospect-support
activeprospect-support / List job details.sh
Last active August 29, 2015 14:07
SL - SuppressionList Jobs Overview
$ curl -X GET https://app.suppressionlist.com/lists/512d79a8bd9059be60000006/jobs/512fabcf82d28b2462000009 \
-H 'Accept: application/json' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"id": "512fabcf82d28b2462000009",
"user_name": "Alex",
@activeprospect-support
activeprospect-support / List all jobs.sh
Last active August 29, 2015 14:07
SL - SuppressionList Jobs Overview
$ curl -X GET https://app.suppressionlist.com/lists/512d79a8bd9059be60000006/jobs \
-H 'Accept: application/json' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"id": "512fabcf82d28b2462000009",
@activeprospect-support
activeprospect-support / Removing a list.sh
Last active August 29, 2015 14:07
SL - Overview of Lists Within SuppressionList
$ curl -X DELETE https://app.suppressionlist.com/lists/512d79a8bd9059be60000008 \
-H 'Accept: application/json' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 204 No Content
@activeprospect-support
activeprospect-support / Getting all your lists.sh
Last active April 27, 2016 13:35
SL - Overview of Lists Within SuppressionList
$ curl -X GET https://app.suppressionlist.com/lists \
-H 'Accept: application/json' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"id": "512d79a8bd9059be60000006",
@activeprospect-support
activeprospect-support / Creating a new list.sh
Last active November 14, 2018 15:48
SL - Overview of Lists Within SuppressionList
$ curl -X POST https://app.suppressionlist.com/lists \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d'{"name":"Email List","ttl":2592000}' \
-uAPI:fc36c8168cbb16784f6a29f89695dd92
HTTP/1.1 201 Created
Location: https://app.suppressionlist.com/lists/512d79a8bd9059be60000006
Content-Type: application/json; charset=utf-8
https://app.suppressionlist.com/exists/{{list_id}}/{{query term}}:
@activeprospect-support
activeprospect-support / query term not found.sh
Last active August 29, 2015 14:07
SL - Querying a list in SuppressionList
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
{
"specified_lists": ["my_list","my_other_list","my_third_list"],
"key":"[email protected]",
"found":false
}
@activeprospect-support
activeprospect-support / query term found.sh
Last active August 29, 2015 14:07
SL - Querying a list in SuppressionList
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"specified_lists":["my_list","my_other_list","my_third_list"],
"key":"[email protected]",
"found":true,
"exists_in_lists":["my_list","my_third_list"]
}