0
隨着asana api我只想獲得在過去5分鐘內完成的任務列表。對於那下面的PHP代碼。我收到了甚至沒有關閉的任務列表。Asana獲取任務api不返回最近關閉的任務
//unix time before 5 minutes
$lastHour = time() - 5 * 60;
//convert to tz format
$last_run = date("Y-m-d\TH:i:s.000\Z", $lastHour);
$args = array('completed_since' => $last_run);
$tasks = $asana->getProjectTasks($project->id, $args);
echo "<pre>"; print_r($tasks);
$tasksJson = json_decode($tasks);
查詢有什麼問題嗎?