DeskAlerts API Manual-1
DeskAlerts API Manual-1
DeskAlerts API Manual-1
com
© 2015
www.deskalerts.com
1
www.alert-software.com
CONTENTS
1. INTEGRATION WITH THIRD-PARTY SOFTWARE ............................................................................................................ 3
2.1 DeskAlerts API – send alerts to Users / Groups / Computers / OUs / IP Groups .................................................... 3
2
www.alert-software.com
In addition to its other features, DeskAlerts offers a flexible platform that can be integrated with your internal
software to meet virtually any business requirement.
In addition to our standard add-ons, we also offer extensive custom add-ons. We can customize an add-on that
integrates your DeskAlerts solution with any internal system.
2. REST API
Parameters Required:
xml_data
XML data in proper format that will used by server API to send an alert.
api_signature
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Broadcast alert
3
www.alert-software.com
</data>
<broadcast/>
</alert>
</darequest>
You can use “desktop”, “sms” and “email” tags in alert/data to specify the type of the alert.
You can use “sms” and “email” tags only if you have such addons installed.
Recipients alert
Parameters Required:
xml_data
XML data in proper format that will used by server API to send an alert.
api_signature
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Broadcast alert
To get the emergency alert id for API, hover your mouse over the alert title.
Parameters Required:
xml_data
XML data in proper format that will used by server API to send an alert.
api_signature
5
www.alert-software.com
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Add/remove users
Example response:
6
www.alert-software.com
Parameters Required:
xml_data
XML data in proper format that will used by server API to send an alert.
api_signature
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Add/modify/remove groups
Example response:
7
www.alert-software.com
Parameters Required:
xml_data
XML data in proper format that will used by server API to send an alert.
api_signature
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Example response:
8
www.alert-software.com
Parameters Required:
xml_data
XML data in proper format that will used by server API to get an alert.
api_signature
MD5 of xml_data and API secret that can be found in Deskalerts Control panel settings.
Get alert
Example response:
9
www.alert-software.com
<TOOLBAR>
<ALERT id="alert" href="http://yourserver/deskalerts/get_alert.asp?id=2&user_id=2"
timeout="-1" expire="" plugin="alert:ID3" priority="1" acknown="0" autoclose="0" alert_id="2"
user_id="2" create_date="1308044751" utc="1" title="Test alert" position="" width="500"
height="400" ticker="0" survey="0" schedule="0" urgent="0" history="1"/>
</TOOLBAR>
3.1 Synopsis
DeskAlertsAPI.exe [/url=text] [/key=text] [/conf=text] [/body=text] [/bodyfile=text] [/title=text] [/plaintext]
[/titlefrombody] [/desktop|/desktop=1] [/sms|/sms=1] [/email|/email=1] [/email_sender=text] [/urgent|/ urgent=1]
[/ticker|/ticker=1] [/fullscreen|/fullscreen=1] [/width=integer] [/height=integer] [/acknow] [/lifetime=integer]
[/template_id=integer] [/autoclose=integer [/manualclose]] [/xml=text] [/xmlfile=text] [/bodyisxml]
[/acp|/utf8|/utf16|/encode=integer] [/bodyacp|/bodyutf8|/bodyutf16|/bodyencode=integer]
[/confacp|/confutf8|/confutf16|/confencode=integer] [/user=string [/user=string [/u=string ...]]] [/group=string
[/group=string [/g=string ...]]] [/comp=string [/comp=string [/c=string ...]]] [/ou=string [/ou=string [/o=string ...]]]
[[/u|g|c|o=string] [/domain=string [/u|g|c|o=string]]] [/pause] [/help|/h|/? [command]]
10
www.alert-software.com
/key=text Set API secret key for request signing. You can find it on DeskAlerts Control Panel
system configuration page.
/conf=text Set path to configuration file. Any other options can be read from this file. Without
this option application will try to read DeskAlertsAPI.conf file.
/plaintext Start working with alert text as plain text without HTML formatting.
/titlefrombody Cut first line from alert body and use it as alert title.
/sms Send SMS alert (only if you have SMS add-on installed).
/sms=1
/email Send email alert (only if you have email add-on installed).
/email=1
11
www.alert-software.com
/urgent Send urgent alert. It appears even if user disabled DeskAlerts Client, always on top of
/urgent =1 any other alerts.
/lifetime=integer Set alert lifetime. Alert can be received for specified period of time in minutes from
now.
/template_id=integer Set style template id. You can find it on DA Control Panel style templates page.
/autoclose=integer Set auto-close time in minutes. The alert will appear on the screen for the given time
/manualclose period and then it will disappear automatically. And "manualclose" is ability to close
the alert manually in case of auto-close setting active.
/xmlfile=text Set path to a file with entire XML. Just sign its data and send request.
/acp Set encoding for all reading files. Where "acp" is system defined ANSI, "utf8" is
/utf8 UTF8=65001, "utf16" is UTF16LE=1200.
/utf16
/encode=integer
/bodyacp Set encoding for reading alert body or xml data from stdin(0) or "bodyfile" or
/bodyutf8 "xmlfile". Where "bodyacp" is system defined ANSI, "bodyutf8" is UTF8=65001,
/bodyutf16 "bodyutf16" is UTF16LE=1200.
/bodyencode=integer
/confacp Set encoding for reading configuration file. Where "confacp" is system defined ANSI,
/confutf8 "confutf8" is UTF8=65001, "confutf16" is UTF16LE=1200.
/confutf16
/confencode=integer
12
www.alert-software.com
/alertid=id Set instant alert for sending instant message. To get the emergency alert id for API,
hover your mouse over the alert title.
3.3 Example
a) Example on how to send sample plaint text to desktop, sms, email for all users:
b) Example on how to send sample plaint text to desktop only for specified user and group in domain:
13