我必须在项目下使用Asana API获取任务, 我到目前为止尝试了但是给出了错误
$tasksall = $asana->getProjectTasks($projectId);
$tasksJson = json_decode($tasksall);
print_r($taskJson);
调用函数
public function getProjectTasks($projectId){
return $this->askAsana($this->taskUrl."?project={$projectId}");
}
答案 0 :(得分:0)
试试这个..
将此作为主要部分
$projectId='Your project id';
$taskbyproject = $asana->getProjectTasks($projectId);
//print_r($taskbyproject);
将其用作功能
public function getProjectTasks($projectId, array $opts = array())
{
$options = http_build_query($opts);
return $this->askAsana($this->taskUrl . '?project=' . $projectId . '&' . $options);
}