Skip to content

Commit f672210

Browse files
authored
Merge pull request #22 from bslinger/add-remove-followers-from-tasks
Add API calls for adding and removing followers from tasks
2 parents 32d915a + d060a19 commit f672210

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/Asana.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,4 +770,30 @@ public function deleteWebhook($webhookId)
770770
{
771771
return $this->curl->delete("webhooks/{$webhookId}");
772772
}
773+
774+
/**
775+
* addFollowersToTask
776+
*
777+
* @param $taskId
778+
* @param $followerIds
779+
*
780+
* @return string|null
781+
*/
782+
public function addFollowersFromTask($taskId, $followerIds)
783+
{
784+
return $this->curl->post("tasks/$taskId/addFollowers", ["data" => ["followers" => $followerIds]]);
785+
}
786+
787+
/**
788+
* removeFollowersFromTask
789+
*
790+
* @param $taskId
791+
* @param $followerIds
792+
*
793+
* @return string|null
794+
*/
795+
public function removeFollowersFromTask($taskId, $followerIds)
796+
{
797+
return $this->curl->post("tasks/$taskId/removeFollowers", ["data" => ["followers" => $followerIds]]);
798+
}
773799
}

0 commit comments

Comments
 (0)