Code to invoke URL generator plugin of REDCap

This is the Code to invoke REDCap plugin for URL generator. Please see the Usage mentioned in comments. This needs to be integrated with REDI to generate the URLs for the events that are having errors.
These URLs are to be presented in the email report to give direct links to corresponding REDCap events.