simeon at June 29th, 2015 01:00 — #1
A question for people smarter than me...
Would it be possible to do regularly automated importing of data into Webhook? Reason I ask is I have a few sites for Real Estate and Accommodation Bookings where the property data comes to me from their systems in XML files.
So could I build a tool that converts those files into JSON data which would then be imported into Webhook, then for that process to be automated to a particular schedule with fresh data each time.
I'm currently using Wordpress because there are plugins for XML importing which can be automated. But if I could do the same thing with a static site I'd much prefer it. The import process is intensive and I'd much rather serve users static pages if possible. Webhook's ability to do 'relationships' in the CMS seems like a more perfect fit than other static site generators. (Assigning a sales agent to a property, assigning a suburb to a property as examples).
The main downside to a static site would be doing filtered searches. If I have a site with 300 properties it would be good to have smart filtering for searches. Tough to do with static pages...
Any ideas would be greatly appreciated. It's something I'm interested in developing...
davesnider at June 29th, 2015 01:22 — #2
Yes. What you want is the API which is documented here with a simple example. http://www.webhook.com/docs/api-endpoints/
If the info is RSS formatted XML, you can simply use zapier in the example above. If it's custom XML, you'll need to write a custom management script that runs on a server and periodically crawls the XML, reformats it into the structure noted in our API and then perform a build through the API. There aren't any plugins for this, so it's something you'd need to write yourself.
simeon at June 29th, 2015 01:39 — #3
Bingo. A new XML file is created each time there is new data. It's the last bit that's the problem (write it yourself). Good to know it can be done with hired help though. Thanks.