Versions Compared

Key

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

...

Sv translation
languageen

Getting data for personnel set in personnel administration

Description

get_personnel.php?company=RTI_COMPANYKEY&import=RTI_VEHICLEKEY&format=csv

Parameters

parameterdescriptiontyperemarkmandatory
companyRTI company keystring 

yes

importRTI import keystring yes
formatexport format for liststring

supported output formats:

  • csv - export as csv formatted file
  • json - export as json
  • xml - export as xml

default: csv

 

no
historyshow only latest personnel key for each person or all keys for each personint
  • 0 - return only latest key
  • 1 - return all keys
    • will return one entry per key

default: 0

no
idlimit exported persons list to given idstringsee strict parameterno
namelimit exported persons list to given namestringsee strict parameterno
pkeylimit exported persons list to given personnel keystringsee strict parameterno
grouplimit exported persons list to given personnel groupstringsee strict parameterno
strict

switch search between finding the exact given value or return all results where the search string is part of the result

 

int
  • 0 - return all results containing the searched string
  • 1 - return only results matching exactly the searched string

default: 1

this setting modifies the behaviour for parameters: id, name, pkey, group

no

Return

Returning a string in selected format. On error returning "403 - Verboten: Zugriff verweigert." as HTTP-Header.

Spalten

CSV column name
JSON/XML key namename in personnel administration
description
remark
 
IDidMA-Nummeremployee numberself defined employee numberselbstdefinierte eindeutige Mitarbeiternummer  
NAMEnameNamevollständiger Name der Personcomplete name of the person  
KEYkey[id]Personalschlüsselpersonnel keyPersonalschlüssel (für Buchungen über personnel key (for bookings via YellowFox)  
VALID_FROMkey[valid_from]Personalschlüssel gültig abpersonnel key valid fromvalidity start for the personnel keyGültigkeitsbeginn des Personalschlüssels Formatformat: YYYY-MM-DD HH:MM:SS
VALID_TOkey[valid_to]Personalschlüssel gültig bispersonnel key valid tovalidity end for the personnel keyGültigkeitsende des Personalschlüssels Formatformat: YYYY-MM-DD HH:MM:SS
GROUPSgroups[group]Personalgruppenpersonnel groupscomma separated list with all personnel groups assigned to the personKomma getrennte Liste mit den Bezeichnungen der zugewiesenen Personalgruppen  
CARD_NRcard_nrAusweisnummeremployee licence numberoptional licence number to assign bookings to ReinerSCTEntspricht der optioPASSnale zuweisbaren Ausweisnummer, welche zur Erfassung von Buchungen mittels ReinerSCT genutzt wird  
DRV_LICENCE_NRdrv_licence[id]FührerscheinFührerscheinnummer der Persondriver licencedriver licence numberonly filled, if tacho archive activeDaten nur bei gebuchtem Tacho Archiv 
DRV_LICENCE_VALID_TOdrv_licence[valid_to]Führerschein gültig bisAblaufdatum des FührerscheinsDaten nur bei gebuchtem Tacho Archivdriver licence valid toexpiration date of driver licenceonly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
IDENTITY_CARD_NRidentity_card[id]PersonalausweisPersonalausweisnummeridentity cardidentity card numberonly filled, if tacho archive activeDaten nur bei gebuchtem Tacho Archiv 
IDENTITY_CARD_VALID_TOidentity_card[valid_to]Personalausweis gültig bisAblaufdatum des PersonalausweisesDaten nur bei gebuchtem Tacho Archividentity card valid toexpiration date of identity cardonly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
PASSPORT_NRpassport[id]ReisepasspassportReisepass Nummerpassport numberonly filled, if tacho archive activeDaten nur bei gebuchtem Tacho Archiv 
PASSPORT_VALID_TOpassport[valid_to]Reisepass gültig bisAblaufdatum des ReisepassesDaten nur bei gebuchtem Tacho Archivpassport valid toexpiration date of passortonly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
ADR_CERTIFICATE_NRadr_certificate[id]ADR BescheinigungcertificateNummer der ADR Bescheinigungnumber of ADR certificate (carriage of dangerous goods by road)only filled, if tacho archive activeDaten nur bei gebuchtem Tacho Archiv 
ADR_CERTICATE_VALID_TOadr_certificate[valid_to]ADR Bescheinigung gültig bisAblaufdatum der ADR BescheinigungDaten nur bei gebuchtem Tacho Archivcetificate valid toexpiration date of ADR certificateonly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
BKRFQG_VALID_TObkrfqg[valid_to]Qualifikation laut Schlüsselzahl 95 gültig bisGültigkeit der Schulung zum BerufskraftfahrerqualifikationsgesetzDaten nur bei gebuchtem Tacho Archivqualification by keynumber 95 valid toexpiration date of german "Berufskraftfahrerqualifikationsgesetz"only filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
BIRTHDATEbirthdateGeburtsdatumGeburtsdatum der PersonDaten nur bei gebuchtem Tacho Archivdate of birthdate of birth of persononly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS
JOB_START_DATEjob_start_dateEinstellungsdatumEinstellungsdatum der PersonDaten nur bei gebuchtem Tacho Archivemployee sincestart date of beeing an employee at this companyonly filled, if tacho archive activeformatFormat: YYYY-MM-DD HH:MM:SS

CSV Format

Bei einer korrekten Anfrage werden die Personaldaten im CSV (Comma Separated Value) Format ausgeliefert wobei die erste
Anwortzeile immer die Kopfzeile ist, die die Feld-/Spalten Namen festlegt. Dannach folgen dann die Daten

Metainformationen

Sending a correct request will return a csv formatted file with a headline as first line containing column names. The data itself will be returned in following rows.

Meta informations

Separatorsemicolon ( ; )
text limiterdouble quote ( " )
line brak
TrennzeichenSemikolon ( ; )
TextbegrenzerDoppeltes Hochkomma ( " )
Zeilenende0x0D 0x0A (CarriageReturn LineFeed)
HeaderheaderZeile row 1

Header

Header Informationeninformations

 

"ID";"NAME";"KEY";"VALID_FROM";"VALID_TO";"GROUPS";"CARD_NR";"DRV_LICENCE_NR";"DRV_LICENCE_VALID_TO";"IDENTITY_CARD_NR";"IDENTITY_CARD_VALID_TO";"PASSPORT_NR";"PASSPORT_VALID_TO";"ADR_CERTIFICATE_NR";"ADR_CERTIFICATE_VALID_TO";"BKRFQG_VALID_TO";"BIRTHDATE";"JOB_START_DATE"

Beispiel

Code Block
languagevb
"ID";"NAME";"KEY";"VALID_FROM";"VALID_TO";"GROUPS";"CARD_NR";"DRV_LICENCE_NR";"DRV_LICENCE_VALID_TO";"IDENTITY_CARD_NR";"IDENTITY_CARD_VALID_TO";"PASSPORT_NR";"PASSPORT_VALID_TO";"ADR_CERTIFICATE_NR";"ADR_CERTIFICATE_VALID_TO";"BKRFQG_VALID_TO";"BIRTHDATE";"JOB_START_DATE"
"0012";"MaxJohn MustermannSmith";"DF1234567890";"2018-01-01 06:43:00";"";"FahrerDrivers,Dresden";"";"YFDD9876";"2021-11-10 23:59:59";"";"";"";"2023-04-30 23:59:59";"";"2020-07-31 23:59:59";"2021-11-30 23:59:59";"1990-02-19 00:00:00";"2014-09-01 00:00:00"

JSON Format

Liefert eine JSON formatierte Liste mit allen verfügbaren Daten zurück. Die Daten selbst werden alle in einer Key - Value - Beziehung zurückgegeben. Einzelne Werte wie die Daten zum Personalschlüssel oder die einzelnen Personalgruppen sind zur besseren Zuordnung jeweils in einem Unterobjekt zusammengefasstRetrun a json formatted string with all the available data matching the request parameters. The entries will be returned as key - value relation. Some data such as personnel key or personnel groups are grouped in a sub object.

Beispiel

Code Block
languagejs
[
	{
		"id":"0013",
		"name":"Marion Musterfrau",
		"key":{
			"id":"DF9876543210",
			"valid_from":"2016-01-01 00:00:00",
			"valid_to":null
		},
		"card_nr":null,
		"groups":[
			"Fahrer",
			"Berlin"
		],
		"deleted":null,
		"drv_licence":{
			"id":"asd09472845",
			"valid_to":"2017-02-24 23:59:59"
		},
		"identity_card":{
			"id":"hal2001",
			"valid_to":"2017-01-11 23:59:59"
		},
		"passport":{
			"id":null,
			"valid_to":null
		},
		"adr_certificate":{
			"id":null,
			"valid_to":"2019-05-23 23:59:59"
		},
		"bkfqg":{
			"valid_to":null
		},
		"birthdate":"1998-05-13 00:00:00",
		"job_start_date":"2016-09-01 00:00:00"
	},
	{
		"id":"0014",
		"name":"Patrick Berger",
		"key":{
			"id":"00047392",
			"valid_from":"2017-07-05 13:20:00",
			"valid_to":null
		},
		"card_nr":"7937102",
		"groups":[
			"B\u00fcro",
			"Berlin"
		],
		"deleted":null,
		"drv_licence":{
			"id":jvg7820185",
			"valid_to":"2014-07-18 23:59:59"
		},
		"identity_card":{
			"id":"ppa4711",
			"valid_to":"2014-07-19 23:59:59"
		},
		"passport":{
			"id":null,
			"valid_to":null
		},
		"adr_certificate":{
			"id":null,
			"valid_to":null
			},
		"bkfqg":{
			"valid_to":"2019-07-18 25:59:59"
		},
		"birthdate":"1996-07-17 00:00:00",
		"job_start_date":"2014-07-17 00:00:00"
	}
]

XML Format

Liefert einen XML formatierten String zurück. Unter dem Hauptschlüssel "<persons>" ist jede einzelne Person als "<person>" Objekt erfasst. Einzelne Werte wie die Daten zum Personalschlüssel oder die einzelnen Personalgruppen sind zur besseren Zuordnung jeweils in einem Unterobjekt zusammengefasstReturn an xml formatted string with main key "<persons>" and data for each single person then grouped in a "<person>" object. Some data such as personnel key or personnel groups are grouped in a sub object.

Beispiel

Code Block
languagexml
<?xml version="1.0"?>
<persons>
    <person>
        <id>0012</id>
        <name>Max Mustermann</name>
        <key>
            <id>DF1234567890</id>
            <valid_from>2018-01-01 06:43:00</valid_from>
            <valid_to/>
        </key>
        <card_nr/>
        <groups>
            <group>Fahrer</group>
            <group>Dresden</group>
        </groups>
		<deleted/>
        <drv_licence>
            <id>asd09472845</id>
            <valid_to>2020-04-23 23:59:59</valid_to>
        </drv_licence>
        <identity_card>
            <id/>
            <valid_to/>
        </identity_card>
        <passport>
            <id>yfdd01723</id>
            <valid_to>2023-09-17 23:59:59</valid_to>
        </passport>
        <adr_certificate>
            <id/>
            <valid_to>2018-09-30 23:59:59</valid_to>
        </adr_certificate>
        <bkfqg>
            <valid_to/>
        </bkfqg>
        <birthdate/>
        <job_start_date>2012-05-01 00:00:00</job_start_date>
    </person>
    <person>
        <id>0013</id>
        <name>Marion Musterfrau</name>
        <key>
            <id>DF9876543210</id>
            <valid_from>2016-01-01 00:00:00</valid_from>
            <valid_to>2019-01-01 00:00:00</valid_to>
        </key>
        <card_nr/>
        <groups>
            <group>Fahrer</group>
            <group>Berlin</group>
        </groups>
		<deleted/>
        <drv_licence>
            <id>asd09472845</id>
            <valid_to>2020-04-23 23:59:59</valid_to>
        </drv_licence>
        <identity_card>
            <id/>
            <valid_to/>
        </identity_card>
        <passport>
            <id>yfdd01723</id>
            <valid_to>2023-09-17 23:59:59</valid_to>
        </passport>
        <adr_certificate>
            <id/>
            <valid_to>2018-09-30 23:59:59</valid_to>
        </adr_certificate>
        <bkfqg>
            <valid_to/>
        </bkfqg>
        <birthdate/>
        <job_start_date>2012-05-01 00:00:00</job_start_date>
    </person>
</persons>

 

Beispiele

Examples

Code Block
languagexml
titleAbfrage aller Personen im CSV Format
map.yellowfox.de/rti/get_personnel.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&format=csv
Code Block
languagexml
titleAbfrage aller Personen der Gruppe "Fahrer" mit allen Schlüsseln
map.yellowfox.de/rti/get_personnel.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&format=xml&group=Fahrer&history=1
Code Block
languagexml
titleAbfrage der Daten einer Person mit einer bestimmten ID
map.yellowfox.de/rti/get_personnel.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&format=json&history=1&id=1234&strict=1