Let the platform do the work

/Contacts/:record/freebusy GET

Get a contact's FreeBusy schedule

Summary:

This endpoint returns a list of time slots for which the specified person is busy.

Request

GET /Contacts/:id/freebusy

Response

    {
      "id": "foo"
      "module": "Users",
      "freebusy": [
                    {
                      "start": "2014-08-24T08:45:00-04:00",
                      "end": "2014-08-24T09:15:00-04:00"
                    },
                    {
                      "start": "2014-08-30T05:45:00-04:00",
                      "end": "2014-08-30T06:15:00-04:00"
                    },
                    {
                      "start": "2014-09-12T15:45:00-04:00",
                      "end": "2014-09-12T16:15:00-04:00"
                    }
                  ]
    }