-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version Bump v4.0.2: Example and USAGE DELETE calls were missing exam…
…ple payloads
- Loading branch information
1 parent
1607adb
commit 6f2ba81
Showing
7 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,13 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ | |
|
||
|
||
```ruby | ||
data = JSON.parse('{ | ||
"ids": [ | ||
1, | ||
2, | ||
3 | ||
] | ||
}') | ||
response = sg.client.access_settings.whitelist.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -1192,6 +1199,12 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co | |
|
||
|
||
```ruby | ||
data = JSON.parse('[ | ||
1, | ||
2, | ||
3, | ||
4 | ||
]') | ||
response = sg.client.contactdb.lists.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -1414,6 +1427,10 @@ The contactdb is a database of your contacts for [SendGrid Marketing Campaigns]( | |
|
||
|
||
```ruby | ||
data = JSON.parse('[ | ||
"recipient_id1", | ||
"recipient_id2" | ||
]') | ||
response = sg.client.contactdb.recipients.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -3165,6 +3182,13 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User | |
|
||
|
||
```ruby | ||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.blocks.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -3245,6 +3269,13 @@ Note: the `delete_all` and `emails` parameters should be used independently of e | |
|
||
|
||
```ruby | ||
data = JSON.parse('{ | ||
"delete_all": true, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.bounces.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -3334,6 +3365,13 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User | |
|
||
|
||
```ruby | ||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.invalid_emails.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -3450,6 +3488,13 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User | |
|
||
|
||
```ruby | ||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.spam_reports.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,13 @@ | |
# Delete blocks # | ||
# DELETE /suppression/blocks # | ||
|
||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.blocks.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -57,6 +64,13 @@ | |
# Delete bounces # | ||
# DELETE /suppression/bounces # | ||
|
||
data = JSON.parse('{ | ||
"delete_all": true, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.bounces.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -97,6 +111,13 @@ | |
# Delete invalid emails # | ||
# DELETE /suppression/invalid_emails # | ||
|
||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.invalid_emails.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
@@ -156,6 +177,13 @@ | |
# Delete spam reports # | ||
# DELETE /suppression/spam_reports # | ||
|
||
data = JSON.parse('{ | ||
"delete_all": false, | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
}') | ||
response = sg.client.suppression.spam_reports.delete(request_body: data) | ||
puts response.status_code | ||
puts response.body | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module SendGrid | ||
VERSION = '4.0.1' | ||
VERSION = '4.0.2' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters