tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/66-access-to-the-bodyLighthouse: Discussion 2011-04-07T05:34:54Ztag:help.lighthouseapp.com,2008-09-20:Comment/423932009-01-20T18:43:39Z2009-01-20T18:43:39ZAccess to the body<div><p>Ok im having problems accessing the from the ticket that
lighthouse returns when i request it, All the other elements return
properly but the body and the versions are always missing for some
reason.</p>
<p>the fucntion im using to get the results looks like this;</p>
<p>public function getTicket($projID,$ticketID,
$getParams=array()){</p>
<pre>
<code> if (!empty($getParams)){
foreach ($getParams as $key => $val){
$qString .= '&'.$key.'='.urlencode($val).'';
}
$qString = '?'.substr($qString, 1);
}
$res = $this->curl->get("projects/".$projID."/tickets/".$ticketID.".xml".$qString);
$this->checkCode($res);
return $this->loadObj($res['response']);</code>
</pre>
<p>like i say, all the other values return but never any body or
versions... im a bit lost now.</p></div>matttag:help.lighthouseapp.com,2008-09-20:Comment/423932009-01-22T09:36:38Z2009-01-22T09:36:38ZAccess to the body<div><p>No matter, reseolved this issue now.</p></div>matt