Skip to content

Developers

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

104 results found

  1. 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 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  ·  How to  ·  Admin →
  2. 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

    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  ·  Admin →
  3. 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

    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 →
  4. "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 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 →
  5. 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

    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  ·  API  ·  Admin →
  6. 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 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 →
    Resolved  ·  Team Mobile responded

    We fixed this issue, so it should work now.
    Feel free to reopen this topic if the issue remains.

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

    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 →
  8. 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/me

    I am able to run Contact/{ContactID} and get the relevant data back. Do anyone know what might cause this?

    Thanks, Jason.

    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 →
    Resolved  ·  Team Mobile responded

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

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

    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 →
  10. Export members data into Google docs

    How do I export Member data directly into a Google Doc (live)? Step-by-Step for newbies.

    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  ·  How to  ·  Admin →
  11. 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 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  ·  How to  ·  Admin →
    Resolved  ·  Team Mobile responded

    It is possible with Public API. Please take a look at our help: help.wildapricot.com/display/DOC/API+V2+calls

  12. Use of Event Registration IDs

    I am using the API to determine if members have registered or their registration has been cancelled for an Event.

    At the moment I cannot see any way of knowing that a registration has been cancelled from the API.

    So, I will need to check if the registrations have changed or not since the last time it was checked. This means saving the Event Registration IDs in a file.
    What is the valid range of a Registration ID?

    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  ·  How to  ·  Admin →
    Resolved  ·  Team Mobile responded

    Unfortunately there is no edit timestamp in event registration data structure.
    Registration Id could be any integer from 0 to 2147483647.

    In your case I would recommend to store all registrations as JSON in some file or database and check it’s state from time to time.

  13. fieldvalues contact api

    I have an interesting issue you can help me with. I am using the Contacts API and calling it from a Javascript call using the WA API wrapper for jQuery. I got this code from the WA developer forum and loaded it into the files section to call locally from the WA install (rather than from the original location).

    http://iarpreiki.org/resources/js/waPublicApi.js

    I am using the API to create a URL that I will pass to an external SaaS system, so I need to collect various contact/membership field data.

    The testing page is at

    http://iarpreiki.org/Print-Your-Membership-Certificate -- the top HTML widget is where…

    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  ·  4 comments  ·  API  ·  Admin →
  14. Profile last updated field differs in filter from value read in API ?

    Hi,
    we have a job that queries via the API searching with a filter on "Profile last updated". The query can return no results, it doesn't find any contacts changed since the last query run. However if we just iterate through the contacts and read the Profile last updated field it can be more recent shown in the API results than displayed in the WA web interface. It appears when reading via the API the "last login date" is used as the Profile last updated date if the last login is newer than the last profile update.

    Summary:
    Profile last…

    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 →
    Resolved  ·  Team Mobile responded

    The date in API and in web interface are taken from the same field in database. I was not able to reproduce error you described. Probably it was an error, which is already fixed.

    Please let us know if you encounter any error like this.

  15. 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 →
  16. Setting a Password when creating a new contact/member

    Hi,

    I need to create a contact through the API through a 3rd party server. I have no problem creating a contact. However, when I set a password and try to login after I have created the contact, I get an error saying that I have the wrong login information.

    Secondly, when someone signs up they get an email with a password sent to them. Is this possible as well through the API? When I create a contact through the API I want to be able to send them the password in their email so they can login.

    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 →
  17. 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 →
    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;
    }

  18. 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 →
  19. 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

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

  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base