0.0
No release in over a year
Ruby API client for Hanami email forwarding
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

HanamiEmail

A Ruby API client for the Hanami email forwarding service

Usage

HanamiEmail.configure do |x|
  x.default_domain = "example.com"
  x.api_key = "sk_ZX_igr4rZWD8sveAPLNJZ3jRWsuuu"
end

x = HanamiEmail::Alias.create(from: "foo", to: "bar@gmail.com")
# => {"id"=>12345, "from"=>"foo", "to"=>"bar@gmail.com", "status"=>"activated"}

x = HanamiEmail::Alias.list
# => {"data"=>[{"from"=>"foo", "to"=>"bar@gmail.com"}]}

x = HanamiEmail::Alias.delete(from: "foo", to: "bar@gmail.com")
# => {"data"=>{"success"=>true}}

License

The gem is available as open source under the terms of the MIT License.