I have to fetch task using Asana API under project, I tried so far but gives error
$tasksall = $asana->getProjectTasks($projectId);
$tasksJson = json_decode($tasksall);
print_r($taskJson);
Call a function
public function getProjectTasks($projectId){
return $this->askAsana($this->taskUrl."?project={$projectId}");
}