Not able to Login through API (JSON, SOAP)
Posted: Sun Jul 09, 2017 5:10 pm
Running 10.6.2 Community Edition on Ubuntu 16.04 with php 7.0 and mysql
Have tried both API examples for SOAP and JSON and confirmed the username and password are valid by logging in through html interface successfully.
JSON here is response:
Posting data to URL: https://xxxxcorp.dynu.net:444/xxxxTT/ap ... thod=Login POST Data: json=%7B%22user_name%22%3A%22admin%22%2C%22password%22%3A%226666666%22%7D -------------------------------------------------------------- Login Failed!
When I put URL in directly I get: {"api_retval":false,"api_details":{"code":"EXCEPTION","description":"Method Login POST Data: json={"user_name":"admin","password":"666666"} does not exist.","record_details":{"total":0,"valid":0,"invalid":0},"user_generic_status_batch_id":false,"details":false}}
SOAP I added some echo to the api scripts and get:
LOGGING IN
FAULT SOAP Fault: (Code: HTTP, String: Could not connect to host) - Request: Response: Login Failed!
In both scripts using:
$TIMETREX_USERNAME = 'admin';
$TIMETREX_PASSWORD = '666666';
For JSON
$TIMETREX_URL = 'https://xxxxcorp.dynu.net:444/xxxxTT/api/json/api.php'
For SOAP
$TIMETREX_URL = 'https://xxxxcorp.dynu.net:444/xxxxTT/api/soap/api.php'
Does anything in timetrex.ini.php affect this?
Have Log Enabled at verbosity 10 and Production FALSE, but nothing showing up in log
Thanks in advance,
Gregory
Have tried both API examples for SOAP and JSON and confirmed the username and password are valid by logging in through html interface successfully.
JSON here is response:
Posting data to URL: https://xxxxcorp.dynu.net:444/xxxxTT/ap ... thod=Login POST Data: json=%7B%22user_name%22%3A%22admin%22%2C%22password%22%3A%226666666%22%7D -------------------------------------------------------------- Login Failed!
When I put URL in directly I get: {"api_retval":false,"api_details":{"code":"EXCEPTION","description":"Method Login POST Data: json={"user_name":"admin","password":"666666"} does not exist.","record_details":{"total":0,"valid":0,"invalid":0},"user_generic_status_batch_id":false,"details":false}}
SOAP I added some echo to the api scripts and get:
LOGGING IN
FAULT SOAP Fault: (Code: HTTP, String: Could not connect to host) - Request: Response: Login Failed!
In both scripts using:
$TIMETREX_USERNAME = 'admin';
$TIMETREX_PASSWORD = '666666';
For JSON
$TIMETREX_URL = 'https://xxxxcorp.dynu.net:444/xxxxTT/api/json/api.php'
For SOAP
$TIMETREX_URL = 'https://xxxxcorp.dynu.net:444/xxxxTT/api/soap/api.php'
Does anything in timetrex.ini.php affect this?
Have Log Enabled at verbosity 10 and Production FALSE, but nothing showing up in log
Thanks in advance,
Gregory