Skip to content

Fatal error: Undefined class constant 'REALTIME'  #4

Open

Description

@random-robbie
<?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("myemail@gmail.com");
                $dispose =  $result->getDisposable()->toString();
                echo $dispose;
?>

what am i doing wrong?

Fatal error: Undefined class constant 'REALTIME'

Activity

  1. gleyendeker commented on Apr 22, 2016

    @gleyendeker

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions