Wildapricot hosting code to access the API
The webpage here: https://gethelp.wildapricot.com/en/articles/182 suggests that we can access wildapricot API's from wildapricot hosted web pages. ("Wild Apricot's APIs can be accessed from a 3rd-party server or application, or from a Wild Apricot site page. For information on differences between the two, see API access options.")
However the API access options page (https://gethelp.wildapricot.com/en/articles/484) only talks about access from a 3rd-party site, and, this request, says we can't run PHP on the wildapricot site: https://forums.wildapricot.com/forums/308926-designers/suggestions/8821459-inserting-php-pages#comments
So how can we host 'code' on the wildapricot servers that can access the API please?
We would like to write some custom code, without having to setup a separate external website to host and run it.
Thanks very much
You cannot host server-side code on Wild Apricot servers. But if you plug some JS code into pages of WA website, then this JS can access API.
Robin Sapiro commented
Dmitry Smirnov - I followed the link to House of Bamboo below - it works great.
Copied the sample at https://gist.github.com/DmitriySmirnov/0beda14e93bed7b5dc2f back to my site.
Edited the ClientID in that sample to match 1 setup on my site
No errors when I click on the Who Am I link - but nothing happens either.
I suspect that I may have to edit the line
But to what?
Or is there anything that I need to download and save on my site?
If so - from where and where does it need to be saved.
Brian Persson commented
Do the Wild Apricot developers or anyone know how to send radio button or checkbox values to the add contact API?
do you have any idea how to send radio button or checkbox values to add contact api?
Kevin Walton commented