Call to undefined method org\nameapi\client\services\system\SystemServiceFactory
Opened this issue · 0 comments
Oakwv commented
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