Starting point for php API?
Moderators: Amaradana, TurboPT, TL Developers
Starting point for php API?
I need a doc to walk me through how to even start getting the API to work. I still can't find the sample client code... Anyone that can help me?
Thank you very much. It is all working now. Is there a way for me to use php -a <scriptname>.php to only print out the data I need to the command line?
For example,
$args["testplanid"]='7';
$args["testcaseexternalid"]='Test-2';
$debug=true;
echo $unitTestDescription;
$client = new IXR_Client($server_url);
$client->debug=$debug;
new dBug($args);
if(!$client->query("tl.{$method}", $args))
{
echo "something went wrong - " . $client->getErrorCode() . " - " . $client->getErrorMessage();
$response=null;
}
else
{
$response=$client->getResponse();
}
I want to parse $response as a string and get the date I need. Not print it out using new dBug($response);
For example,
$args["testplanid"]='7';
$args["testcaseexternalid"]='Test-2';
$debug=true;
echo $unitTestDescription;
$client = new IXR_Client($server_url);
$client->debug=$debug;
new dBug($args);
if(!$client->query("tl.{$method}", $args))
{
echo "something went wrong - " . $client->getErrorCode() . " - " . $client->getErrorMessage();
$response=null;
}
else
{
$response=$client->getResponse();
}
I want to parse $response as a string and get the date I need. Not print it out using new dBug($response);