If I for an example would post to my WIX through your new API from Zapier. It would be awesome of you could automap incoming JSON data to datasets without that much of coding.
I setup up an TOKEN KEY inside Backend/zapierone.js like this zapierZap1 = "mysecrettoken" and then in Zapier or other services I just add that token to the chunk of JSON sent to WIX. I also setup which dataset is to be used like dataSet = "newsItems". Here I could also if the fieldnames don't match map them manually like:
Title = headline;
Description = shortBrief;
DatePublished = pubDate;
Image = Enclosure["0"];
The first ones is names inside my WIX dataset and the second one is the fieldname inside the JSON POST.
There should also be two more settings that can be done.
1) Check for duplicates inside WIX Dataset automatically
duplicateChecker = Title, DatePublished;
That row will check before insert so that there is not any more records with the same combination of title and datepublished.
2) Download images to WIX Media Storage
downloadImages = true or false;
That row will determine if images found in urls in JSON POST should be downloaded into the WIX Media Storage Servers or not. If they are to be downloaded they will be downloaded to your dataset and can be connected as true image source.
After this is done you can POST JSON to the url below:
That url is calling my sites public API and then zapierone is telling the system to search for settings inside backend/zapierone.js and setup things from there.
Thanks for a great roadmap! I never believed my wife would be right 4 years ago when she told me WIX is the future, I do now!