Installing TimeTrex Remote API Tools

TimeTrex On-Site server software includes all the necessary API tools to utilize the API, however in cases where you want to access the TimeTrex API from a remote computer, or access the API of a TimeTrex Cloud Hosted account, please follow these instructions.

Modern server
Microsoft Windows blogs

Installation Steps:

Step 2:

				
					;extension=php_curl.dll
;extension=php_openssl.dll
				
			

Step 3:

Step 4:

				
					C:\php\php C:\timetrex_remote_tools\tools\import\import.php --help
				
			

Example Usages

Importing Employees

				
					C:\php\php C:\timetrex_remote_tools\tools\import\import.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -object User -export_map Default C:\Temp\default_employees.map
				
			
				
					C:\php\php C:\timetrex_remote_tools\tools\import\import.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -object User C:\Temp\default_employees.map C:\temp\data_to_import.csv

				
			
				
					C:\php\php C:\timetrex_remote_tools\tools\import\import.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -object User -f update C:\Temp\default_employees.map C:\temp\data_to_import.csv
				
			

Importing Punches

				
					C:\php\php C:\timetrex_remote_tools\tools\import\import.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -object Punch C:\Temp\punches.map C:\temp\data_to_import.csv

				
			

Exporting Reports

				
					C:\php\php C:\timetrex_remote_tools\tools\export\export_report.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -report TimesheetSummaryReport -saved_report MySavedReport C:\temp\timesheet_summary_report.csv csv

				
			
				
					C:\php\php C:\timetrex_remote_tools\tools\export\export_report.php -server https://demo.timetrex.com/api/json/api.php -username admin -password abc123 -report TimesheetSummaryReport -saved_report MySavedReport -time_period custom_date -filter start_date=01-Jan-19,end_date=31-Jan-19 C:\temp\timesheet_summary_report.csv csv

				
			

If you wish to utilize the API directly to programmatically perform actions within TimeTrex that are not available from the existing tools, please see our API usage examples.

See the following guides for instructions on installing TimeTrex for other operating systems:

Linux – Ubuntu/Debian
Linux – CentOS
Windows / Windows Server

Saving businesses time and money through better workforce management since 2003.

Copyright © 2023 TimeTrex. All Rights Reserved.