This sample source code is a complete solution for downloading user activity logs from the Mimecast endpoint. Though written in Python 2, this source code is fairly simple to port to Python 3. This solution is intended to be run periodically, and pushes log information both to a file and to a syslog (UDP) connection.
One of the more intriguing aspects of RESTful APIs is that they make all kinds of computing platforms more accessible to developers than previously thought possible. Case in point is the machine learning platform (based on a math engine) that is being developed by Wise.io.