Trigger API call on Contact Change?
I would like to use the V2 API to automatically send updates to a FileMaker Pro database (and maybe others in the future) whenever certain fields in a Contact are changed such as name, address, email, etc.
The documentation on the API is clear and I can manually launch such a PHP program from the browser, but I need to automate the process so whenever a user or an administrator updates a contact record, the PHP program is invoked behind the scenes.
Is this possible?
Thanks in Advance,
Matthew Thomure commented
+1 for callback
Russell Noble commented
Call back would be ideal, but until implemented at least a "Last Updated" field which could be queried, so we could just find new/updated records and process them, rather than have to retrieve all records.
We are interested in this also.
In a long-term, it's much better to have a callback system - so that WA calls a client provided URL when a trigger fires - rather then all our clients having constantly running code to check if some data changed.
The easiest way to implement it is to write a script like here https://gist.github.com/anonymous/cb2e35dc3f330b957502 . Please note it's just a sample to describe an idea, not a valid script for any language.
No, not possible. I'll move this to Wishlist, API category