Asana::commentOnProject PHP Méthode

commentOnProject() public méthode

Adds a comment to a project The comment will be authored by the authorized user, and timestamped when the server receives the request.
public commentOnProject ( string $projectId, string $text = '' ) : string
$projectId string
$text string
Résultat string JSON or null
    public function commentOnProject($projectId, $text = '')
    {
        $data = array('data' => array('text' => $text));
        $data = json_encode($data);
        return $this->askAsana($this->projectsUrl . '/' . $projectId . '/stories', $data, ASANA_METHOD_POST);
    }