bainternet
4/26/2015 - 1:24 PM

gistfile1.php

<?php
$apikey = ""; // Your API key
$workspace = ''; // your project's workspace ID
$project = ''; // your project's ID
  
$tasks = array(
  'Task 1',
  'Task 2',
  'Task 3'
  // etc
);

// use this line if you want your tasks to be displayed in Asana in the order of the array
$tasks = array_reverse($tasks); 
  
foreach ($tasks as $task){
  exec( 'curl -u '.$apikey.': https://app.asana.com/api/1.0/tasks -d "name='.$task.'" -d "projects[0]='.$project.'" -d "workspace='.$workspace.'"', $return);
}
?>