Undefined method addToGroup

Hello, I recently upgraded the infusionsoft php sdk to 1.3.* and after doing that a portion of my code is not working. Since the error stops early I’m not sure what else isn’t working but for sure I am getting this error

Fatal error: Uncaught Error: Call to undefined method Infusionsoft\Api\Rest\ContactService::addToGroup() in /home/infosol9/public_html/app/home.php:659 Stack trace: #0 {main} thrown in /home/infosol9/public_html/app/home.php on line 659

using the code: $infusionsoft->contacts()->addToGroup($attendees[$i], $tag);

Is there a replacement for this function that I could use or a version that I can revert to that will make it work? Also, this code is in the xml-rpc documentation at this site: xml-rpc - Keap Developer Portal

is there another site with more up to date xml-rpc function calls? Thanks for any help!

1 Like

I know this was months ago, and you’ve probably solved it or given up, but you have to specify xml like this:

$infusionsoft->contacts('xml')->addToGroup($attendees[$i], $tag);

Took me a while to figure this out too.