Skip to content

Commit fe6ab0c

Browse files
author
Dennis Oderwald
committed
Add 'deleteTask' function to delete a task
1 parent a42ccc4 commit fe6ab0c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Torann/LaravelAsana/Asana.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ public function updateTask($taskId, $data)
138138
return $this->curl->put("tasks/{$taskId}", array('data' => $data));
139139
}
140140

141+
/**
142+
* Delete a task
143+
*
144+
* @param string $taskId
145+
* @return string JSON or null
146+
*/
147+
public function deleteTask($taskId)
148+
{
149+
return $this->curl->delete("tasks/{$taskId}");
150+
}
151+
141152
/**
142153
* Add Attachment to a task
143154
*

0 commit comments

Comments
 (0)