Enables the import of a performed driver's license control

Description

   /personnel/add_driver_license_check.php?company=RTI_COMPANYKEY&import=RTI_VEHICLEKEY&nfc_tag=NFC_TAG&date=20210324151000&terminal=optionales Terminal

  /personnel/add_driver_license_check.php?company=RTI_COMPANYKEY&import=RTI_VEHICLEKEY&mode=csv_import&delimiter=COMMA&csv_structure[]={ "type" : "datetime", "pattern":"YmdHis"}&csv_structure[]={ "type" : "nfc_tag" }&headline=1

Parameter

Query parameters

ParameterDescriptionTypeNotesMandatory
companyRTI company keystring
yes
importRTI import keystring

yes

modeDifferentiation of the various actionsstring

permissible modes are:

  • single_insert: einzelne Buchung (default)
  • csv_import: Import einer CSV Datei


no

nfc_tagNFC Tagstring
yes, mode single_insert
datedate in ME(S)Z stringFormat: YYYYMMDDHHMMSSyes, mode single_insert
terminalAt which terminal was the driver's license check performedstring

no

delimiterWhich separator was used in the CSVstring

COMMA, SEMICOLON oder TAB

yes, mode single_insert
csv_structure[]One entry per column, what kind of content can be found in the columnstring[]
  • { "type" : "datetime", "pattern":"YmdHis"}
  • { "type" : "date", "pattern":"Ymd"}
  • { "type" : "time", "pattern":"His"}
  • { "type" : "terminal" }
  • { "type" : "nfc_tag" }
  • { "type" : "ignore" }
yes, mode single_insert
headlinefile contains a headerint0 = no headline (default), 1 = headline presentno

Body parameters

ParameterDescriptionTypeNotesMandatory
fileFilefile
yes, mode single_insert

Return

In case of success "OK" is returned. or in case of CSV import per line.

In case of missing or incorrect entries an "ERROR:Description" is returned.

Examples


https://map.yellowfox.de/rti/personnel/add_driver_license_check.php?company=COMPANY_KEY&import=IMPORTKEY&nfc_tag=abc123def&date=20210324151000&terminal=optionales Terminal


https://map.yellowfox.de/rti/personnel/add_driver_license_check.php?company=COMPANY_KEY&import=IMPORTKEY&&mode=csv_import&delimiter=COMMA&csv_structure[]={"type":"datetime","pattern":"YmdHis"}&csv_structure[]={"type":"nfc_tag"}&headline=1


{
    "1": "ERROR:NO DRIVER FOUND WITH NFC KEY: abc123def",
    "2": "OK",
    "3": "OK"
}