Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languageen

Eine Nachricht an ein einzelnes Fahrzeug, eine Gruppe oder alle (import) senden.

Beschreibung

do_message.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&messagetext=NachrichtMessage&language=deugbr&responsetype=2&format=xml&freeresponses=a%3A2%3A%7Bi%3A0%3Bs%3A6%3A%22Montag%22%3Bi%3A1%3Bs%3A8%3A%22Dienstag%22%3B%7D

Parameter

ParameterBeschreibungDescriptionTypTypeHinweisNotePflichtMandatory
companyRTI Firmenschlüsselcompany keystring jayes
vehicleRTI Fahrzeugschlüsselvehicle keystringentweder either vehicle oder , group oder or import werden erwartetparameter(jayes)
groupRTI Gruppenschlüsselgroup keystringentweder either vehicle oder , group oder or import werden erwartetparameter(jayes)
importRTI Importschlüsselstringentweder either vehicle oder , group oder or import werden erwartetparameter(jayes)
messagetext string

Maximale Nachrichtenlängemaximal text length:

  • CE-Displays displays + Android Fleetandroid fleet: 500 Zeichensigns
  • all other displaysAlle anderen Displays: 200 Zeichensigns
jayes
responsetypeTyp der Antwortmöglichkeittype of the responseinteger

1 = keine vorgegebene Antwort (Standardno answer given (standard)

2 = Bestätigung erwartetconfirmation expected

3 = Jayes-/Neinno-Antwort erwartetanswer expected

4 = vorgegebene Antworten ( für Fleet-Displays ab Version reply template ( only for fleet-displays version higher 3.0)

neinno
freeresponsesvorgegebene Antwortmöglichkeitenserialisiertes Arrayserialized arraynecessary for notwendig für responsetype = 4neinno
languageSprachestring

only for responsetypes 2 and 3 necessary

supported params

nur für Responsetype 2 und 3

unterstützte Parameter: deu (Standardstandard), gbr, ndl, fra, ita

neinno
 formatRückgabeformatstring

format of the result from the interface

supported formats

 Format der zurückgelieferten Antwort der Schnittstelle

unterstüzte Formate: csv (Standardstandard), xml, json

neinno

Rückgabewerte

Es wird standardmäßig ein CSV-String zurückgegeben, welcher zu jedem Fahrzeug die Auswertung und bei erfolgreichen Versenden auch den SESSIONKEY enthält. Bei fehlenden Pflichtparametern wird ein "ERROR:Beschreibung" zurückgegeben

 

Return

By default, a CSV string is returned which contains the evaluation for each vehicle and the SESSIONKEY for successful dispatch. If the mandatory parameters are missing, an "ERROR: Description" is returned.

 

Return exampleBeispielrückgabe:

Code Block
languagephp
titleRückgabe als Return as XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE yf_domessage SYSTEM "http://map.yellowfox.de/rti/dtd/yf_domessage.dtd">
<yf_domessage>
	<message>
		<car>Car 1</car>
		<result>OK</result>
		<sessionkey>8a810da98bc0583af5959af0e8dde59g</sessionkey>
	</message>
</yf_domessage>
Code Block
titleRückgabe als Return as JSON
[{"car":"Car 1","result":"ERROR_HARDWARE_COMBINATION_NOT_SUPPORTED"},{"car":"Car 2","result":"OK","sessionkey":"8a810da98bc0583af5959af0e8dde59g"},{"car":"Car 3","result":"ERROR_HARDWARE_DONT_SHOW_RESPONSETYPE_3"}]
Code Block
titleRückgabe als Return as CSV
"CAR";"RESULT";"SESSIONKEY"
"Car 1";"ERROR_HARDWARE_COMBINATION_NOT_SUPPORTED";""
"Car 2";"OK";"8a810da98bc0583af5959af0e8dde59g"
"Car 3";"ERROR_HARDWARE_DONT_SHOW_RESPONSETYPE_3";""

 

Beispiele

Examples

 

Code Block
titlenormale Nachricht an einzelnes Fahrzeugsimple message to the vehicle
http://map.yellowfox.de/rti/do_message.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&messagetext=RTI%20do_message%20test
Code Block
title Bestätigungsnachricht an Gruppe mit englischer Bestätigung und gewünschten Rückgabeformat als Confirmation message to a group with english confirmation and desired return format as CSV
http://map.yellowfox.de/rti/do_message.php?company=COMPANY_RTIKEY&group=GROUP_RTIKEY&messagetext=RTI%20do_message%20test&responsetype=2&language=gbr&format=csv
Code Block
titleJa-Nein-Nachricht an alle mit englischer Bestätigung und gewünschten Rückgabeformat als Yes-No message to all with english confirmation and desired return format as XML
 http://map.yellowfox.de/rti/do_message.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&messagetext=RTI%20do_message%20test&responsetype=3&language=gbr&format=xml
Code Block
title Nachricht mit Antwortvorlage an alle, mit gewünschten Rückgabeformat als xml und der Antwortvorlage als serialisiertem ArrayMessage with reply template to all, with desired return format as xml and the response template as a serialized array
 http://map.yellowfox.de/rti/do_message.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&messagetext=RTI%20do_message%20test&responsetype=4&format=xml&freeresponses=a%3A2%3A%7Bi%3A0%3Bs%3A6%3A%22Montag%22%3Bi%3A1%3Bs%3A8%3A%22Dienstag%22%3B%7D

 

 

 

yes