Skip to content

Commit

Permalink
doc: improve contact#doc
Browse files Browse the repository at this point in the history
  • Loading branch information
drish committed Jan 15, 2024
1 parent 2b6fdc8 commit 8ef870d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/resend/contacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ def list(audience_id)
Resend::Request.new(path, {}, "get").perform
end

# https://resend.com/docs/api-reference/contacts/delete-contact
#
# Remove a contact from an audience
#
# @param audience_id [String] the audience id
# @param contact_id [String] either the contact id or contact email
#
# see also: https://resend.com/docs/api-reference/contacts/delete-contact
def remove(audience_id, contact_id)
path = "audiences/#{audience_id}/contacts/#{contact_id}"
Resend::Request.new(path, {}, "delete").perform
Expand Down

0 comments on commit 8ef870d

Please sign in to comment.