For this API to work correctly, the Access ACS calendar must be set as your default calendar.

GET

/:site_number/accessevents?&startdate=:start_date&stopdate=:stop_date

&Calendarid=:calendar_id

Returns a list of events. Depending on the start and end date specified and the login used, the information displayed may change.

Example

https://secure.accessacs.com/api_accessacs_mobile/v2/12345/accessevents?

&startdate=08/01/2015&stopdate=08/31/2015&Calendarid=1

Required Permissions

The user must fall into one of the categories below:

Request Header

Basic Authorization is used to determine security rights for the user credentials supplied using the following parameters.

username: "jadams"

password: "password231"

URL Parameters

site_number – The site number to gather data for.

start_date – The date to start pulling events from.

stop_date – The date to stop pulling events from.

calendar_id – The ID of the calendar on which to filter the list of events.  Values from the Get List of Calendars API.  

Return Data

{
  "Page": [
    {
      "Id": 760,
      "Name": "Back to School Bash!",
      "Description": "This is a free concert open to the public.",
      "LocationName": null,
      "StartDate": "08/22/2015 17:00:00",
      "EndDate": "08/22/2015 19:00:00"
    },
    {
      "Id": 761,
      "Name": "Mother's Morning Out",
      "Description": "Feeling Stress?  Need to get something done without bringing the little ones along?  Let us help.",
      "LocationName": null,
      "StartDate": "08/25/2015 09:30:00",
      "EndDate": "08/25/2015 12:00:00"
    }
  ],
  "PageCount": 1,
  "PageIndex": 0,
  "PageSize": 50
}

Notes

If you enter the calendar_id, only that calendar is pulled.  You may pull more than one calendar by separating them by a comma.  For example, calendar_id=1,4.