I think I’ve installed the isdk properly, but I consistently get an error after this code. I’m sure I’m missing a step that I’m not seeing -
Here’s an example of the code:
<?PHP require("vendor/isdk.php"); require_once 'vendor/autoload.php'; $infusionsoft = new Infusionsoft\Infusionsoft(array( 'clientId' => 'ValidID', 'clientSecret' => 'ValidSecret', 'redirectUri' => 'MYURI', )); $yourStoredToken="VALID TOKEN"; // retrieve the existing token object from storage $infusionsoft->setToken($yourStoredToken); $app = new iSDK(); // perform authorization tasks $returnFields = array('Email', 'FirstName', 'LastName'); $conDat = $app->dsLoad("Contact", 123, $returnFields); echo "".$conDat; The error I get is: Fatal error: Call to a member function send() on a non-object in /****etc/vendor/isdk.php on line 123