1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/ses/verify_email_address.rb
Andy Delcambre 284430f526 Initial work on AWS SES (Simple Email Service)
* All parsers filled out
* Requests mostly filled out
* SendEmail and SendRawEmail still need to be implemented
2011-01-26 04:46:27 +08:00

38 lines
1,016 B
Ruby

module Fog
module AWS
class SES
class Real
require 'fog/aws/parsers/ses/verify_email_address'
# Verifies an email address. This action causes a confirmation email message to be sent to the specified address.
#
# ==== Parameters
# * email_address<~String> - The email address to be verified
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'VerifyEmailAddressResult'<~nil>
# * 'ResponseMetadata'<~Hash>:
# * 'RequestId'<~String> - Id of request
def verify_email_address(email_address)
request({
'Action' => 'VerifyEmailAddress',
'EmailAddress' => email_address,
:parser => Fog::Parsers::AWS::SES::VerifyEmailAddress.new
})
end
end
class Mock
def verify_email_address(email_address)
Fog::Mock.not_implemented
end
end
end
end
end