Search code examples
python-3.xinfusionsoft

infusionsoft contact field query with python


I know how to connect to Infusionsoft with Python 3 and how to process the following simple example:

#Set up the contact data we want to add
contact = {}; #blank dictionary
contact[“FirstName”] = “John”;
contact[“LastName”] = “Doe”;
contact[“Email”] = "[email protected]";
contact[“Company”] = “ACME”;

But how do I mass update the WHOLE database? e.g. If I want to update ALL The Phone1 fields with an extra bit of code using IF statements.


Solution

  • Using Infusionsoft API you can only update contacts data one by one, sending a separate request per contact. Exact request depends on which type of API you use: REST or XML-RPC