Please guide me with my following query. I am trying to push (store) data in my infusionsoft contact record in form of tag & custom field. But unfortunately the value is not getting stored in custom field and neither tag is being applied successfully via API. Further , please find the code for custom field api and the error reported.
Error:
Fatal error: Call to undefined method Infusionsoft_DataFormField::getCustomFieldValues() in /home4/steamline/public_html/CI/infusionsoft-php-sdk-master/Infusionsoft/DataFormField.php on line 78
It is a little unclear what you are trying to do, but you are trying to access the custom field definition above not the instance of the custom field on the contact. What version of the API are you trying to use REST or XMLRPC?
Looking at the folder naming, you are using a third-party PHP SDK, and the error thrown is showing that getCustomFieldValues is not a valid method. Looking at their repo I do not see that method.
I would assume, then, that whatever example you are following has not been updated to the SDK as represented in their master branch.