I have tried the official python api library but got an error. I am certain I’m using the proper api key because I verified it with the Wordpress plugin. I’m following the example code in the documentation:
from infusionsoft.library import Infusionsoft
infusionsoft = Infusionsoft('xxxx', settings.INFUSIONSOFT_API_KEY)
contact = {'Email': 'tdkwon@gmail.com'}
infusionsoft.ContactService('add', contact)
The error I receive is this:
Traceback (most recent call last):
File "C:\Users\Tom\.virtualenvs\tru\lib\site-packages\IPython\core\interactiveshell.py", line 2885, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-100eac2430f9>", line 1, in <module>
infusionsoft.ContactService('add', contact)
TypeError: 'NoneType' object is not callable