summaryrefslogtreecommitdiffstats
path: root/examples/asm/asm.js
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-07-05 14:51:47 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-07-05 14:51:47 -0700
commita0aee2f880a8e736b638d5188ef56f07d6ce3f82 (patch)
tree11ac0be09ab27d5a82ea7d5bf9cfca62f60c6896 /examples/asm/asm.js
parenta369c84cf9f747252dc90a0fd108909b60b3f30d (diff)
downloadsendgrid-nodejs-3.0.7.zip
sendgrid-nodejs-3.0.7.tar.gz
sendgrid-nodejs-3.0.7.tar.bz2
Version Bump v3.0.7: swagger/oai updates + accept header fixv3.0.7
Diffstat (limited to 'examples/asm/asm.js')
-rw-r--r--examples/asm/asm.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/asm/asm.js b/examples/asm/asm.js
index 3fcf195..ecbcca6 100644
--- a/examples/asm/asm.js
+++ b/examples/asm/asm.js
@@ -117,6 +117,27 @@ sg.API(request, function (response) {
})
///////////////////////////////////////////////////
+// Search for suppressions within a group
+// POST /asm/groups/{group_id}/suppressions/search
+
+
+var request = sg.emptyRequest()
+request.body = {
+ "recipient_emails": [
+ "exists1@example.com",
+ "exists2@example.com",
+ "doesnotexists@example.com"
+ ]
+};
+request.method = 'POST'
+request.path = '/v3/asm/groups/{group_id}/suppressions/search'
+sg.API(request, function (response) {
+ console.log(response.statusCode)
+ console.log(response.body)
+ console.log(response.headers)
+})
+
+///////////////////////////////////////////////////
// Delete a suppression from a suppression group
// DELETE /asm/groups/{group_id}/suppressions/{email}