WordPress Plugin

1.Go to https://github.com/favaarts/ams-for-wordpress and download the zip file by clicking on “Code”:

2. In your WordPress Dashboard, click on “Plugins”:

3. At the top of the page, click on “Add New”:

4. Still at the top of the page, click on “Upload Plugin”:

5. Choose the file from your storage and then click “Install Now”

6. Now we will Activate the plugin, and then you should be on the page with the list of plugins. Don’t worry, plenty of errors will popup. We need to activate the plugin in order to access the settings to remove these errors.

7. Next, we will scroll down to our plugin, AMS for WordPress, and select “Settings”:

Now you should see this on your screen:

The API Subdomain is your organization’s subdomain used in your website’s URL when accessing AMS. In this instance, (***) is your subdomain:
https://***.amsnetwork.ca/swagger

The API Key is found when logging into AMS, and going to System > Organization Integrations:


Now you should see this:

When you click “Show”, you can then copy the API Key and paste it in the corresponding field.

The Booking URL holds a link to wherever you want to redirect your clients to when they want to book on a specific item. Next to that field specifies whether you want that link to open in the same tab or in a new tab.

Finally, the Booking colour is the colour to the buttons and the links found in the plugin. You can set this colour to match the theme of your website.

8. Save the changes!

9. Now you can either go to Pages or Posts:

And now you can add the block in your page/post by searching for it:

10. View your website and enjoy!

API’s Library (Swagger)

(***) Replace with your organization’s subdomain.

  1. Go to https://***.amsnetwork.ca/swagger
  2. Look for “Oauth -> Operations about oauths”
  3. Select POST -> ​/api​/v3​/oauth​/token
  4. Create a token with username/password and Subdomain (***)
  5. Copy your access token.
  6. Go to https:// ***.amsnetwork.ca /swagger#/ and Input token “XXXX”
  7. Go to assets : Operations about assets / – /api/v3/assets
  8. Use the results to call the API.
  9. To access the URL you have to pass the token in the header – Authorization: Bearer “XXXX”

Here is an example of how to call the API in Jquery.

$.ajax({
         url: "https://***.amsnetwork.ca/api/v3/assets?type=Equipment&page=1&per_page=10",
         type: "GET",
         beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer XXXX');},
         success: function() { alert('Success!' + authHeader); }
      });

Axios -

axios.get(
    "https://***.amsnetwork.ca/api/v3/assets?type=Equipment&page=1&per_page=10",
    {headers: {
        "Authorization" : "Bearer XXXX"
      }
    }
  )
  .then((response) => {
      var response = response.data;
    },
    (error) => {
      var status = error.response.status
    }
  );

CURL -
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer XXXX' 'https://***.amsnetwork.ca/api/v3/assets?type=Equipment&page=1&per_page=10'

AMS Assets Features

For displaying your equipment, you can choose the number of columns on your website.

This is found in your block settings when adding the block to the page.

The sidebar is there to let your users search through them and filter by the category of the equipment they are looking for. If you decide you don’t want the sidebar, you can turn it off using this setting:

Block settings.

You can also hide the prices of the equipment using this setting:

Block settings

This setting allows you to set a custom name to the URL for all your equipment. This means that you can get a shareable link that would look like this: www.yourwebsite.ca/yournavigation/#equipment-inventory

Block settings.

Finally, when it’s time to book an item, you may choose where the button redirects the user in the plugin settings. By redirecting users to this page of yours, you can describe how they can contact you in order to book this specific piece of equipment.

Plugin settings

AMS Events Features

We can display programs in a multiple of different ways. You can choose the number of columns to display your programs in, or even opt for a single column that will look like a list view!

This is found in the block settings when adding the block to the page.

You can also choose how many programs you want to display at a time. So if you are selecting 6, you will only see 6 programs until you click “See More”, which would then load 6 more programs.


This is found in the block settings when adding the block to the page.

The sidebar here gives you the options to search through programs, and filter through the different types, their current status and their locations.

This is found on the page you added the block to.

This option lets you turn on and off the sidebar if you prefer:

This is also found in the block settings.

Next, if you don’t want to show the prices of the events, you can hide them in these block settings:

Finally, when it’s time to register to an event, workshop or a class, you may choose where the button redirects the user in the plugin settings. By redirecting users to this page of yours, you can describe how they can contact you in order to register for this specific program.

Plugin settings.