Developers

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

How can we make it easier for you to develop on top of Wild Apricot?

(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. 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.'&';…

    1 vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      1 comment  ·  Flag idea as inappropriate…  ·  Admin →
    • IFrame Integration with WP

      So I am working on a client site that uses WA as their membership management system. Their site is actually located in WP and therefore I used iframes to integrate events, member directory, and so on. Problem is that I do not want a scroll bar and I do not want the iframe to get cut off at the height I set for it. I tried using height="auto" or Height="100%" but these shrink the iframe up and then it creates a scroll bar. Currently I have the iframe height set up high in pixels so it does not run out…

      1 vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        0 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
      • 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
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          3 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
        • Orders-products vs Payments?

          Hi Everyone,

          I would like to integrate shop orders and payments with an external platform, this means whenever a user buys a digital product through the store, the content is unlocked in the external platform.

          I'm digging around the API and found a complete API for payments and invoices but, unfortunately, payments and invoices don't have any relationship with orders and products.

          Are this unimplemented methods of the API?

          Thanks in advance for any response

          2 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            0 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
          • change system page colors

            How can I change the color of menu items on system pages? For example, the current color is blue; I want to change it to red.

            2 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              1 comment  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
            • 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
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                2 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Single Sign On Very simple Ruby on Rails snippet

                Hello,
                I have been able to implement bare bones Wild Apricot single sign on steps in a blank Ruby on Rails project, thanks to Wild Apricot support! Please find attached a redacted and commented version of the code here for anyone who is trying to do similar with their own custom web app. This snippet prints out the ID of the user who is signed in.
                Cheers!

                2 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  1 comment  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
                • 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
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    0 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
                  • 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.

                    4 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      2 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
                    • Database format of guest that attend event based on sign in list so it can be entered in PC file

                      Hand write data retrieved after community event is over for guest that attended and signed in and contact info so it can be electronically processed in organizations data entry

                      1 vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
                      • I am redirecting one page to another website. How do I make this open a new window?

                        I am redirecting one page to another website. How do I make this open a new window rather than leave the member site?

                        1 vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          0 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
                        • Hi, I am trying to add Google Spreadsheet to WildApricot Site...Can anyone help in this issue?

                          Hi, I am trying to add Google Spreadsheet to WildApricot Site...Can anyone help in this issue?

                          2 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                          • Video Content for paying members

                            I am going to post videos of our meetings on our website. I want to restrict access to those videos to only paid members.

                            The videos will be 1 hour in length so they will be large.

                            I am willing to pay for a third party service and do some one time development, but i want the process of uploading a new video to be something that a non-technical (yet competent) user can do. I want to restrict the video to paying members (we will have non-paying members as well).

                            1 vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              4 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
                            • A question on the Excel spreadsheet made available 6 months ago by Wild Apricot at https://github.com/WildApricot/ApiSamples/tree/master/Exc

                              A question on the Excel spreadsheet made available 6 months ago by Wild Apricot at https://github.com/WildApricot/ApiSamples/tree/master/Excel

                              I am having a problem with authentication. I put in the API key from authorized applications via copy/paste so I know it's right. Then I clicked download data and tried both the client ID/secret key and my admin username and password. Both times I get this error. I went through the VBA code a bit to review if I may be doing something wrong, but I don't see anything wrong.

                              Client is not authorized to use this grant type is an error I cannot…

                              1 vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                4 comments  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
                              • WaApi.py ApiObject.__str__() and __repr__() throw TypeError ... is not JSON serializable

                                I'm looking at the Python example code, specifically WaApi.py and ApiObject.__init__(). Lines 161-173 here:

                                https://github.com/WildApricot/ApiSamples/blob/master/python/WaApi.py

                                The __str__() and __repr__() methods on lines 175-179 throw a TypeError: {...} is not JSON serializable.

                                1 vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • API endpoint for allowing users to cancel registrations

                                  The new feature added today to allow users to cancel their own registrations is a good start, but we need to be able to set it through the API for it to really be useful. Is there a plan to add this in the near future?

                                  5 votes
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    3 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
                                  • How can I do a multiple language mobile friendly wildapricot website? (3 different menu bar needed)

                                    How can I do a multiple language mobile friendly wildapricot website? (3 different menu bar needed)

                                    -menu widget(all pages are shown, not workable)
                                    -3 content widget for 3 different lang (not mobile friendly)

                                    1 vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • 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
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

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

                                        An ability to setup cancellation options will be added to the API in the next release – approximately at the end of the month. It’ll fix this issue also.

                                        Currently, we fixed all broken registration types (the cancellation option was set to “not allow”) but unfortunately new ones will be created with the same problem for now.

                                      • Monthly list of new users

                                        I am attempting to create a google doc for our Printing/Mail vendor to easy grab info on the members that renwed or signed up in the last 30 days. The idea is the vendor would just open this share google doc once a month, run the report, export the data.

                                        I am using your example from: https://github.com/WildApricot/ApiSamples/tree/master/GoogleScript

                                        function getCardData(){
                                        Logger.clear();

                                        var ui = SpreadsheetApp.getUi();
                                        var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
                                        var urls = urlBuilder();

                                        var token = getToken(ui, urls.getAuthServiceUrl());
                                        var accountId = getDataFromApi(urls.getAccountsListUrl(), token)[0].Id;
                                        var filter = '\'Renewal date last changed\' ge 2017-10-01 AND \'Mebership Status\' eq Active'
                                        var query = getDataFromApi(urls.getCardDataUrl(accountId,…

                                        3 votes
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          0 comments  ·  API  ·  Flag idea as inappropriate…  ·  Admin →
                                        • hide number of bundle membersin directory listing

                                          I am trying to hide the number of bundle members - that is showing on the online member directory, in parenthesis after the bundle admin name. Any suggestions for css code?

                                          1 vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            1 comment  ·  How to  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3
                                          • Don't see your idea?

                                          Developers

                                          Feedback and Knowledge Base