We are trying to implement Keap API by following the examples of Infusionsoft PHP SDK
GitHub - infusionsoft/infusionsoft-php: PHP client library for the Infusionsoft API.. Our very first code is not working although we have put the correct Service Account key.
Here is the error “Fatal error** : Uncaught Error: Class “Infusionsoft\AuthenticationType” not found”
require_once 'vendor/autoload.php';
$infusionsoft = new \Infusionsoft\Infusionsoft(array(
'apikey' => 'Service Account Key'
));```
Did you install the entire iSDK dependencies using composer? It’s saying the Class can’t be found, so something is missing in the files you have.
Thank you @geekgoddess I uploaded all the files again and it worked.
I have the same code, but when I make calls to API endpoints get an error out of the OAuth portion of the SDK:
“Call to a member function getEndOfLife() on null”
Suggestions on what I’ve done wrong?
Oh, it looks like I will need to update to the most recent SDK version. This SAK functionality appears to be a recent addition to the SDK.