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:

Register a permanent API key/Session ID, required for all remote tool usage. Follow these steps:

Step 5:

				
					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 -api_key YourAPIKeyHere -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 -api_key YourAPIKeyHere -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 -api_key YourAPIKeyHere -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 -api_key YourAPIKeyHere -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 -api_key YourAPIKeyHere -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 -api_key YourAPIKeyHere -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