| 22 | Le fichier fc_common contient les fonction suivantes : |
| 23 | |
| 24 | - get_token -> Manage acquisition of the token : first uses ''get_token_local'', if it fails, uses ''get_token_server'' and the saves the token with ''write_token''. |
| 25 | - get_token_local -> Reads the token from the local file. |
| 26 | - get_token_server -> Acquires a new token from the API-REST. |
| 27 | - write_token -> Saves in the local file the newly acquire token. |
| 28 | |
| 29 | - define_computetime -> Date formating function |
| 30 | - print_elapsed_time -> Function to print the time of a code part, with an argument for the text to be printed. |
| 31 | - pause_and_print -> Function to makes a break and print that it has done a break (used in the download functions, to handle cases where API-REST does temporary not answer, for example due to a manuel restart). |
| 32 | |
| 33 | - write.RSMcsv -> Function to export data in a CSV format readable by RS MINERVE. |
| 34 | |
| 35 | |