Skip to content

Call to undefined method org\nameapi\client\services\system\SystemServiceFactory #19

Description

@Oakwv

I have:
OPEN TAG
require_once('/hdcol2/redoakproject/vendor/optimaize/nameapi-client-php/src/org/nameapi/client/services/ServiceFactory.php');
use org\nameapi\client\services\ServiceFactory;
use org\nameapi\ontology\input\context\Context;
use org\nameapi\ontology\input\context\Priority;

function nameparse() {
$context = Context::builder()
->place('US')
->priority(Priority::REALTIME())
->build();

$serviceFactory = new ServiceFactory('THEKEYISHERE', $context);

//var_dump($serviceFactory);
$pinger = $serviceFactory->systemServices()->pinger();
$pong = $pinger->ping();

}
CLOSE TAG

I get:

Call to undefined method org\nameapi\client\services\system\SystemServiceFactory::pinger()

I have tried a few different combinations of use and require. No luck

NO WORRIES I SWITCHED TO CURL WORKS

Thanks
oak

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