Developers
Mostly about Wild Apricot API. Feel free to share examples of your code!
104 results found
-
Is it correct that users cannot get their membership data via API?
I'm working with a tool called Cognito Forms that allow some fairly complex form functionality. One great feature is the ability to pass values to a form embedded on a Wild Apricot page.
We are currently working on a feature where a member navigates to a member-only page for expense reimbursement. The page loads an embedded form and pre-fills most of the information.
Right now, I am using the API to use the contacts/me call to load name and email, but I need the contact/{contact-ID} to get the address and phone.
After getting the script completed and pre-populating the form…
1 voteHi Andy,
contacts/me endpoint returns short version of contact data. If you need all field values, just add query string parameter includeDetails=true.
Here is an example:
https://api.wildapricot.org/publicview/v1/accounts/183112/contacts/me?includeDetails=true
-
Swaggerhub returns 403 Forbidden on all requests to API
Real simple: Using Swaggerhub to play with the API. I give it a valid API key, it is able to login/authenticate successfully, but the only function returning code 200 OK is default (/) ... when I try the /accounts function or any other function I get 403. Tried 2 different API keys..... with both read-only and admin level access but No matter what I do I get a 403 trying to test the API using the swaggerhub UI
1 voteThat typically occures if you don’t check “Auto” checkbox in the scopes list (swaggerhub does not allow to check it by default).
So when oAuth service gets your response it creates oAuth token with almost no permissions. Technically it is totally valid situation, but such token is almost useless.
So the solution is to check “Auto” checkbox in the list of scopes.
-
Connecting to PowerApps with Swagger
I've downloaded the Swagger file for administrative access and imported into PowerApps in an attempt to create a custom connector. It asks for several fields (see screen shot in attached file).
I'm not clear on two of the fields to fill in.
For Authorization URL, it is showing a default of:
https://YOUR_ORGANIZATION.wildapricot.com/sys/login/OAuthLogin
I'm not sure what I should replace YOUR_ORGANIZATION with.
It is also requesting a Refresh URL and I don't know what to put in there.
Any help would be appreciated. A documented PowerApps connector would be of general use to the WA community and I'd be happy to…
2 votes -
Access registrants who are on the waitlist via API
We need to be able to export the list of registrants who are on the waitlist. If a course (event) is full, we want to be able to pre-register waitlisted people the next time that we offer the course.
Currently we have to copy-and-paste from the full event to the next event, a tedious and error-prone activity.4 votesWe added a parameter includeWaitList, which allows to get waitlisted registrants through API. Each event registration now has a flag “OnWaitlist” to indicate waitlisted registrations.
See detailed description here https://app.swaggerhub.com/apis/WildApricot/wild-apricot_public_api/2.1.0#/Events.EventRegistrations/GetEventRegistrationsList
-
Need to redirect OLD WA page address to NEW WA page address
I used to make an index.html file with a meta redirect tag but this doesn't happen with WA according to Tech Support.
We originally had a WA site that was modified and the new site has the same pages with different URLs. Our fear is that, for instance, someone may have bookmarked the OLD site's page, and when clicked on brings them to the wrong page.
Help?
1 voteThis could be done with a piece of JS code on obsolete pages. Here is an article about using custom JS on pages: https://gethelp.wildapricot.com/en/articles/212
-
OAUTH - Not getting back authorization token
Perhaps someone in this forum can help answer this question. There aren't any OAuth exampels for PHP.
My code is failing on the last ajax call to the OAuth API. I am getting a NULL response from Wild Apricot.
Perhap someone can let me know what is wrong withthis code:
…$credentials = '[client_id]:[secret]'; //extract data from the post //set POST variables $url = 'http://oauth.wildapricot.org/auth/token'; $fields = array( 'grant_type' => "authorization_code", 'code' => CCGetParam("code",0), 'client_id' => '[client_id]', 'redirect_uri' => "https://[domain.com]/login2.php", 'scope' => 'contacts_me' ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } $fields_string = rtrim($fields_string,
1 vote -
Using API on MS Access 2016
I extended the excel sample API V2 app to develop an attendance system for our club. For a number of reasons, we're working to move off of Excel and onto Access. The sample code from WA runs smoothly on Excel, but not on Access. The sample includes the following (in function GetOAuthToken)
Dim httpClient as IXMLHTTPRequest
Set httpClient = CreateObject("Msxml12.XMLHTTP.3.0")
httpClient.Open "POST", url, False(where url = "https://oauth.wildapricot.org/auth/token")
The client.open returns 'unauthorized'. I cannot find any documentation on the open method of the httpclient object. And I have no idea what extra authorization I need when working in…
1 vote -
"The remote server returned an error: (403) forbidden."
I am using the sample visual studio c# program you have provided (see attachment). The program is failing in trying to access https://api.wildapricot.org/v2. Version2 is failing with a 403 forbidden error message. Any suggestions how I could solve this issue?
1 voteThe root cause was in using the sample for a v1 API.
-
Javascript not executing
I'm trying to use javascript to hide/empty a span.class on my registration page. When I first type the code in the span empties just as I would assume it would. However once I save the page the javascript no longer executes.
<script>
$('span.levelRecurring:contains("No recurring payments")').empty();
</script>Any ideas?
3 votes -
I have successfully integrated the WA API into Integromat
Integromat.com is like Zapier or IFTT but a bit more powerful AND easy to use. I'm added an authorization Connector and two modules for retrieving and filtering Contacts. Using their Slack integration I can now ask for Integromat to calculate a Membership Report and report back to Slack. Next up is a "new member" notification.
5 votesThe integration is now live on https://integromat.com/en/integrations/wild-apricot
-
Event registration types created via API cannot be edited in the web interface
It is no longer possible to edit an event registration type in the web UI if it was created via an API call. Attempting to load these registration types causes Uncaught Error: Invalid cancellationBehavior to be thrown in the console and the page spins forever without loading.
Unfortunately due to the asinine piecemeal implementation of the API it is only possible to set this field through the web interface. See the issue? Yet another reason why you should use your own dang API; you could catch these issues before they break your customers' workflow and piss them off.
Console log…
1 vote -
API endpoint for allowing users to cancel registrations
The new feature added today to allow users to cancel their own registrations is a good start, but we need to be able to set it through the API for it to really be useful. Is there a plan to add this in the near future?
5 votes -
Postman collection
I previously posted about whether anyone had written a Swagger file for WA API that could be used to connct Microsoft PowerApps to WA. New release of PowerApps supports using a Postman collection instead of a Swagger file. Has anyone built a Postman collection for WA API?
2 votesPostman is able to import collections from swagger specification. Our APIs are published on swaggerhub here: https://app.swaggerhub.com/search?type=API&owner=WildApricot
-
API calls to update contacts suddenly failing
We have a Google Apps script that is used to update a custom contact field. This code has been working and unchanged for the past year, and has suddenly lost the ability to update contacts. Other API calls to get contacts, update event registrations, etc. are still working fine, but can't update any contact fields through the API. Attempts to do so result in an HTTP 500 error. We are still able to update contacts through the web interface.
Relevant information pasted after the break.
Error:
[17-09-16 07:31:21:841 CDT] Exception: Request failed for https://api.wildapricot.org/v2/accounts/84576/Contacts/40772038 returned code 500. Truncated server response:…1 voteWe fixed this issue, so it should work now.
Feel free to reopen this topic if the issue remains. -
Swagger
Has anyone built an OpenAPI (Swagger) file for connecting to WA APIs? I'm trying to make a sign-in kiosk with Microsoft PowerApps and it connects through a JSON OpenAPI definition.
3 votesWe published our APIs on swaggerhub.
Please find API for administrative access
https://app.swaggerhub.com/apis/WildApricot/wild-apricot_public_api/2.1.0API for non-administrative access
https://app.swaggerhub.com/apis/WildApricot/wild-apricot_api_for_non_administrative_access/1.0.0 -
API Upload Pictures
Hey WA Developers, I'm trying to work through some of the API documentation and I'm hung up on the "Uploading Pictures" documentation.
https://help.wildapricot.com/display/DOC/Pictures+API+V2+call
I've got a Google Script constructed to upload an image from Google Drive to my trial WA site and I can't get it to work! 400 response code. Anybody up for taking a look and pointing out what I am doing wrong? Thanks so much!1 vote -
Contacts/me Returns null
Hi!
Using some of the sample code from the GitHub repo I've created a few custom PHP pages for events on a third party site. I'm trying to make the registration functionality work.
The problem that I'm running into is the Contacts/me API call returns null even with a user logged in. I'm using the format:
{baseAPIaddress}/{version}/Accounts/{accountID}/Contacts/meI am able to run Contact/{ContactID} and get the relevant data back. Do anyone know what might cause this?
Thanks, Jason.
1 voteThe problem was solved.
Note that API key isn’t connected with any contact. So contacts/me will return null if you are not authenticated by login/password. -
api events
I am having trouble adding a new event through the api. I get a 403 error. Here is my google script code if anybody would be so kind as to point out where I have messed up. :) Thanks so much.
https://gist.github.com/portercar/945c29474fece0e208991ac27f724203
1 vote -
Export members data into Google docs
How do I export Member data directly into a Google Doc (live)? Step-by-Step for newbies.
1 voteIf you need one time export, just make an export to Excel file (https://help.wildapricot.com/display/DOC/Exporting+members+and+other+contacts) and then upload this file to google drive.
If you want to do it on regular basis, you could make some automation using google script. We have a sample code in google script (https://github.com/WildApricot/ApiSamples/tree/master/GoogleScript), which could be a good starting point for your project.
-
daily member data import
I would like to pick up membership data from a gold database (Adds, edits, deletes) and put into each chapters database (each chapter has a version of WA) - Thanks
1 voteIt is possible with Public API. Please take a look at our help: help.wildapricot.com/display/DOC/API+V2+calls
- Don't see your idea?