This function returns a signature file (PNG), an uploaded picture/ photo (JPG) or a digital tachograph file (DDD).
Description
GET get_file.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&filename=MD5
Parameter
Parameter | Description | Type | Note | Mandatory |
---|---|---|---|---|
company | RTI company key | string | yes | |
vehicle | RTI vehicle key | string | You have to send one of these parameters, vehicle, group or import! | yes |
group | RTI group key | string | You have to send one of these parameters, vehicle, group or import! | yes |
import | RTI import key(all vehicles) | string | You have to send one of these parameters, vehicle, group or import! | yes |
filename | MD5 Hash | string | you get from get_custom_form_data.php or get_file_list.php, YellowFox-filename, not the original filename (field DID in get_file_list.php) | yes |
markdownload | 0 - marks this file not as downloaded 1 - marks this file as downloaded | integer | 0 is the standard | no |
Return
You get a PNG, a JPG or a DDD file for download. If not you get a error message "ERROR:Description".
Error reponses
error | description |
---|---|
NO_FILE_FOUND | File not found. |
FILE_NOT_UPLOADED | File is in transmission. Please try again later. |
NOT_SUPPORTED_FILETYPE | File type unknown. Please contact support. |
Example call
example call for returning an image file
https://map.yellowfox.de/rti/get_file.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&filename=1832c7a0a4aa71647523d1a75e4506da&markdownload=1 https://map.yellowfox.de/rti/get_file.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&filename=1832c7a0a4aa71647523d1a75e4506da&markdownload=1