Developers
Mostly about Wild Apricot API. Feel free to share examples of your code!
207 results found
-
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.
2 votes -
Contact API Returns Dataset or Status
Sometimes the v2.2 API calls (done via API token and auth built on the PHP class from your sampleApplication.php on GitHub) to get a specific Contact returns the user's fieldset, and sometimes it returns an object with a State of either 'Waiting' or 'Complete'.
I've tried adding ?$async=false but it doesn't seem to change anything. Matter of fact, when I added $async=false&$select='First name','Last name' (as mentioned here in the forums, previously) I got a 400 bad request.
It seems like sometimes the API kicks butt and returns everything I need instantly, but other times it sends a Status of either…
2 votes -
Developer Newsletter or Digest
Does WA send out any sort of developer newsletter or digest that summarizes all recent changes? Ideally it would also highlight activity on the forums (new ideas, top 10 ideas, etc).
2 votes -
Contacts API query that filters also on having (or not) a specific Membership Level
Trying to get a list of members that does not have the membership level 'Commitee member'. This query of course works:
https://api.wildapricot.org/v2.2/accounts/ACCOUNTID/Contacts?$async=false&$filter=(Status eq 'Active')AND(Archived eq false)
.. and gets me the +220 contacts that I expect, but this does not work:
https://api.wildapricot.org/v2.2/accounts/ACCOUNTID/Contacts?$async=false&$filter=(Status eq 'Active')AND(Archived eq false)AND(MembershipLevel ne 'Committee member')
Looking at the response from the preceding query.. the following is an example of a response:
////
{
"Contacts": [
{
"FirstName": "NAME",
"LastName": "LASTNAME",
"Email": "EMAIL",
"DisplayName": "NAME LASTNAME",
"Organization": "",
"ProfileLastUpdated": "2017-11-16T00:10:13.337+11:00",
"MembershipLevel": {
"Id": 679139,
"Url": "https://api.wildapricot.org/v2.2/accounts/<ACCOUNTID>/MembershipLevels/679139",
"Name": "Committee member"
},
.
.
////How can…
2 votes -
Batch request does not support member api ?
Tried below payload
[
{
"Id": "profile",
"Order": 0,
"PathAndQuery": "/v2.2/accounts/{{accountId}}/contacts",
"Method": "GET"
},
]But get this response
[
{
"RequestId": "profile",
"HttpStatusCode": 400,
"HttpReasonPhrase": "Request path does not look like valid API request",
"ResponseData": null
}
]2 votes -
Major problems with HTML Emails
We have been constructing the email module in to the JAB Creations web platform for the past few months. Some of our users receive email from WA and it has been having major problems that our automated systems simply can not fix:
- We do not support center, font and other obsolete element.
- We do not support align attribute to center an element directly or to adjust the text-align of child content.
- We do not support any obsolete HTML attributes that have long been replaced by CSS (align, cell-padding, cell-spacing, height, width, etc).
Our platform has obsoleted all versions of Internet…
2 votes -
How to get a list of file that have been uploaded to the server in code.
Getting some content provided to keep the website up to date is difficult as they are not overly technical, I'd like to write a script in a custom html widget to look into a folder <yourwebsite>/resources/Documents/<foldername> and a return a list of the files that currently exist in the folder. The aim is for pictures and pdf's to be listed and then the script creates the html to display the images with a link to the pdf.
This means users will only need to upload files and the site will auto publish them
Can this be done via the API,…
2 votes -
captcha
I want to disable Captcha security on the subscription form. Is there any way to do so? I have checked the Admin setting panel, but, it is not feasible in that way. So, I would appreciate any idea.
2 votes -
How to map radio button or multiple choice field for add contact via api
I have the contact form with different text box fields and radion buttons and multiple-choice values. i need to add these form entries in my Wild Apricot Contact list via API.
I have mapped successfully string and single-line text fields. but not able to map the like radio button fields and checkbox fields. please can you help me out this? i am using node.js to send API requests.
2 votes -
API Send Email - Cannot specify Reply to Address
I have been able to create and send emails via the API using a POST to /rpc/{accountId}/email/SendEmail. However, I have not found a way to change the default reply to address (the default is support@wildapricot.com).
Is there a way to specify a Reply To address similar to the option available when drafting an email on the website?
Thanks, Paul2 votes -
Check in member to an event using event registrations API
Knowing the eventID and memberID, it would be ideal if the API could allow me to check that member into that eventregistation.
2 votes -
add past event presentations
How to add past event presentations? Let's say I store them in a folder Presentations\2019-11-01. How to modify a past event page that it will display the pdf files stored in this folder?
2 votes -
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 -
Fetch UserID to drive custom content
I want to surface information from an external source that's specific to the current user's WA UserID (aka MemberID). Is it possible to determine programatically who's logged in (without GETting via API?). The javascript for this app will reside on WA and surface an external resource (probably a Google Sheet).
2 votes -
Deactivate
I would like to be able to deactivate a member through the API. Deactivating a pending membership is possible through /rpc/{accountId}/RejectPendingMembership, but that doesn't seem to be intended for existing memberships.
I tried sending a PUT to /rpc/Accounts/{accountId}/Contacts/{member_id} with 'MembershipEnabled: false', as well as setting FieldValues like "Member", "SuspendedMember", and "Membership enabled", but this returned a 400 error.
2 votes -
Example snippets for using webhooks?
Hi,
is it possible to get example of using webhooks? ie what data is sent? What return codes etc are required?
Thanks,
Russell2 votes -
Export discussion forum database
Export Discussion forum data to a csv file or xml
2 votes -
Search Results by State
It seems that when setting a contact/member's address you can choose for the "State" field either the full state name or the standard two-character abbreviation.
When adding the "State" field to a Member Directory search, you have to search specifically for EITHER the state name or abbrevation.
It seems to me that there should be an option (or perhaps it should be by default) that the results returned for any one particularly state should include BOTH those contacts with the state name and state abbreviation.
Why would you ever want to have separate database stores for the two different naming…
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 -
Combine Reorder pages, Position in menu & Page template selections into a single admin window
It is time to combine/merge the following site pages admin functions into a single admin window within the Website admin tab. Currently each website & system page has to be edited individually when moving the page into or out of the website menu system and when changing assigned page template. This can be time consuming when trying to move large volumes of pages in or out of the menu system or when changing templates. The Reorder pages function only allows the movement of page that are already in the menu system and doesn't account for any page not in the…
2 votes
- Don't see your idea?