Versions Compared

Key

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

...

Sv translation
languageen

Enables the import of a performed driver's license control

Description

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

Status
colourBlue
titlePOST
  /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

zulässige Modi sindpermissible 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


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


Code Block
titleCSV Import
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


Code Block
titleReturn CSV Import with 3 lines
{
    "1": "ERROR:NO DRIVER FOUND WITH NFC KEY: abc123def",
    "2": "OK",
    "3": "OK"
}