A Ruby API client for the Hanami email forwarding service
HanamiEmail.configure do |x|
x.default_domain = "example.com"
x.api_key = "sk_ZX_igr4rZWD8sveAPLNJZ3jRWsuuu"
end
x = HanamiEmail::Alias.create(from: "foo", to: "[email protected]")
# => {"id"=>12345, "from"=>"foo", "to"=>"[email protected]", "status"=>"activated"}
x = HanamiEmail::Alias.list
# => {"data"=>[{"from"=>"foo", "to"=>"[email protected]"}]}
x = HanamiEmail::Alias.delete(from: "foo", to: "[email protected]")
# => {"data"=>{"success"=>true}}
The gem is available as open source under the terms of the MIT License.