Creating autotask with the api
Hi. I'm trying to make a script that should create an autotask when a certain statusfield is set. But I can't figure out why the task is'nt created in Podio at all. Please help me out. My code is here: Podio::setup("CLIENT_ID","CLIENT_SECRET"); try { Podio::authenticate('app', array('app_id' =>API_ID, 'app_token' =>"APP_TOKEN" )); $task = array( 'text' => 'Dette er en opgave fra API', 'description' => 'Description of task goes here' ); PodioTask::create($task); regards Søren Nørup

  • Something strange happen when I copy and pasted the code. I'll try one more. $task = array( 'text' => 'Dette er en opgave fra API', 'description' => 'Description of task goes here' ); echo $result = PodioTask::create($task); $task_id = $result->task_id;
This question is closed.