Skip to content

Developers

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

99 results found

  1. I need to access the "group participation" data for the current user. Can anybody show me how to access the data?

    I need to access the "group participation" data for the current user. Can anybody show me how to access this data?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Resolved  ·  Team Mobile responded

    Group participation data can be foubd in the fiels with name ‘Group participation’. For example:

    var contact = getContactById( 123 )
    for( i=0; i<contact.FieldValues.length;i++) {
    var record = contact.FieldValues[i];
    if( record.FieldName == ‘Group participation’)
    var groups = record.Value;
    }

  2. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    17 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. Work around for sorting members who are using their photo albums.

    1. I created a question (required to Members) "Are you using your albums to display your art?" Yes/No

    2. The membership field was made public

    3. I then created a saved search on the new membership field that allows me to pull out only members who have a "yes"

    4. I created another Membership directory on a separate page. So I have 2 membership directories in use. One that displays all members and another that displays members who are using their photo albums.

    5. I created a link on my home page directing the public to view the membership directory only for those who have…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  0 comments  ·  How to  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. event Registrations giving 500 error code

    I am tring to create a new event registration. but i am getting 500 error code. Internal server occured.

    Not sure if this is how the data has to be passed.

    var data = "eventID=2351562&contactID=33494566®istrationTypeID=3201125&Email=bala%40mindlens.com.sg";

    var xhr = new XMLHttpRequest();
    xhr.withCredentials = true;

    xhr.addEventListener("readystatechange", function () {
    if (this.readyState === 4) {
    console.log(this.responseText);
    }
    });

    xhr.open("POST", "https://api.wildapricot.org/v2/Accounts/174160/EventRegistrations/3201125");
    xhr.setRequestHeader("authorization", "Bearer Qk4XWQ0K4jVW2aOy-ovGW-nAsgQ-");
    xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
    xhr.setRequestHeader("cache-control", "no-cache");
    xhr.setRequestHeader("postman-token", "c0e05718-3e04-49ae-a354-0bb540f47dc4");

    xhr.send(data);

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. Querying Wild Apricot for Contact's passwords?

    Is it possible to query Wild Apricot for a Contact's password? I need to keep an external CMS synced with the users that are in Wild Apricot that have memberships and thus would like it if the passwords can be kept in sync with Wild Apricot.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. PUT method to update contact is failing

    I am trying to update the contact details.

    this.data =JSON.parse(data);
    var contactId = this.data.Id;
    let userurl = 'https://api.wildapricot.org/v2/Accounts/' + accountid + '/Contacts/' +contactId;

                console.log("efore put call", userDetails);
                console.log("efore put call stringified", JSON.stringify(userDetails));
    
                 let bodyString = JSON.stringify(userDetails); 
    
                this.http.put(userurl, bodyString, {headers:headers})
                  .map(res => <User>(res.json()))
                  .subscribe(userAuth => {
                    // we've got back the raw data, now generate the core schedule data
                    // and save the data for later reference
                    this.userData = userAuth;
                    console.log('get user details', userAuth);
                    resolve(this.userData);
                  },
                  err => {
                    console.log("error", err);
                    });
              });
    

    that is my put code.. as your can see I am sending the body text as…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  2 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. Change the batch interface to support the POST method

    I have been trying to call the batch API interface from Google Apps Script. Apps Script correctly realizes that BATCH is not a valid HTTP method and prevents me from submitting the request. There must also be many other HTTP client libraries that prevent this.

    The solution is simple - just extend the batch API to also allow a request submitted with the POST method.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. Demo Joomla Authentication Module

    Hi,
    I've got a Joomla authentication module working with WildApricot which I'm making available for anyone to use.

    I'm not a PHP coder or joomla expert, so take this with a grain of salt and understand it will need customisation for your site. I've loaded the source on github. I'd recommend it only experienced Joomla/PHP users and you will need to alter it.

    Hopefully someone with more experience can take this code and make it more generic so others may benefit.

    https://github.com/psike73/joomla_waauth

    Allows authentication against WildApricot user/password.
    Add or remove to defined Joomla groups (ie. member and non-members group)
    Add…

    0 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  3 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. Pre-flight not handled for API V2

    I am trying to get data for my app using wild apricot.Im using hybrid app. Currently when I am trying to access
    events.

    https://api.wildapricot.org/v2/Accounts/209675/Events

    This is my url.
    Then I have to send authorization as header in the GET request.
    But whenever I send authorization as header in GET request. It comes as a pre-flight and first OPTIONS request is sent.

    But the server is not handling OPTIONS request. How do I get over this scenario.

    Request URL:https://api.wildapricot.org/v2/Accounts/209675/Events
    Request Method:OPTIONS
    Status Code:405 Method Not Allowed
    Remote Address:96.43.192.222:443
    Response Headers
    view source
    Cache-Control:no-cache
    Connection:close
    Content-Length:76
    Content-Type:application/json; charset=utf-8
    Date:Tue, 02 Aug…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Resolved  ·  Team Mobile responded

    That happens because your try to access API from web browser (possibly Ionic builder). The web app makes cross origin requests, which are not supported in API.

    There is no problem to access API from mobile app, our own mobile app for admins works exactly this way. However if you try to access API from ionic builder, then you will face CORS error. Here is a detailed explanation of reasons and possible workaround: blog.ionic.io/handling-cors-issues-in-ionic.

    Please let me know if the tutorial helps or not.

    Dmitry

  12. How to access each of the options and whole structure of custom field in event

    Hi,
    I am creating a client for wild apricot. So to facilitate event registration the form has to be created in mobile app. To do the same the custom event fields has to be shown in the mobile client. So when I try to access the event Registration or event eventdetails using API.

    {
    "FieldName": "Testing field",
    "Value": [
    {
    "Id": 8815648,
    "Label": "New Item 1"
    }
    ]
    }

    Currently I am using https://api.wildapricot.org/v2/Accounts/209675/EventRegistrations?eventId=2297435

    also tried with
    https://api.wildapricot.org/v2/Accounts/209675/EventRegistrations/16216925

    I get the Field and label for it. but there is a field tyepe and list of values assocaited with it. how…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Resolved  ·  Team Mobile responded

    If you need a list of field descriptions, you should get event by id. The data you need are located in Event.Details.EventRegistrationFields

  13. API cannot change email settings?

    I've been trying for a while now to get the fields in a contact called:

    Email delivery disabled
    Receiving emails disabled

    to change using the API update contact call. I can change other fields, these two just refuse to change. Is there a trick to this, or is this another one of those 'you can't do it' features?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Resolved  ·  Team Mobile responded

    According to contact fields description both of these fields are read only.
    You can get contact fields metadata by calling https://api.wildapricot.org/v2/accounts/XXX/ContactFields/ The result is a collection of fields descriptions. Each record has a parameter “IsEditable”, so you can check if any specific field can be modified with API or not.

  14. Attempting to use mod_auth_openidc to authenticate with SSO, OAuth2 standards?

    I'm attempting to configure our third party website using Apache and modauthopenidc to invoke the SSO authentication endpoints on our WildApricot website.

    I've gotten as far as manually assembling a correct authentication request URL:

    https://discoamigos.wildapricot.org/sys/login/OAuthLogin?response_type=authorization_code&scope=contacts_me&client_id=...&state=...&redirect_uri=...&nonce=...&claimed_account_id=...

    That shows me a login dialog as expected... However, when trying to use mod-auth-openidc to generate the authorization URL, it doesn't allow the requesttype of "authorizationcode". It only lets me set the request type to "code", which seems to break the authentication page fetch on the WA end.

    This would seem to be an issue with Oauth2 'standards'. It would…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Resolved  ·  Team Mobile responded

    Issue fixed, oauth should work with mod_auth_openidc as expected.

  15. Server error when I am trying to get a token using POSTMAN

    I am trying to follow the apikey authentication and i am using POSTMAN to test this. Below is my request but I am getting 500 server error.

    POST /auth/token HTTP/1.1
    Host: oauth.wildapricot.org
    Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Cache-Control: no-cache
    Postman-Token: b0e747fe-861b-954e-0f70-011fc0f94d88
    Content-Type: application/x-www-form-urlencoded

    also I tried with scope and grant type

    POST /auth/token?granttype=clientcredentials&scope=auto HTTP/1.1
    Host: oauth.wildapricot.org
    Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Cache-Control: no-cache
    Postman-Token: ee9d3021-4238-a403-e028-6d7ef4aba5ee
    Content-Type: application/x-www-form-urlencoded

    Response:
    {
    "Message": "An internal error has occured. Please contact Wild Apricot support.\r\n Request ID:0531c255bfc84e1484fefe00d34ab82a."
    }

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. 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

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Retrieve event organizer details

    I would like to be able to retrieve the event organizer information (name and email) via the Event API calls.
    Our event organizers are also our featured speakers. We would like to be able to create a list of event titles, dates and times, and speakers.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. Finger print reader Integration

    Dear Support Team,

    Will it be possible to somehow integrate the Integrated Biometrics product below into the Wild Apricot:
    http://www.integratedbiometrics.com/products/curve/

    I want to use it to register contacts (members / clients / attendees) when arriving at an event (or meeting).
    This will speed up registration a lot.

    On the first contact (new client) with the person, the detailed information (name and other attributes) of the person will be captured together with a finger print (will be later used for repeated registration).

    When performing registration the next time, as the contact information will be already available on the system, the contact…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    Resolved  ·  2 comments  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. Single Sign On - second step Authenticating the user

    Any one please help me to complete this authenticating the user using the authentication code. i got the following error

    URL:
    https://oauth.wildapricot.org/auth/token

    granttype=authorizationcode&authorizationcode=5183ab5986ee53e6fb850a7f44c765d4&clientid=xxxx&redirecturi=http://localhost/wapi/&scope=contactsme&state=local

    Array
    (
    [0] => Authorization: Basic bXlpbDEzaWhtZzp2MGhqZnAyNW4xZmtteTJjaj2w=
    [1] => Content-Type: application/x-www-form-urlencoded
    )
    {"Message":"An internal error has occured. Please contact Wild Apricot support.\r\n Request ID:530451cb095c4c6895389a077ac9016d."}

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Customer and member creation from another system.

    We are planning to create Customer and member information from another system into WildApricot. Our Chapter membership uses WildApricot and we would like to automate chapter membership information from our system to WA database through web services call. Has anyone implemented similar work or recommendation.

    Thanks.

    Sundar

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base