public function getIdentityVerificationAttributes($identities)
    {
        $this->_action = 'GetIdentityVerificationAttributes';
        $this->_method = 'GET';
        $this->_refreshDate();

        $parameters = array();

        $index = 1;
        if (is_array($identities)) {
            foreach ($identities as $identity) {
                if (!(filter_var($identity, FILTER_VALIDATE_EMAIL) || preg_match('/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/', $identity))) {
                    throw new Exception('Identity must be EmailAddress or Domain');
                    return;
                }
                $parameters['Identities.member.' . $index] = $identity;
                $index++;
            }
        }

        $this->_generateSignature($parameters);
        $res = $this->_request();
        if ($res['code'] == 200) {
            $entries = $res['body']->GetIdentityVerificationAttributesResult->VerificationAttributes->entry;
            $ret = array();
            foreach ($entries as $entry) {
                $ret[] = array(
                    'Email' => (string) $entry->key,
                    'Token' => (string) $entry->value->VerificationToken,
                    'Status' => (string) $entry->value->VerificationStatus
                );
            }
            return $ret;
        } else {
            return new SimpleEmailServiceError((string) $res['body']->Error->Code);
        }
    }
public function getIdentityVerificationAttributes($identities)
    {
        $this->_action = 'GetIdentityVerificationAttributes';
        $this->_method = 'GET';
        $this->_refreshDate();

        $parameters = array();

        $index = 1;
        if (is_array($identities)) {
            foreach ($identities as $identity) {
                if (!(filter_var($identity, FILTER_VALIDATE_EMAIL) || preg_match('/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/', $identity))) {
                    throw new Exception('Identity must be EmailAddress or Domain');
                    return;
                }
                $parameters['Identities.member.' . $index] = $identity;
                $index++;
            }
        }

        $this->_generateSignature($parameters);
        $res = $this->_request();
        if ($res['code'] == 200) {
            $entries = $res['body']->GetIdentityVerificationAttributesResult->VerificationAttributes->entry;
            $ret = array();
            foreach ($entries as $entry) {
                $ret[] = array(
                    'Email' => (string) $entry->key,
                    'Token' => (string) $entry->value->VerificationToken,
                    'Status' => (string) $entry->value->VerificationStatus
                );
            }
            return $ret;
        } else {
            return new SimpleEmailServiceError((string) $res['body']->Error->Code);
        }
    }
public function getIdentityVerificationAttributes ( $ identities ) { $ this -> _action = 'GetIdentityVerificationAttributes' ; $ this -> _method = 'GET' ; $ this -> _refreshDate ( ) ; $ parameters = array ( ) ; $ index = 1 ; if ( is_array ( $ identities ) ) { foreach ( $ identities as $ identity ) { if ( ! ( filter_var ( $ identity , FILTER_VALIDATE_EMAIL ) || preg_match ( '/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/' , $ identity ) ) ) { throw new Exception ( 'Identity must be EmailAddress or Domain' ) ; return ; } $ parameters [ 'Identities.member.' . $ index ] = $ identity ; $ index ++ ; } } $ this -> _generateSignature ( $ parameters ) ; $ res = $ this -> _request ( ) ; if ( $ res [ 'code' ] == 200 ) { $ entries = $ res [ 'body' ] -> GetIdentityVerificationAttributesResult -> VerificationAttributes -> entry ; $ ret = array ( ) ; foreach ( $ entries as $ entry ) { $ ret [ ] = array ( 'Email' => ( string ) $ entry -> key , 'Token' => ( string ) $ entry -> value -> VerificationToken , 'Status' => ( string ) $ entry -> value -> VerificationStatus ) ; } return $ ret ; } else { return new SimpleEmailServiceError ( ( string ) $ res [ 'body' ] -> Error -> Code ) ; } }
Get verification status.

@param string[] $identities List of string. (email or domain)

@return object[] {
Email  => string,
Token  => string,
Status => string
}
Get verification status .