1

This was working all this while with no issues and updates.

$user_id = $infusionsoft->contacts->addWithDupCheck($contact, 'Email');

Now all of a sudden it isn't

PHP Fatal error: Uncaught Error: Call to undefined method Infusionsoft\Api\Rest\ContactService::addWithDupCheck() in /home/user/public_html/infusionsoft/addContact.cli.php:29

~/public_html/infusionsoft$ cat composer.json
{
    "require": {
        "infusionsoft/php-sdk": "^1.0"
    }
}
Penny Liu
  • 15,447
  • 5
  • 79
  • 98
anjanesh
  • 3,771
  • 7
  • 44
  • 58
  • "All of a sudden"? Have you compared the current version against the working version in your Git repository? – ceejayoz Feb 19 '20 at 03:47

1 Answers1

1

InfusionSoft has replaced their older XML-RPC API with REST. REST is now default. So I had to do :
$user_id = $infusionsoft->contacts('xml')->addWithDupCheck($contact, 'Email');

anjanesh
  • 3,771
  • 7
  • 44
  • 58