Page tree

GET

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

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/events?&startdate=08/01/2015&stopdate=08/31/2015&pageIndex=0&pageSize=50

Notes

pageIndex and pageSize are not required for the API to work properly. These fields let you limit the number of records returned at one time and when you begin pulling information. If you do not enter this information, the index default is 0 and the size default is 50. 

For example, suppose you're looking for all the individuals with the first name John. 300 records match your criteria. If you leave the defaults, the first 50 matches display. If you change the pageIndex to 2, the next 50 matches are returned.

Use the MM/DD/YYYY format when entering dates

Required Permissions

The user must fall into one of the categories below:

  • System Administration

  • A user with the following rights:

    • Rights to view at least one calendar

    • All rights to all calendars

You will only see the events on calendars you have view rights to.

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.

Return Data

{
  "Page": [
    {
      "Description": null,
      "EventDateId": "0c4a883e-5ad1-4ef8-8b8e-a355009af705",
      "EventId": "0a5d8e2a-3a78-4c80-9c00-a04b00f7cb20",
      "EventName": "Chancel Choir Rehearsal",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": true,
      "LocationId": "f88abfb0-9656-4284-b675-b89974d5a757",
      "Location": "Choir Rehearsal Hall",
      "StartDate": "2015-08-02 10:00:00.000",
      "StopDate": "2015-08-02 10:20:00.000",
      "Status": "Confirmed",
      "CalendarName": "Choir",
      "IsRecurringEvent": true,
      "CalendarId": "6ce6d1ff-7532-4a38-876a-94e75cc43cde",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
    {
      "Description": null,
      "EventDateId": "9baf6eec-1002-4519-aa17-a355009a97cf",
      "EventId": "9a4bd6e3-7717-44c5-b27e-a2570115b841",
      "EventName": "Morning Worship Service",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": true,
      "LocationId": "d100b375-c2d4-409a-b2a9-b2737d637a07",
      "Location": "Sanctuary",
      "StartDate": "2015-08-02 10:30:00.000",
      "StopDate": "2015-08-02 11:30:00.000",
      "Status": "Confirmed",
      "CalendarName": "Worship Events",
      "IsRecurringEvent": true,
      "CalendarId": "db14ea12-9a55-4cd9-91f2-72141b4a070c",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
    {
      "Description": null,
      "EventDateId": "5ea87d32-fe90-492c-b7f2-a355009b7d8f",
      "EventId": "8aafb883-30f4-4ab5-a49f-a25701162646",
      "EventName": "Journey Youth",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": true,
      "LocationId": "92113f27-1280-48a2-81b4-a13bf0b70a57",
      "Location": "Youth Rec Center",
      "StartDate": "2015-08-02 18:00:00.000",
      "StopDate": "2015-08-02 19:30:00.000",
      "Status": "Confirmed",
      "CalendarName": "Youth Events",
      "IsRecurringEvent": true,
      "CalendarId": "b32d74e3-4a04-49e5-a1ce-242dde510e40",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
    {
      "Description": "Come Join our group for great fellowship and fun!",
      "EventDateId": "2486446f-3957-4778-9f36-a46b00a701c6",
      "EventId": "9713efb9-1873-4022-986c-a46b009ef22a",
      "EventName": "XYZ Bible Study - What are You Afraid Of?",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": false,
      "LocationId": "bc868227-b91b-4092-8fe7-a04b00fc8c06",
      "Location": "Parlor",
      "StartDate": "2015-08-04 09:00:00.000",
      "StopDate": "2015-08-04 10:00:00.000",
      "Status": "Approved",
      "CalendarName": "Mature Adults",
      "IsRecurringEvent": true,
      "CalendarId": "189ee923-3041-42f2-8581-af9270840958",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
    {
      "Description": null,
      "EventDateId": "be608d7b-de84-47d7-8aad-a3a800b744c0",
      "EventId": "4b772c93-f476-4e6a-a38c-a3550099b57c",
      "EventName": "Weekly Staff Meeting",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": false,
      "LocationId": "de68d89a-005b-499b-9946-a2b5011d659b",
      "Location": "Conference Room C",
      "StartDate": "2015-08-04 09:00:00.000",
      "StopDate": "2015-08-04 10:00:00.000",
      "Status": "Confirmed",
      "CalendarName": "Church Staff",
      "IsRecurringEvent": true,
      "CalendarId": "3e884a35-ee87-4212-ad84-681b489edc9f",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
    {
      "Description": null,
      "EventDateId": "46e42e49-ea60-46dd-8556-a52f009bbc36",
      "EventId": "1cb8ef45-1deb-44c8-95d2-a37e0098eaab",
      "EventName": "Choir Practice",
      "EventType": null,
      "EventTypeId": null,
      "IsPublished": true,
      "LocationId": "f88abfb0-9656-4284-b675-b89974d5a757",
      "Location": "Choir Rehearsal Hall",
      "StartDate": "2015-08-05 16:00:00.000",
      "StopDate": "2015-08-05 17:30:00.000",
      "Status": "Confirmed",
      "CalendarName": "Choir",
      "IsRecurringEvent": true,
      "CalendarId": "6ce6d1ff-7532-4a38-876a-94e75cc43cde",
      "AllowRegistration": false
      "DateModified": "2016-04-20 17:47:33.560",
      "Note": ""
    },
  ],
  "PageCount": 3,
  "PageIndex": 0,
  "PageSize": 50
}