Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Target the result of verified email addresses a little more specifica…

…lly in the XPath query. Add a method to verify an email and get the send quotas and stats.
  • Loading branch information...
commit ba5aa3e4ae1ba10c7d20a6b3feed23621a1cecbb 1 parent 9a3a708
@chrismeller authored
Showing with 27 additions and 1 deletion.
  1. +27 −1 simpleemail.php
View
28 simpleemail.php
@@ -23,7 +23,33 @@ public function __construct ( $aws_access_key = null, $aws_secret = null, $endpo
public function list_verified_email_addresses ( $options = array() ) {
- $result = $this->request( 'ListVerifiedEmailAddresses', $options, '//ns:VerifiedEmailAddresses' );
+ $result = $this->request( 'ListVerifiedEmailAddresses', $options, '//aws:VerifiedEmailAddresses/aws:member' );
+
+ return $result;
+
+ }
+
+ public function verify_email_address ( $email, $options = array() ) {
+
+ $options['EmailAddress'] = $email;
+
+ $result = $this->request( 'VerifyEmailAddress', $options );
+
+ return $result;
+
+ }
+
+ public function get_send_quota ( $options = array() ) {
+
+ $result = $this->request( 'GetSendQuota', $options );
+
+ return $result;
+
+ }
+
+ public function get_send_statistics ( $options = array() ) {
+
+ $result = $this->request( 'GetSendStatistics', $options );
return $result;
Please sign in to comment.
Something went wrong with that request. Please try again.