A Ruby library for interacting with DynECT Email Delivery API.
You can check out the latest source from git:
git clone git://github.com/Shopify/dynect_email.git
require 'rubygems'
require 'dynect_email'
# Set your API key
DynectEmail.api_key = "your-api-key"
# Add a sender to your account
DynectEmail.add_sender("[email protected]")
# Add a sub account with username, password, company, phone
response = DynectEmail.add_account("[email protected]", "secretpassword", "Shopify", "1231231231")
# response hash includes the api key for the account that was created
# Add a sender to the sub account
DynectEmail.add_sender("[email protected]", response['apikey'])
# Set headers
DynectEmail.set_headers({:xheader1 => "X-Sample1", :xheader2 => "X-Sample2"})
# Remove sender
DynectEmail.remove_sender("[email protected]")
# Remove account
DynectEmail.remove_account("[email protected]")
Check out the API docs for more information on what parameters are available.
- Fork the official repository.
- Make your changes in a topic branch.
- Send a pull request.
Notes:
- Contributions without tests won't be accepted.
- Please don't update the Gem version.