This library provides easy access to the Sending Domains Resource.
Note: All methods return promises and accept an optional last argument callback. Read about how we handle callbacks and promises.
-
list()
List an overview of all sending domains in the account. -
get(domain)
Retrieve a sending domain by its domain namedomain
- the domain you want to look up required
-
create(createOpts)
Create a new sending domaincreateOpts
- a hash of sending domain attributes required
-
update(domain, updateOpts)
Update an existing sending domaindomain
- the domain you want to update requiredupdateOpts
- a hash of sending domain attributes required
-
delete(domain)
Delete an existing sending domaindomain
- the domain you want to delete required
-
verify(domain, options)
Validate the specified verification field types for a sending domaindomain
- the domain you want to verify requiredoptions
- a hash of verify attributes required
Visit our examples section to see all of our sending domains resource examples.