i4w_sync_contacts

Usage:

This module provides a mechanism to (one-way) update the entire local Contact cache table (_isContact).

This module can be triggered from a server-side CRON job.

This module can be called through ‘Send an http post…’ from within an Infusionsoft application.

This module can be called manually by typing the URL in your browser.

Parameters:

i4w_sync_contacts=abc123Specifies the action to perform.
tags=234,456Specifies a list of comma-separated tag ID to use as a filter for the data sync.

tags=membershipsSpecifies that all memberships defined on the site will be used as a filter for the data sync.

tag_mode=anySpecifies that any of the tag ID’s may match in order to qualify.

tag_mode=allSpecifies that all of the tag ID’s must match in order to qualify.

truncate=yesFor larger databases,specifies that the table should be truncated/emptied before begin of the synchronization rather than update record by record.

Example:

Will sync ALL contacts from Infusionsoft into the local contact table.

http://www.yoursite.com/?i4w_sync_contacts=abc123

Will sync ALL contacts from Infusionsoft who have tag ID’s 123 OR 234.
http://www.yoursite.com/?i4w_sync_contacts=abc123&tags=123,234

Will sync ALL contacts from Infusionsoft who have tag ID’s 123 OR 234.
http://www.yoursite.com/?i4w_sync_contacts=abc123&tags=123,234&tag_mode=any

Will sync ALL contacts from Infusionsoft who have tag ID’s 123 AND 234.
http://www.yoursite.com/?i4w_sync_contacts=abc123&tags=123,234&tag_mode=all

Will sync ALL contacts from Infusionsoft who have ANY of the membership tags defined on the site.
http://www.yoursite.com/?i4w_sync_contacts=abc123&tags=memberships&tag_mode=any

Will sync ALL contacts from Infusionsoft into the local contact table but will first truncate/empty the table.
http://www.yoursite.com/?i4w_sync_contacts=abc123&truncate=yes

Notes:

In all examples provided, ‘abc123’ stand for the first six characters of your Infusionsoft API key. These are used to authenticate the request.