This handler uses the Exchange Web Services (accessed through the Viewpoint ruby gem) to search for existing appointments. After configuring the API to connect to the server the api starts by searching for all events between the Start and End date. If a Subject was also passed as a parameter, the results of the first search will be iterated through to see if the inputted subject is contained in any of the returned items subject line. All of the items that match both conditions are then finally returned in JSON format. Any errors encountered will be caught and re-raised by the handler.
The username for the Exchange account.
The password for the Exchange account.
The address for the Exchange server, including the 'https://'
Enable debug logging if the value is set to 'Yes'.
The date to start the search with the format 'YYYY-MM-DD'.
The date to end the search with the format 'YYYY-MM-DD'.
A string to search the contents of the subject. Doesn't need to be an exact match, just checks if it contained in the subject.