public function verify($params = null)
    {
        $requestor = new Requestor($this->_apiKey);
        $url = $this->instanceUrl() . '/verify';
        list($response, $apiKey) = $requestor->request('get', $url, $params);
        if (isset($response['address'])) {
            $verified_address = Util::convertToEasyPostObject($response['address'], $apiKey);
            if (!empty($response['message'])) {
                $verified_address->message = $response['message'];
                $verified_address->_immutableValues[] = 'message';
            }

            return $verified_address;
        } else {

            return Util::convertToEasyPostObject($response, $apiKey);
        }
    }
public function verify($params = null)
    {
        $requestor = new Requestor($this->_apiKey);
        $url = $this->instanceUrl() . '/verify';
        list($response, $apiKey) = $requestor->request('get', $url, $params);
        if (isset($response['address'])) {
            $verified_address = Util::convertToEasyPostObject($response['address'], $apiKey);
            if (!empty($response['message'])) {
                $verified_address->message = $response['message'];
                $verified_address->_immutableValues[] = 'message';
            }

            return $verified_address;
        } else {

            return Util::convertToEasyPostObject($response, $apiKey);
        }
    }
public function verify ( $ params = null ) { $ requestor = new Requestor ( $ this -> _apiKey ) ; $ url = $ this -> instanceUrl ( ) . '/verify' ; list ( $ response , $ apiKey ) = $ requestor -> request ( 'get' , $ url , $ params ) ; if ( isset ( $ response [ 'address' ] ) ) { $ verified_address = Util :: convertToEasyPostObject ( $ response [ 'address' ] , $ apiKey ) ; if ( ! empty ( $ response [ 'message' ] ) ) { $ verified_address -> message = $ response [ 'message' ] ; $ verified_address -> _immutableValues [ ] = 'message' ; } return $ verified_address ; } else { return Util :: convertToEasyPostObject ( $ response , $ apiKey ) ; } }
verify an address

@param mixed $params
@return mixed
@throws \EasyPost\Error
verify an address