Asana::getProjectSections PHP Method

getProjectSections() public method

Sections are tasks whose names end with a colon character : . For instance sections will be included in query results for tasks and be represented with the same fields. The memberships property of a task contains the project/section pairs a task belongs to when applicable.
public getProjectSections ( string $projectId, array $opts = [] ) : string
$projectId string
$opts array Array of options to pass (@see https://asana.com/developers/documentation/getting-started/input-output-options)
return string JSON or null
    public function getProjectSections($projectId, array $opts = array())
    {
        $options = http_build_query($opts);
        return $this->askAsana($this->projectsUrl . '/' . $projectId . '/sections?' . $options);
    }