Developers

Mostly about Wild Apricot API. Feel free to share examples of your code!

  1. Access to image fields through the API

    Please add access to the image fields through the API - I would like to be able to get the URL of the image the member uploaded.

    11 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    14 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  2. API call to create (POST) invoices

    I would like to be able to create (POST) invoices via API.

    This feature would help us when when we need to generate invoices for a many members. That payments can already be created via API is useful. The feature for Invoices that I am requesting would seem to complement the existing feature for Payments.

    9 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  3. Javascript access to Contact/Member/Event data

    I would love to have data available to JavaScript that can be used to access other contact, membership, or event data that may not be available on a page or widget.

    For instance, I have a case where I need to display links based on whether they belong to a certain membership group or membership level.

    There is some 'BONAPAGE' global variables that can be accessed for system or page view status but nothing for the record of the current screen you may be viewing.

    It would be great if there was a global object(s) available that contained the current…

    9 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    54 comments  ·  Flag idea as inappropriate…  ·  Admin →

    Public API is now available for javascript access by path http://your_account.wildapricot.org/sys/api/…;.

    This means that:

    • AJAX requests to API is in the same domain
      *JS application is able to access API without token
    • AJAX requests directed to the same domain as
    • JS access API with the same permissions as currently logged in user.

    Please read more on help site:
    http://help.wildapricot.com/display/DOC/Authenticating+API+access+from+a+Wild+Apricot+site+page

  4. Add extended Event API - add events, edit details, etc.

    Hi - there is an API for listing events. However there appears to be no API to create a new event and yet this seems like it would be a relatively frequent request for a mobile client.

    Am I missing it in the doc or is there no such event. If not - any plans to add such an API in the future? In the interim any suggestions for how a mobile app (native) could add an event?

    Thanks

    David

    9 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    10 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  5. 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 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  6. API with non-administrative permissions

    Original title: Cannot access API from within site pages if not Administrator.

    Hi,

    I have written JavaScript/HTML in a WildApricot site page to display events as a compact list in a table.

    If I login to an administrator account it all works fine, if I login to a non administrator account I get error 403 returned from a get Events API call.....

    "Failed to load resource: the server responded with a status of 403 (Current token does not provide access to scope 'events_view'.)"

    Code snippet is:
    <script>

    generateTable();

    function generateTable()
    {
    var EventsList = getDataFromApi("https://xxxxx.wildapricot.org/sys/api/v2/accounts/xxxxxx/Events?$sort=StartDate asc&$filter=Tags in [training,cruising,racing,racing_crew] AND…

    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    16 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  7. 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 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  8. 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
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  9. 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 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  10. 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
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  4 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  11. 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 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  12. Event Registration is not enabled after creating Event via API

    Hi,

    I have creates a Google script to upload event from a Google spreadsheet.

    I create the event with "RegistrationEnabled": false
    Create the RegistrationTypes for the event.
    Then I enable registrations for any membership level....
    {
    "Id": EventId,
    "RegistrationEnabled": true,
    "Details": {
    "AccessControl": {
    "AccessLevel": "Restricted",
    "AvailableForAnyLevel": true,
    }
    }

    When I go to the admin pages of the website the event is not enabled, access is shown as for Admin users only, however the fields in the form are correct.
    I have to press "Save" on the form and then the event registrations are enabled.
    I have tried all…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  13. Built-in export/reports data via api

    Can we please access the data from the built-in Wild Apricot "export" buttons via the API?

    Example: We currently go to Finances > Payments & Refunds > [Export button] > [tick all boxes] > [export as csv], then open the downloaded file and copy/paste into a Google Sheet so we can organise it.

    Surely when the Web Interface generates this export it is simply an internal API call... I want to skip the login/generate/download/copy/paste steps and instead pull the same report data straight in to the Google Sheet via the API. Is this possible?

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  14. Renewing Membership with API

    We would like to offer our members the chance to renew their membership from our WordPress site. How do you recommend we use the API to accomplish this in a way that integrates well with the regular Wild Apricot renewal process?

    Ideally we would update the contact (change the membership level, if needed, and update the renewal due date), produce an invoice for the renewal, and record a payment for that invoice. Have I missed something?

    Since the API still does not allow the creation of new invoices directly (I can generate an invoice for an event, but not for…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  15. Single Sign On server error

    Trying to implement SSO, but just getting 'an error has ocurred'

    URL is https://melbournerebels.wildapricot.org/sys/login/OAuthLogin?client_id=4wq28ex9ox&redirect_uri=http%3A%2F%2Flocalhost%3A3000&scope=contacts_me

    The redirect_uri has been added to the whitelist, and the error telling me to contact myself isn't helping much :)

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  16. Creating Bundles with API

    All was going very well with the API V2 until I wanted to set up Bundles with the membership. I can create contacts and assign a membership level. But when I try to assign a create a Bundle Administrator or Bundle Member, nothing seems to take. The API says only a Bundle ID and NOT an email address like the Import can use. To automate this process, I don't/can't use the Import process.

    Has anyone been successful in using the API to create a Bundle? (Administrator and/or Member)

    Any help is greatly appreciated. Our trial is almost over and this…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →

    Now it is possible.

    Step by step:
    1. Create bundle admin
    2. As a result of POST operation you will get a json of new contact.
    So find a record in FieldValues with “FieldName”: “Bundle ID” and take “Value” from that record.
    3. Create a bundle member
    4. Check we have a bundle and it contains members we expect

    Here is a complete description with requests you should send: https://gist.github.com/DmitriySmirnov/8b29429d75e9b66eef9c88d4a647a3e8

  17. Google Script for Google Apps

    Thank you to WildApricot for posting the sample code for an api connection to update a google spreadsheet. https://help.wildapricot.com/display/DOC/Sample+API+V2+applications

    I'm now using google scripts to produce (update) 13 regional spreadsheets of members each that has been shared with a regional coordinator so that I don't have to do this manually.

    Would love to hear how other organizations are using Google apps and integrating the wa api.

    Also would love to collaborate on building some additional Google Code scripts. Example, allowing each regional coordinator to email (mail merge) via gmail the members in their regional spreadsheet.

    I am also interested in…

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    12 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  18. Get member first name, last name, email address from id

    I have tried unsuccessfully to get a user first name, last name, email address from the ID.
    Here is what I tried to get the last name:
    https://api.wildapricot.org/v2.1/accounts/12345/contacts?async=false&$filter=$async=false&?$select='Last%20Name'%$filter='Member ID' eq 11111111

    What am I doing wrong?
    Thanks,
    Jay

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
  19. API Documentation

    Can someone point me to documentation describing how to get started developing on top of Wild Apricot, including what language to use to interact with the API? I'm a developer but haven't developed on top of a content management system before. I need to be able to display information from the Member table for a specific event.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
  20. getting an oath token using curl

    I am attempting to write a tiny app to download my club's calendar from wild apricot. I plan to write this in python 3, triggered by cron. The first step is to get an oauth token. As a test I tried the following curl command but I receive a 401/unauthorized error. Please note that XXXXX is not my real application ID :-)

    I tried variations, and also some similar code in python with the same result.

    Any hints?

    curl -v -H 'Authorization: Basic BASE64_ENCODED("XXXXX")' -H 'Content-Type: application/json' -H 'Transfer-Encoding: chunked' -d '{"grant_type":"client_credentials", "scope":"auto"}' https://oauth.wildapricot.org/auth/token

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →

    Here is an example

    1 Build your Authorization header.
    – Assume you API key is b8gxv-njhci-XXXXXXXXXXXX-50
    – encode the line “APIKEY:b8gxv-njhci-XXXXXXXXXXXX-50”, you will get
    “QVBJS0VZOmI4Z3h2LW5qaGNpLVhYWFhYWFhYWFhYWC01MA==”

    2 use this value to make a call
    curl -X POST \
    https://oauth.wildapricot.org/auth/token \
    -H ‘Authorization: Basic QVBJS0VZOmI4Z3h2LW5qaGNpLVhYWFhYWFhYWFhYWC01MA==’ \
    -H ‘Content-Type: application/x-www-form-urlencoded’ \
    -d ‘scope=auto&grant_type=client_credentials’

    ==
    I recommend to use POSTMAN before writing any code.

← Previous 1 3 4 5
  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base