Skip to content

Developers

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

9 results found

  1. 500 Internal Server Error

    I have JavaScript that use the Member API on my site. They’ve been working for more than a year and have been unchanged for months. Suddenly I’m getting a 500 Internal Server Error on those pages. Is this a known error? Has the API changed? The scripts use an Ajax call using the format here https://gethelp.wildapricot.com/en/articles/1705-working-with-api-from-javascript . This is CRITICAL as the pages are on pages that deal with time sensitive and important organizational business. Any help is welcome.

    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

    Archived  ·  5 comments  ·  API  ·  Admin →
  2. HTTP 404 bad request for oAuth token

    I have html page to get email and password from user and i want to send these criedentials to this url (https://oauth.wildapricot.org/auth/token) with the help of ajax request. i am getting bad request error from server. my request is $.ajax({
    type: 'POST',
    url: 'https://oauth.wildapricot.org/auth/token',
    data: "grant_type=password&username=testim@test.com&password=123456&scope=auto",
    dataType: "text",
    contentType: 'application/x-www-form-urlencoded; charset=utf-8',
    xhrFields: {
    withCredentials: true
    },
    //crossDomain: true,
    headers: {
    'Authorization': "Basic " + window.btoa(settings.clientId + ':' + settings.clientSecret),
    "Content-Type": "application/json"
    },
    //beforeSend: function (xhr) {
    //},
    success: function (result) {
    var token = result;
    },
    //complete: function (jqXHR, textStatus) {
    //},
    error: function…

    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

    Archived  ·  1 comment  ·  API  ·  Admin →
  3. TLS 1.2 and HTTP/1.1 Upgrade

    What is the status of the TLS 1.2 and HTTP/1.1 Upgrades coming on June 30th 2018? Is Wild Apricot ready? Are there any actions we as users need to take to insure integration with services such as PayPal?

    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 →
  4. Anyone having problems getting 502 (bad gateway) response from API?

    I am continually getting 502 responses from the API but they are inconsistent. Some requests go through without a problem but at another time, the same request that worked, say 20min ago returns a a 502. I am trying to isolate the problem but i don't know where to start. I have not changed anything in the header, url, or the url parameters. It seems the API just stops processing my requests.

    I'm using Postman and I have also written some PHP scripts based on the PHP samples provided on Github.

    Has anyone had this experience? I would like to…

    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

    Archived  ·  0 comments  ·  API  ·  Admin →
  5. API documentation

    Trying to find the API documentation. I'd like to know if there's an API allowing posting a auto-created newsletter draft for editing and sending.

    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 →
  6. How do I get all common fields and member fields?

    I'm using the PHP Sample Code, but can't figure out how to get the member fields from the call to the Contacts api. I did a var_dump and there appears to be several arrays. Do I iterate through each array or should I be making a call to the membershiplevel api? Please advise. Thanks in advance.

    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

    3 comments  ·  API  ·  Admin →
  7. Is it possible to use the $count function to count members?

    Is it possible to use the $count directive with $filter to count number of members (rather than contacts)? Here's my google apps script call below. I get this error:

    Request failed for https://api.wildapricot.org/v2/accounts/210450/contacts?$count&$filter='Member%20eq%20true' returned code 400. Truncated server response: {"code":"Search","message":"Failed to build expression tree. Multiple expression roots: Argument:Member eq true"} (use muteHttpExceptions option to examine full response)

    I think I may have to iterate through a get all contacts call instead and count them manually, but I am not sure how to do that.

    function getMemberCount()
    {

    Logger.clear();

    var urls = urlBuilder();
    var ui = SpreadsheetApp.getUi();

    var sheet =…

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

    There was no activity for 5 months. We archive this thread.
    Alex, if you’d like to share your code, feel free to reopen this idea or make a new one.

  8. how do I import and export data through API

    Does anyone has done a data sync between Apricot and another data source such as your own database? the API only handle one piece of info at a time and there is no data flow chart for us to understand how adding a new member works from end to end. such as a bundle api or the chain of the API call to achieve this.

    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

    Archived  ·  1 comment  ·  API  ·  Admin →
  9. Reading Evenfs and Members lists using API v1

    Hello.

    THe reason I'm asking about this is that I need to retrieve data from Events and Members lists into a MS Access database. As per what I've read

    in another post, API v2 returns data in Json only, and Access VBA doesn't have adequate tools for processing Json lists. But when I try to read events information from my application (similar way I read the Contacts list), I get the error message "Forbidden".
    If it's not possible to access this data using API v1, can anyone please send the piece of code for authenticating and further reading data using…

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

    While API v1 is still supported, all new features are added to later versions only.

  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base