public function getVerifiedEmails() {
        $emails = array();
        try {
            $user = $this->api('/me');
            if (isset($user['emails']) && is_array($user['emails']) && count($user['emails']) > 0) {
                foreach ($user['emails'] as $key => $value) {
                    if (isset($value['verified']) && $value['verified'] == true) {
                        $emails[] = $value['value'];
                    }
                }
            }
        } catch (VGS_Client_Exception $e) {
            self::errorLog('Exception thrown when getting logged in user:'. $e->getMessage());
        }

        return $emails;
    }
public function getVerifiedEmails() {
        $emails = array();
        try {
            $user = $this->api('/me');
            if (isset($user['emails']) && is_array($user['emails']) && count($user['emails']) > 0) {
                foreach ($user['emails'] as $key => $value) {
                    if (isset($value['verified']) && $value['verified'] == true) {
                        $emails[] = $value['value'];
                    }
                }
            }
        } catch (VGS_Client_Exception $e) {
            self::errorLog('Exception thrown when getting logged in user:'. $e->getMessage());
        }

        return $emails;
    }
public function getVerifiedEmails ( ) { $ emails = array ( ) ; try { $ user = $ this -> api ( '/me' ) ; if ( isset ( $ user [ 'emails' ] ) && is_array ( $ user [ 'emails' ] ) && count ( $ user [ 'emails' ] ) > 0 ) { foreach ( $ user [ 'emails' ] as $ key => $ value ) { if ( isset ( $ value [ 'verified' ] ) && $ value [ 'verified' ] == true ) { $ emails [ ] = $ value [ 'value' ] ; } } } } catch ( VGS_Client_Exception $ e ) { self :: errorLog ( 'Exception thrown when getting logged in user:' . $ e -> getMessage ( ) ) ; } return $ emails ; }
Get all verified emails for the logged in user.
@return array
Get all verified emails for the logged in user .