i have fetch task using asana api under project, tried far gives error
$tasksall = $asana->getprojecttasks($projectid); $tasksjson = json_decode($tasksall); print_r($taskjson);
call function
public function getprojecttasks($projectid){ return $this->askasana($this->taskurl."?project={$projectid}"); }
try this..
use main part
$projectid='your project id'; $taskbyproject = $asana->getprojecttasks($projectid); //print_r($taskbyproject);
use function
public function getprojecttasks($projectid, array $opts = array()) { $options = http_build_query($opts); return $this->askasana($this->taskurl . '?project=' . $projectid . '&' . $options); }
Comments
Post a Comment