As of Aeon 5.0, a new AJAX (Asynchronous Javascript and XML) method is available to retrieve a JSON output of web alerts. This improves the ability to be able to customize web alerts.
Response Examples
If called without an authenticated session the results will only include current system alerts. If a user is currently authenticated and has a valid web session, the results will also include alerts targeted to them specifically via username or by status.
Replace "aeon.institution" with aeon. your servername.
Example of a request made when user is not authenticated:
GET | http://aeon.institution/aeon/aeon.dll/ajax?query=WebAlerts |
---|
Results:
{"alerts":[{"id":"1","identifierType":"System","alertTitle":"Test","alertMessage":"This alert should be seen by all users","createdDate":"2018-06-18T15:40:57.577","activeDate":"2018-06-18T00:00:00.000","expirationDate":"2018-09-05T00:00:00.000","alertDeletable":"false"}]}
Example of a request made when the user is authenticated. The response will include user alerts, status alerts, and system alerts:
GET | http://aeon.institution/aeon/aeon.dll/ajax?query=WebAlerts |
---|
Results:
{"alerts":[{"id":"1003","identifierType":"Status","identifierValue":"Graduate","alertTitle":"Graduate","alertMessage":"This is a graduate alert","createdDate":"2018-07-10T20:14:48.040","activeDate":"2018-07-10T00:00:00.000","expirationDate":"2019-07-17T00:00:00.000","alertDeletable":"false"},{"id":"1","identifierType":"System","alertTitle":"Test","alertMessage":"This alert should be seen by all users","createdDate":"2018-06-18T15:40:57.577","activeDate":"2018-06-18T00:00:00.000","expirationDate":"2018-09-05T00:00:00.000","alertDeletable":"false"},{"id":"2","identifierType":"User","identifierValue":"TestUser1","alertTitle":"Personal Test","alertMessage":"This is an alert for TestUser1","createdDate":"2018-06-18T15:41:20.650","activeDate":"2018-06-18T00:00:00.000","expirationDate":"2019-06-25T00:00:00.000","alertDeletable":"true","deleteUrl":"aeon.dll?Action=22&Type=22&Value=2"}]}