Wiki source code of get_file.php

Last modified by YellowFox_RD on 2025/01/23 10:23

Hide last authors
YellowFox_RD 1.1 1 (% class="box" %)
Dominic Lippmann 2.1 2 (((
3 Table of Contents
4 )))
5
YellowFox_RD 1.1 6 {{toc/}}
7
Dominic Lippmann 2.1 8 This function returns a signature file (PNG), an uploaded picture/ photo (JPG) or a digital tachograph file (DDD).
9
10 = Description =
11
12 (% class="green mark" %)**GET**(%%)** get_file.php?company**=//COMPANY_RTIKEY//**&vehicle**=//VEHICLE_RTIKEY//**&filename**=//MD5//
13
YellowFox_RD 1.1 14 = Parameter =
15
Dominic Lippmann 2.1 16 |=Parameter|=Description|=Type|=Note|=Mandatory
17 |company|RTI company key|string| |yes
18 |vehicle|RTI vehicle key|string|You have to send one of these parameters, vehicle, group or import!|yes
19 |group|RTI group key|string|You have to send one of these parameters, vehicle, group or import!|yes
20 |import|RTI import key(all vehicles)|string|You have to send one of these parameters, vehicle, group or import!|yes
21 |filename|MD5 Hash|string|you get from **get_custom_form_data.php **or** get_file_list.php,**
22 YellowFox-filename, not the original filename (field DID in get_file_list.php)|yes
23 |markdownload|0 - marks this file not as downloaded
24 1 - marks this file as downloaded|integer|0 is the standard|no
YellowFox_RD 1.1 25
Dominic Lippmann 2.1 26 = Return =
YellowFox_RD 1.1 27
Dominic Lippmann 2.1 28 You get a PNG, a JPG or a DDD file for download. If not you get a error message "(% class="error" %)**ERROR:Description**(%%)".
YellowFox_RD 1.1 29
Dominic Lippmann 2.1 30 == Error reponses ==
31
32 |=error|=description
33 |NO_FILE_FOUND|File not found.
34 |FILE_NOT_UPLOADED|File is in transmission. Please try again later.
35 |NOT_SUPPORTED_FILETYPE|File type unknown. Please contact support.
36
37 = Example call =
38
39 **example call for returning an image file**
40 \\{{code language="java"}}https://map.yellowfox.de/rti/get_file.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&filename=1832c7a0a4aa71647523d1a75e4506da&markdownload=1
41
YellowFox_RD 1.1 42 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{{/code}}
43