Developers
Mostly about Wild Apricot API. Feel free to share examples of your code!
-
Custom field that a member can only view from a Wild Apricot restricted webpage using the API from JavaScript
I would like the ability to create a membership database field that a logged-in member can view from a Wild Apricot restricted webpage using the API from JavaScript. Administrators with Membership manager access would be able to view and edit this field.
2 votes -
Sending email via API
I'm trying to use the send email API call - https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/2.1.0#/Emailing.Operations/SendEmail but not having any luck.
I've tried from the API browser and via a Google Apps script. In both, I just get a 400 error.
I'm POSTing to https://api.wildapricot.org/v2.1/rpc/<ACCOUNT>/email/sendemail, with this as my body:
{
"Subject": "test email",
"Body": "test email",
"Recipients": [
{
"Id": 0,
"Type": "IndividualRecipient",
"Name": "test",
"Email": "<HIDDEN>"
}
],
"EventId": <EVENTID>
}(account, email and event id have been hidden). Each time, I get a 400 error: Parameter is required: EmailDraftParam.
The swagger documentation doesn't mention a "EmailDraftParam". What am I doing wrong?2 votes -
Single Sign On Very simple Ruby on Rails snippet
Hello,
I have been able to implement bare bones Wild Apricot single sign on steps in a blank Ruby on Rails project, thanks to Wild Apricot support! Please find attached a redacted and commented version of the code here for anyone who is trying to do similar with their own custom web app. This snippet prints out the ID of the user who is signed in.
Cheers!2 votesTeam Mobile responded
Great, thank you for contribution.
We put copy of attached file to API samples on github:
https://github.com/WildApricot/ApiSamples/blob/master/RubyOnRails/SSO/application_controller.rb -
Event creation via API cannot set all fields
I am creating Events using the API and cannot see how the following fields can be set (I can set these as an Administrator in the website) .....
Show registrants who want to be listed
to everyone
to members only
Include pending registrationsAlso I cannot see how the schedule for email announcements and reminders for an Event can be set via the API?
2 votesTeam Mobile responded
Status update in case someone new will see this topic:
The section “Show registrants who want to be listed” have been added to API already.Schedule for email announcements and reminders can’t be set via API at the moment.
As a workaround, you could create a template event on the web, set the start date in the distant future and all settings you need. Then you can clone it via POST request:
api.wildapricot.org/v2/rpc{AccountId}/CloneEvent
The request body should be like this:
{“EventId”: 123456} -
Nicasio Design APP
We are getting very close to launching a comprehensive member facing APP which will allow members to:
1- download the APP
2- Login or Register to your org
3- View and Register to events
4- Edit their profiles
5- Browse member directoryStand by for updates!
2 votes -
API v2 Events - AccessLevel and Sorting
Hi,
I'm using the API v2 to extract Events for a custom event list in another site. So far, the API is working.
I can get a list of event objects, but they seem to be in the order in which they were entered, not in the order of their dates! (date order should be the default sort, IMHO) Is there a way I can specify the sort order in the request URL?
Also, the API returns ALL events regardless of access level: is there a way to restrict the returned set to be just public events?
Thanks.
2 votesTeam Mobile responded
Sorting events via API have been published in 5.9 release.
https://help.wildapricot.com/display/DOC/Events+API+V2+callAccessLevel filtering is not in our near plans, sorry. But user’s support can change this situation. So we are changing status of this idea back to “Collecting comments”.
-
Saved search api Get Contact vs Member saved searches, and add creation date
When getting the saved search api results, add a divider between contact vs member saved searches. Have a way to call contact vs member saved searches based on where they were created. Also, save the creation date of the saved search and who created the saved search. This information is shown on Wild Apricot within the Saved search section but is not accessible in the api results.
1 vote -
Saved search api Get Contact vs Member saved searches, and add creation date
When getting the saved saved search api results, add a divider between contact vs member saved searches. Have a way to call contact vs member saved searches based on where they were created. Also, save the creation date of the saved search and who created the saved search. This information is shown on Wild Apricot within the Saved search section but is not accessible in the api results.
1 vote -
Why was includeDetails removed from /contacts/me
I am trying to use the API via JS on a WA page. I need a to fetch a specific field from the logged in member. The docs point to an api version 1 swagger that says that FieldValues can be obtained by appending ?includeDetails=true to the URL - however, this does not work for version 2, and version 1 is not accessible using /sys/api/v1/accounts/
I also cannot access https://api.wildapricot.org/publicview/v1/accounts through JS due to CORS. How can I get FieldValues via JS on a WA page?
1 vote -
WordPress Login idiosyncrasy
I am getting odd results when I use the WA Login Plugin - If the user has never logged in before everything works good - a new user account is created and the information is populated perfectly -
The problem is I created the wordpress site as an admin with my user id and password - the password and email address are the same on both sites but i get "An unknown error has occurred. Please try again later."
Is the match on the email address, the user name? what do i need to do to correct this ( i…
1 vote -
auth0
I have built a sms portal using Laravel + Auth0/Google_SSO + Wild Apricot (read only) API's, which works great. That Auth0 authenticated users against the Google user repository, but now have started building a second Laravel + Auth0 + Wild Apricot (read & write) API's where I want to first be able to use the Auth0 SSO to authenticate against Wild Apricot. I am using their "oauth capable" social login (URL: https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2 ), which seems to work. I get the WA username/password login screen and it signs in, but there it stops and seems like the token that is issued…
1 vote -
current token does not provide access to scope 'contacts_me'
I'm trying to simply create software that pulls our contact list. I'm using the API key I've created, I granted full-access. Whenever I try, in Postman, to pull account or contacts, I get "current token does not provide access to scope 'contacts_me'. HTTP 403. I thought the whole point of using the API key is that I get full access, what am I missing?
1 vote -
Date Format in API Create Event POST
When creating new events (these are simple RSVP events) via the API interface, the web interface shows the new event in the default timezone of the Wild Apricot account. This means my start date is almost always wrong for these events.
If I am creating a. new event for Utah, for example, I have set the timezone fields of the API payload as follows ;
"Details": {
"DescriptionHtml": "A fun family event",
"PaymentInstructions": "None",
"TimeZone": {
"ZoneId": "USA & Canada",
"Name": "Mountain Time",
"UtcOffset": -6
},<truncated>
. When I run my POST command I get back an event_id as…
1 vote -
Contact Webhooks
How to get whether or not a contact or member was deleted using webhooks without running too many api calls. Could there be an upgrade to the contacts webhooks and return 'Action' similar to events or that of membership?
1 vote -
contact/me does not return an "Organization"
I am using accounts/{accountId}/contacts/me endpoint to get details for the currently-logged in user. The API documents there should be an "Organization" in the response. However, this field is always null/the empty string. Is there a way to get this information?
1 vote -
Contacts API returns incorrect Profile Last Updated
I recently (2021-12-19) suspended and archived a member (ID 57031785). The contacts API is still returning the timestamp of the previous update (2021-06-18T10:58:17.37-07:00) for Profile Last Updated.
This invalidates any API usage that seeks to minimize server load and response time by fetching only changed records.
I believe this is a bug, and it prevents me from using the Contacts API effectively. I will have to do a full contacts dump every time I want to synchronize my local DB, and will increase the load on your server significantly, since this is done at least once a day, sometimes more…
1 vote -
Contact API sort options
Currently the Contact API supports Name or MemberSince order. For the purposes of synching an external database efficiently, it would be really nice to add a sort by contact ID
1 vote -
All Events API not returning all data
Hi, I am calling all the events and get all the data up until 'tags', but the swaggerhub documentation shows that details, description, etc. I know all of this can be accessed through the /events/{event_id}, but then if I am querying all the upcoming events and need the details, I am then looping through and performing 20+ api calls, which seems redundant. I was curious if you can retrieve the details, description, etc via the /events/ api, or if the documentation has it listed incorrectly. Thanks.
1 vote -
Extend non-admin API to allow filtering of events
The non-admin API returns a list of all events that the current user has registered for. While I can filter the results to show only future events, it would be nice if the API did this for me. The admin API allows this by letting me specify the StartDate.
1 vote -
Privacy for Contact List
I had posted last week that I cant find out how the contacts list API respects privacy settings for each contact but as yet, no replies. Is there an API that can return the privacy settings a contact has specified? In this way, our app could maybe parse those privacy settings and figure out what contact fields (e.g. phone, email) it can display. In the absence of any such API, or the contact list API ignoring contact privacy our app will be making personal private information public which is obviously a show stopper.
1 vote
- Don't see your idea?