Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Undefined class constant 'REALTIME' #4

Open
random-robbie opened this issue Jun 24, 2015 · 1 comment
Open

Fatal error: Undefined class constant 'REALTIME' #4

random-robbie opened this issue Jun 24, 2015 · 1 comment

Comments

@random-robbie
Copy link

<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require('/home/smspi/public_html/org/nameapi/client/services/ServiceFactory.php');
    use org\nameapi\ontology\input\context\Context;
    use org\nameapi\ontology\input\context\Priority;
    use org\nameapi\ontology\input\context\TextCase;
    $context = Context::builder()
                ->apiKey('MYAPIKEY')
->priority(Priority::REALTIME)
                ->build();


                $serviceFactory = new ServiceFactory($context);
                $deaDetector = $serviceFactory->emailServices()->disposableEmailAddressDetector();
                $result = $deaDetector->isDisposable("[email protected]");
                $dispose =  $result->getDisposable()->toString();
                echo $dispose;
?>

what am i doing wrong?

Fatal error: Undefined class constant 'REALTIME'

@gleyendeker
Copy link

Hello @txt3rob , I think that the problem is that:

->priority(Priority::REALTIME)

must be:

->priority(Priority::REALTIME())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants