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.
;extension=php_curl.dll
;extension=php_openssl.dll
Register a permanent API key/Session ID, required for all remote tool usage. Follow these steps:
C:\php\php C:\timetrex_remote_tools\tools\import\import.php --help
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
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
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:
Saving businesses time and money through better workforce management since 2003.
Copyright © 2024 TimeTrex. All Rights Reserved.