Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Methods: Projects

Fabian Beiner edited this pageJan 2, 2020 ·5 revisions

“Projects” methods and examples

Get all projects

Method:

getAllProjects();

Example:

var_dump($Todoist->getAllProjects());array (size=7)0 =>array (size=3)'id' => int2168427835'name' => string'Inbox' (length=5)'comment_count' => int01 =>array (size=4)'id' => int2168427836'order' => int1'name' => string'Personal' (length=8)'comment_count' => int02 =>array (size=4)'id' => int2168427838'order' => int2'name' => string'Work' (length=4)'comment_count' => int0

Create a new project

Method:

createProject(string$projectName, [array$optionalParameters])

Example:

var_dump($Todoist->createProject('Example Project'));array (size=4)'id' => int2225813386'order' => int5'name' => string'Example Project' (length=15)'comment_count' => int0var_dump($Todoist->createProject('Child Project', ['parent' =>2225813386]));array (size=5)'id' => int2225813402'parent' => int2225813386'order' => int1'name' => string'Child Project' (length=13)'comment_count' => int0

Get a project

Method:

getProject(int$projectId)

Example:

var_dump($Todoist->getProject(2225813386));array (size=4)'id' => int2225813386'order' => int5'name' => string'Example Project' (length=15)'comment_count' => int0

Update a project

Method:

updateProject(int$projectId, string$newProjectName)

Example:

var_dump($Todoist->updateProject(2225813386,'Example Project Renamed'));boolean true

Delete a project

Method:

deleteProject(int$projectId)

Example:

var_dump($Todoist->deleteProject(2225813386));boolean true

👋

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp