mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
db434c68ca
* http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyDomainIdentity.html * Added Fog::Parsers::AWS::SES::VerifyDomainIdentity.
30 lines
906 B
Ruby
30 lines
906 B
Ruby
module Fog
|
|
module AWS
|
|
class SES
|
|
class Real
|
|
|
|
require 'fog/aws/parsers/ses/verify_domain_identity'
|
|
|
|
# Verifies a domain. This action returns a verification authorization
|
|
# token which must be added as a DNS TXT record to the domain.
|
|
#
|
|
# ==== Parameters
|
|
# * domain<~String> - The domain to be verified
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Hash>:
|
|
# * 'ResponseMetadata'<~Hash>:
|
|
# * 'VerificationToken'<~String> - Verification token
|
|
# * 'RequestId'<~String> - Id of request
|
|
def verify_domain(domain)
|
|
request({
|
|
'Action' => 'VerifyDomainIdentity',
|
|
'Domain' => domain,
|
|
:parser => Fog::Parsers::AWS::SES::VerifyDomainIdentity.new
|
|
})
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|