Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1da10c1

Browse files
authored
Update alarm_api_v1.md
1 parent332a0fa commit1da10c1

File tree

1 file changed

+89
-86
lines changed

1 file changed

+89
-86
lines changed

‎alarm_api_v1.md‎

Lines changed: 89 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
#BlaulichtSMS Alarm API
1+
#blaulichtSMS Alarm API
22

33
##Version
4-
- V1.0:Erste Version (2016-08-12)
4+
- V1.0:First Version (2016-08-12)
55
- V1.1: Alarm Query Endpoint
6-
- V1.2: recipientConfirmationParameter hinzugefügt
7-
- V1.3: List AlarmEndpunkt hinzugefügt
8-
- V1.4:Änderung des Alarm Data Element:Erweiterung der recipients,Deprecation der participants, Geolocationhinzugefügt (2017-01-19)
9-
- V1.5:Erweiterung der APIum die indexNumber
6+
- V1.2: recipientConfirmationparameter added
7+
- V1.3: List Alarmend point added
8+
- V1.4:Change of Alarm Data Element:extension of recipients,deprecation of participants, Geolocationadded (2017-01-19)
9+
- V1.5:extended the APIby indexNumber
1010

11-
##Allgemein
11+
##General
1212

1313
###Encoding
14-
Encodingist immer UTF-8.
14+
Encodingshall be UTF-8.
1515

16-
###TestBasis URL
16+
###TestBase URL
1717
https://api-staging.blaulichtsms.net/blaulicht
1818

19-
###LiveBasis URL
19+
###LiveBase URL
2020
https://api.blaulichtsms.net/blaulicht
2121

2222
##Alarm API
2323

24-
Für die Verwendung dieser API muss man als "Automatisierter Alarmgeber" im System hinterlegt sein und erhält einen Benutzernamen und Passwort.
24+
In order to be able to use this API, an "automatic alarm trigger" with username and password must be configured for the relevant customerId(s).
2525

2626
###Trigger Alarm
2727
_**/api/alarm/v1/trigger**_
2828

29-
Um einen Alarm zu triggern muss man einenHTTP POSTRequest mit dem Header:`Content-Type: application/json`auf die oben angebeneURL absenden.
30-
31-
- username: string -verpflichtend -Benutzername
32-
- password: string -verpflichtend -Passwort
33-
- customerId: string -verpflichtend -Kundennummer
34-
- type: alarm | info -verpflichtend -Der Alarmtyp
35-
- hideTriggerDetails: boolean - optional -Alarmgeberdetails nicht mitsenden
36-
- alarmText: string - optional -Der Alarmtext
37-
- indexNumber: integer- optional -Die Index Nummer dient zur Identifikation von zwei identen Alarmen. Achtung: Falls zwei oder mehr Alarme mit der selben Index Nummer ausgelöst werden, werden die späteren ignoriert.
38-
- needsAcknowledgement: boolean -verpflichtend -Antwortfunktion
39-
- startDate: string - optional -Das Startdatum für den Alarm, falls der Alarm in der Zukunft starten soll. Der Timestamp muss im UTCFormat übertragen werden z.B. :`"2017-01-27T14:49:52.000Z"`
40-
- duration: integer - conditional -Dauer der Antwortfunktion in Minuten
41-
- recipientConfirmation: boolean - optional -SMS Empfangsbestätigung ein- bzw. ausschalten (kostenpflichtig)
42-
- recipientConfirmationTarget: string - optional -Empfänger für Report zu Empfangsbestätigungen
43-
- template: string - optional -Alarmtextcode z.b.`"A1"`
44-
- groupCodes: list of strings - optional -Alarmgruppen z.b.`["G1"]`
45-
- additionalMsisdns: list of strings - optional -Nummern die zusätzlich alarmiert werden sollen z.B.:`["+4366412345678", "+4367612345678"]`
46-
- coordinates: object of Type Coordinate - optional -Alarmkoordinaten
47-
- geolocation: object of Type Geolocation - optional -Alternativ kann man statt den Koordinaten auch ein Geolocation Objekt mit einer Adresse übergeben. Diese wird anschließend in Koordinaten umgewandelt z.B.:`{"address": "Getreidemartk 11, 1060 Wien"}`
48-
49-
Ein Beispiel:
29+
To trigger an alarm, send anHTTP POSTREQUEST with header`Content-Type: application/json`to the aboveURL.
30+
31+
- username: string -mandatory -username
32+
- password: string -mandatory -password
33+
- customerId: string -mandatory -customer ID
34+
- type: alarm | info -mandatory -event type
35+
- hideTriggerDetails: boolean - optional -do not send details of alarm trigger
36+
- alarmText: string - optional -content of alarm
37+
- indexNumber: integer- optional -The index number serves to distinguish different alarms. A second alarm with the same index number will be ignored.
38+
- needsAcknowledgement: boolean -mandatory -reply function
39+
- startDate: string - optional -The date of an alarm in case it is to be triggered in the future. The format shall be UTCe.g. :`"2017-01-27T14:49:52.000Z"`
40+
- duration: integer - conditional -duration for which the reply function is enabled
41+
- recipientConfirmation: boolean - optional -turn on/off confirmation that SMS was received (charges apply)
42+
- recipientConfirmationTarget: string - optional -msisdn of recipient of SMS confirmation
43+
- template: string - optional -Alarm text code e.g.`"A1"`
44+
- groupCodes: list of strings - optional -Alarm group(s) e.g.`["G1"]`
45+
- additionalMsisdns: list of strings - optional -additional msidns to be alerted e.g.:`["+4366412345678", "+4367612345678"]`
46+
- coordinates: object of Type Coordinate - optional -coordinated of location of alarm
47+
- geolocation: object of Type Geolocation - optional -instead of coordinates, a Geolocation object containing an address may also be provided. This address will then be converted to coordinates e.g.:`{"address": "Getreidemartk 11, 1060 Wien"}`
48+
49+
An example:
5050

5151
{
5252
"username" : "myUser",
5353
"password" : "mySuperSecretPwd",
5454
"customerId" : "100027",
5555
"hideTriggerDetails" : false,
56-
"alarmText" : "Das ist ein Testalarm",
56+
"alarmText" : "This is a test",
5757
"type" : "alarm",
5858
"needsAcknowledgement" : true,
5959
"duration" : 60,
@@ -67,28 +67,29 @@ Ein Beispiel:
6767
}
6868
}
6969

70-
Im Erfolgsfall erhält man z.B. folgendes Resultat. Die möglichen Werte für**result** sind weiter unten angegeben. Im Fehlerfall ist dem Feld**description** eine Beschreibung des Fehlers zu entnehmen.
70+
The following is an exapmple of a successful API call.
71+
A list of all possible values of**result** is provided further down. In case of an error the field**description** contains a description of the error.
7172

7273
{
7374
"result" : "OK",
7475
"alarmId" : "dakldjsfal-2343232-afsdaddfa-234",
7576
"customerId" : 100027,
7677
"description" : null
77-
"alarmData" : {siehe Beschreibung AlarmData Object }
78+
"alarmData" : {see description AlarmData Object }
7879
}
7980

8081

8182
###QUERY ALARM
8283
_**/api/alarm/v1/query**_
8384

84-
Um einen Alarm zu suchen muss man einenHTTP POST Requestmit dem Header:`Content-Type: application/json`auf die oben angebeneURLabsenden.
85+
To search for an alarm, send anHTTP POST Requestwith header`Content-Type: application/json`to theURLmentioned above.
8586

86-
- username: string -verpflichtend -Benutzername
87-
- password: string -verpflichtend -Passwort
88-
- customerId: string -verpflichtend -Kundennummer
89-
- alarmid: string -verpflichtend -DieAlarmId (wird beim Auslösen eines Alarms zurückgegeben)
87+
- username: string -mandatory -username
88+
- password: string -mandatory -password
89+
- customerId: string -mandatory -customer ID
90+
- alarmid: string -mandatory - AlarmId (is returned upon triggering an alarm)
9091

91-
Ein Beispiel:
92+
An example:
9293

9394
{
9495
"username" : "myUser",
@@ -97,27 +98,28 @@ Ein Beispiel:
9798
"alarmId" : "dakldjsfal-2343232-afsdaddfa-234"
9899
}
99100

100-
Im Erfolgsfall erhält man z.B. folgendes Resultat. Die möglichen Werte für**result** sind weiter unten angegeben. Im Fehlerfall ist dem Feld**description** eine Beschreibung des Fehlers zu entnehmen.
101+
The following is an exapmple of a successful API call.
102+
A list of all possible values of**result** is provided further down. In case of an error the field**description** contains a description of the error.
101103

102104
{
103105
"result" : "OK",
104106
"alarmId" : "dakldjsfal-2343232-afsdaddfa-234",
105107
"customerId" : 100027,
106108
"description" : "ok",
107-
"alarmData" : {siehe Beschreibung AlarmDataObject }
109+
"alarmData" : {see description AlarmDataobject }
108110
}
109111

110112

111113
###LIST ALARM
112114
_**/api/alarm/v1/list**_
113115

114-
Um eine Liste von Alarmen zu erhalten muss man einenHTTP POST Requestmit dem Header:`Content-Type: application/json`auf die oben angebeneURLabsenden. Man erhält eine Liste vonAlarmDataObjekten. Es werden maximal 100 Alarme geliefert - sortiert nach Enddatum des Alarms.
116+
To get a list of alarms, send anHTTP POST Requestwith header`Content-Type: application/json`to theURLmentioned above. You will receive a list ofAlarmDataobjects. Only 100 alarms will be returned, sorted by the end date of the alarm.
115117

116-
- username: string -verpflichtend -Benutzername
117-
- password: string -verpflichtend -Passwort
118-
- customerIds: list of string -verpflichtend -Liste von Kundennummern
119-
- startDate: date in iso format - optional -Startdatum der Suche (alle Alarme mit End-Datum danach werden geliefert)
120-
- endDate: date in iso format - optional -Enddatum der Suche (alle Alarme mit Start-Datum davor werden geliefert)
118+
- username: string -mandatory -username
119+
- password: string -mandatory -password
120+
- customerIds: list of string -mandatory -list of customer IDs
121+
- startDate: date in iso format - optional -start date for search (all alarms with later end date will be returned)
122+
- endDate: date in iso format - optional -end date for search (all alarms with prior start date will be returned)
121123

122124
Ein Beispiel:
123125

@@ -129,44 +131,45 @@ Ein Beispiel:
129131
"endDate" : "2016-01-01T17:30:00.000Z"
130132
}
131133

132-
Im Erfolgsfall erhält man z.B. folgendes Resultat. Die möglichen Werte für**result** sind weiter unten angegeben. Im Fehlerfall ist dem Feld**description** eine Beschreibung des Fehlers zu entnehmen.
134+
The following is an exapmple of a successful API call.
135+
A list of all possible values of**result** is provided further down. In case of an error the field**description** contains a description of the error.
133136

134137
{
135138
"result" : "OK",
136139
"description" : "ok",
137-
"alarms" : [{siehe Beschreibung AlarmDataObject }]
140+
"alarms" : [{see description AlarmDataobject }]
138141
}
139142

140143
####AlarmData
141-
- customerId:Die Kundennummer zu der dieser Alarm gehört
142-
- alarmId:Der eindeutige Identifier des Alarms
143-
- alarmGroups:Liste der Alarmgruppen Elemente (siehe AlarmGroupObject)
144-
- alarmDate :Zeitpunkt der Alarmierung
145-
- endDate:Ende der Antwortfunktion (falls aktiviert)
146-
- authorName:Name des Alarmgebers der den Alarm ausgelöst hat
147-
- alarmText:Der Alarmierungstext
148-
- needsAcknowledgement:Ob die Antwortfunktion aktiviert ist
149-
- usersAlertedCount:Anzahl der alarmierten Personen
150-
- geolocation:Siehe GeoLocationObject
151-
- recipients:Liste der Alarmteilnehmer -siehe AlarmRecipientObject
152-
- audioUrl: Urlzum Abspielen des Audio-Alarms, falls ein solcher ausgelöst wurde
153-
- indexNumber:Die Index Nummer des Alarms
154-
155-
156-
Ein Beispiel:
144+
- customerId:Customer ID belonging to this alarm
145+
- alarmId:unique identifier of the alarm
146+
- alarmGroups:list of alarm group elements (see AlarmGroupobject)
147+
- alarmDate :time of alert
148+
- endDate:end of reply function window (if activated)
149+
- authorName:name of the alarm trigger that has triggered the alarm
150+
- alarmText:the alarm text
151+
- needsAcknowledgement:reply function active/inactive
152+
- usersAlertedCount:nubmer of participants alerted
153+
- geolocation:see GeoLocationobject
154+
- recipients:list of participants -see AlarmRecipientobject
155+
- audioUrl: Urlof audio alarm, if applicable
156+
- indexNumber:index number of the alarm
157+
158+
159+
An example:
157160

158161
{
159162
"customerId" : "100027",
160163
"alarmId" : "32849abcdef23343",
161-
"alarmGroups" : [ ], //Liste von AlarmGroupElementen
162-
"alarmDate" : "2016-01-01T17:30:21.345Z", // UTCDatum
163-
"endDate" : "2016-01-01T17:30:21.345Z", // UTCDatum
164-
"authorName" : "Max Mustermann",
165-
"alarmText" : "Das ist ein Probealarm",
164+
"alarmGroups" : [ ], //list of AlarmGroupelements
165+
"alarmDate" : "2016-01-01T17:30:21.345Z", // UTCdate
166+
"endDate" : "2016-01-01T17:30:21.345Z", // UTCdate
167+
"authorName" : "John Doe",
168+
"alarmText" : "This is a test",
166169
"needsAcknowledgement" : true,
167170
"usersAlertedCount" : 10,
168171
"geolocation" : { }, // see GeoLocation object
169-
"recipients" : [ ], //Liste von AlarmRecipientElementen
172+
"recipients" : [ ], //list of AlarmRecipientelements
170173
"audioUrl" : null,
171174
"indexNumber": null
172175
}
@@ -175,28 +178,28 @@ Ein Beispiel:
175178

176179
{
177180
"groupId" : "G1",
178-
"groupName" : "Alle Einsatzkräfte"
181+
"groupName" : "whole team"
179182
}
180183

181184
####AlarmRecipient
182185

183186
{
184187
"id" : "2342343242342abcde32423423",
185-
"name" : "Martina Musterfrau",
188+
"name" : "Jeanny Doe",
186189
"msisdn" : "+4366412345678",
187-
"comment" : "FF Nusterwehr" //ein optionales Zusatzfeld
188-
"participation" : "yes", //eines vonyes | no | uknown | pending
189-
"participationMessage" : "Komme 5 Minuten später",
190-
"functions": [ ], //Liste von AlarmFunction Elementen (Funktionen /Qualifikationen)
190+
"comment" : "Fire Brigade ABC" //optional
191+
"participation" : "yes", // yes | no | uknown | pending
192+
"participationMessage" : "Coming in 5 minutes",
193+
"functions": [ ], //list of AlarmFunction Elementen (functions /qualifications)
191194
}
192195

193196
####AlarmFunction
194197

195198
{
196199
"functionId": "123123789"
197-
"name": "Atemschutzgeräteträger"
200+
"name": "respiratory equipment carriers"
198201
"order": 2
199-
"shortForm": "AGT"
202+
"shortForm": "REC"
200203
"backgroundHexColorCode": "#3164c2"
201204
"foregroundHexColorCode" "#ffffff"
202205
}
@@ -208,13 +211,13 @@ Ein Beispiel:
208211
"lat" : 17.34334,
209212
"lon" : 23.32343
210213
},
211-
"positionSetByAuthor" : true, //Wenn die Koordinaten durch den Autor gesetzt wurden
212-
"radius" : 10, //Radius in m (Kann auch null sein)
213-
"distance" : 10, //Distanz in m (Kann auch null sein)
214-
"address" : "Musterstraße1,1010 Wien" //Adresse im Textformat (Kann auch null sein)
214+
"positionSetByAuthor" : true, //if coordinates set by author
215+
"radius" : 10, //radius in m (may be null)
216+
"distance" : 10, //distance in m (may be null)
217+
"address" : "High Street1,1234 Metropolis" //textual address (may be null)
215218
}
216219

217-
####Ergebnis Codes
220+
####Return Codes
218221
- OK
219222
- MISSING_INPUT_DATA
220223
- MISSING_CUSTOMER_ID

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp