Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmitar/todoist-js
/ functions
Functions
156 in github.com/Cosmitar/todoist-js
⨍
Functions
156
◇
Types & classes
72
↓ 81 callers
Method
commit
* Commits all requests that are queued. Note that, without calling this * method none of the changes that are made to the objects are actually *
todoist/Api.js:327
↓ 42 callers
Method
queueCmd
* Shorcut to add commands to the queue. * @param {string|Object} cmdDef The definition of the command, * can be a string used as type or an obje
todoist/managers/Manager.js:40
↓ 32 callers
Method
get_by_id
* Finds and returns the object based on its id. * @param {number} obj_id * @param {boolean} only_local * @return {Promise}
todoist/managers/Manager.js:17
↓ 25 callers
Method
delete
* Deletes item.
todoist/models/Item.js:47
↓ 22 callers
Method
add
* Creates a local item note object. * @param {number} item_id * @param {string} content * @param {Object} params * @return {Note}
todoist/managers/NotesManager.js:15
↓ 22 callers
Method
sync
* Sends to the server the changes that were made locally, and also * fetches the latest updated data from the server. * @param {Array.<object>}
todoist/Api.js:132
↓ 13 callers
Method
config
* Simplifies deferred config after creating an instance * of a session. * @param {Object} config An object that can contain * app_token *
todoist/Session.js:44
↓ 12 callers
Method
update
* Updates item. * @param {Object} params
todoist/models/Item.js:39
↓ 8 callers
Method
generate_uuid
* Generates a uuid. * @return {string}
todoist/Api.js:294
↓ 8 callers
Method
post
* Performs a POST request prepending the API endpoint. * @param {string} resource Requested resource * @param {Object} params * @return {Promise
todoist/Api.js:117
↓ 7 callers
Method
update_state
* Updates the local state, with the data returned by the server after a * sync. * @param {Object} syncdata Data returned by {@code this.sync}.
todoist/Api.js:175
↓ 6 callers
Method
get
(key = false, is_default = false)
todoist/managers/UserManager.js:20
↓ 6 callers
Method
get_api_url
* Returns the full API url to hit. * @param {string} resource The API resource. * @return {string}
todoist/Api.js:303
↓ 5 callers
Function
two
__tests__/helpers.js:2
↓ 4 callers
Method
get
* Performs a GET request prepending the API endpoint. * @param {string} resource Requested resource * @param {Object} params * @return {Promise}
todoist/Api.js:104
↓ 4 callers
Method
request
* Executes a request, handling headers, tokens and response. * @param {string} url The URL to fetch. * @param {string} method An http verb, for th
todoist/Session.js:126
↓ 3 callers
Function
getDateString
(d)
__tests__/helpers.js:1
↓ 2 callers
Method
_dataToQueryString
(data)
todoist/Session.js:114
↓ 2 callers
Method
archive
* Marks project as archived.
todoist/models/Project.js:42
↓ 2 callers
Method
complete
* Marks item as completed. * @param {boolean} force_history
todoist/models/Item.js:72
↓ 2 callers
Function
generate_uuid
()
todoist/utils/uuid.js:1
↓ 2 callers
Method
get
* Gets an existing project. * @param {number} project_id * @return {Promise}
todoist/managers/ProjectsManager.js:126
↓ 2 callers
Method
move
* Moves item to another project. * @param {number} to_project
todoist/models/Item.js:56
↓ 2 callers
Method
share
* Shares projects with a user. * @param {string} email * @param {string} message
todoist/models/Project.js:60
↓ 2 callers
Method
toString
()
todoist/models/Model.js:20
↓ 2 callers
Method
unarchive
* Marks project as not archived.
todoist/models/Project.js:50
↓ 2 callers
Method
uncomplete
* Marks item as not completed. * @param {boolean} update_item_orders * @param {Object} restore_state
todoist/models/Item.js:83
↓ 2 callers
Method
update_goals
* Updates the user's karma goals. * @param {Object} params
todoist/managers/UserManager.js:16
↓ 2 callers
Method
update_orders
* Updates the orders of multiple labels remotely. * @param {Objec} id_order_mapping Mapping object with label ids * as keys and Array.<number> a
todoist/managers/LabelsManager.js:60
↓ 2 callers
Method
update_orders_indents
* Updates the order and indents of multiple items remotely. * @param {object} ids_to_orders_indents Mapping object with item ids as * keys and v
todoist/managers/ItemsManager.js:141
↓ 1 callers
Method
accept
* Accepts an invitation to share a project. * @param {number} invitation_id * @param {string} invitation_secret
todoist/managers/InvitationsManager.js:11
↓ 1 callers
Method
add_item
* Adds a new task. * @param {string} content The description of the task. * @param {Object} params All other paramters to set in the new task. *
todoist/Api.js:313
↓ 1 callers
Method
clear
* Clears the locations.
todoist/managers/LocationsManager.js:10
↓ 1 callers
Method
export_as_file
* Exports a template as a file. * @param {number} project_id * @param {Object} params * @return {Promise}
todoist/managers/TemplatesManager.js:23
↓ 1 callers
Method
export_as_url
* Exports a template as a URL. * @param {number} project_id * @param {Object} params * @return {Promise}
todoist/managers/TemplatesManager.js:34
↓ 1 callers
Method
find_object
* Searches for an object in the local state, depending on the type of object, and then on its primary key is. * If the object is found it is retur
todoist/Api.js:245
↓ 1 callers
Method
get
* Performs a GET request for the given url and parameters. * @param {string} url * @param {Object} data * @return {Promise}
todoist/Session.js:100
↓ 1 callers
Method
get
* Returns all user's uploads. * @param {Object} params * limit: (int, optional) number of results (1-50) * last_id: (int, optional) return r
todoist/managers/UploadsManager.js:24
↓ 1 callers
Method
get
* Gets an existing item. * @param {number} item_id * @return {Promise}
todoist/managers/ItemsManager.js:170
↓ 1 callers
Function
getFile
()
__tests__/template.spec.js:42
↓ 1 callers
Function
getLongDateString
(dt)
__tests__/helpers.js:6
↓ 1 callers
Method
get_all
* Returns all user's completed items. * @return {Promise}
todoist/managers/CompletedManager.js:16
↓ 1 callers
Method
get_by_ids
* Finds and returns the collaborator state based on the project and user * ids. * @param {number} project_id * @param {number} user_id
todoist/managers/CollaboratorStatesManager.js:13
↓ 1 callers
Method
get_stats
* Returns the user's recent productivity stats. * @return {Promise}
todoist/managers/CompletedManager.js:8
↓ 1 callers
Method
reject
* Rejets an invitation to share a project. * @param {number} invitation_id * @param {string} invitation_secret
todoist/managers/InvitationsManager.js:20
↓ 1 callers
Method
replace_temp_id
* Replaces the temporary id generated locally when an object was first * created, with a real Id supplied by the server. True is returned if *
todoist/Api.js:279
↓ 1 callers
Method
set_last_read
* Sets in the local state the last notification read. * @param {number} id
todoist/managers/LiveNotificationsManager.js:11
↓ 1 callers
Method
update_date_complete
* Completes a recurring task. * @param {string} new_date_utc * @param {string} date_string * @param {boolean} is_forward
todoist/models/Item.js:103
↓ 1 callers
Method
update_day_orders
* Updates in the local state the day orders of multiple items remotely. * @param {object} ids_to_orders Mapping object with item ids as keys * a
todoist/managers/ItemsManager.js:150
Method
accept
* Accepts a business invitation to share a project. * @param {number} invitation_id * @param {number} invitation_secret
todoist/managers/BizInvitationsManager.js:9
Method
accept_invitation
* Accepts a business user invitation. * @param {number} id * @param {string} secret * @return {Promise}
todoist/managers/BusinessUsersManager.js:19
Method
accessToken
* Sets an access token for current session. * @param {string} token
todoist/Session.js:56
Method
add
* Uploads a file. (NOT TESTED). * @param {???} file File to upload. * @param {Object} params * @return {Promise}
todoist/managers/UploadsManager.js:10
Method
add
* Creates a local label object. * @param {string} name * @param {Object} params * @return {Label}
todoist/managers/LabelsManager.js:15
Method
add
* Creates a local filter object. * @param {string} name * @param {string} query * @param {Object} params * @return {Filter}
todoist/managers/FiltersManager.js:16
Method
add
* Creates a local project note object. * @param {number} project_id * @param {string} content * @param {Object} params * @return {ProjectNote}
todoist/managers/ProjectNotesManager.js:15
Method
add
* Creates a local item object. * @param {string} content * @param {number} project_id * @param {Object} params * @return {Item}
todoist/managers/ItemsManager.js:16
Method
add
* Creates a local reminder object. * @param {number} item_id * @param {Object} params * @return {Reminder}
todoist/managers/RemindersManager.js:15
Method
add
* Creates a local project object. * @param {string} name * @param {Object} params * @return {Project}
todoist/managers/ProjectsManager.js:14
Method
archive
* Marks project as archived remotely. * @param {number} project_id
todoist/managers/ProjectsManager.js:66
Method
close
* Marks item as done. * @param {number} item_id
todoist/managers/ItemsManager.js:74
Method
close
* Marks item as closed.
todoist/models/Item.js:64
Method
code
* Sets the authorization code needed later for access token exchange. * @param {string} token
todoist/Session.js:64
Method
complete
* Marks items as completed remotely. * @param {Array.<number>} item_ids * @param {boolean} force_history
todoist/managers/ItemsManager.js:83
Method
constructor
* @param {Object} config Configuration object with optional params: * app_token * client_id * scope * state * client_secret *
todoist/Session.js:22
Method
constructor
(token)
todoist/Api.js:47
Method
constructor
(api)
todoist/managers/Manager.js:3
Method
constructor
(data, api)
todoist/models/Note.js:23
Method
constructor
(data, api)
todoist/models/ProjectNote.js:7
Method
constructor
(data, api)
todoist/models/Model.js:5
Method
constructor
(data, api)
todoist/models/GenericNote.js:7
Method
definition
()
todoist/models/Label.js:8
Method
definition
()
todoist/models/Reminder.js:8
Method
definition
()
todoist/models/Note.js:8
Method
definition
()
todoist/models/Item.js:8
Method
definition
()
todoist/models/Filter.js:8
Method
definition
()
todoist/models/Project.js:8
Method
definition
()
todoist/models/LiveNotification.js:8
Method
definition
()
todoist/models/Collaborator.js:8
Method
delete
* Deletes upload. * @param {string} file_url Uploaded file URL * @return {Promise}
todoist/managers/UploadsManager.js:33
Method
delete
* Deletes a collaborator from a shared project. * @param {number} project_id * @param {string} email
todoist/managers/CollaboratorsManager.js:12
Method
delete
* Deletes a label remotely. * @param {number} label_id
todoist/managers/LabelsManager.js:46
Method
delete
* Deletes a filter remotely. * note: since api response isn't including deleted objects * must flag as deleted by received id. * @param {num
todoist/managers/FiltersManager.js:49
Method
delete
* Deletes items remotely. * @param {Array.<number>} item_ids
todoist/managers/ItemsManager.js:46
Method
delete
* Deletes a reminder remotely. * @param {number} reminder_id
todoist/managers/RemindersManager.js:46
Method
delete
* Delete an invitation to share a project. * @param {number} invitation_id
todoist/managers/InvitationsManager.js:28
Method
delete
* Deletes an note remotely. * @param {number} note_id
todoist/managers/GenericNotesManager.js:21
Method
delete
* Deletes a project remotely. * @param {Array.<number>} project_ids
todoist/managers/ProjectsManager.js:51
Method
delete
* Deletes label.
todoist/models/Label.js:30
Method
delete
* Deletes reminder.
todoist/models/Reminder.js:35
Method
delete
* Deletes filter.
todoist/models/Filter.js:31
Method
delete
* Deletes project.
todoist/models/Project.js:34
Method
delete
* Deletes a collaborator from a shared project. * @param {number} project_id
todoist/models/Collaborator.js:22
Method
delete
* Deletes note.
todoist/models/GenericNote.js:25
Method
get
* Get backups. * @param {object} params * @return {Promise}
todoist/managers/BackupsManager.js:9
Method
get
* Gets an existing label. * @param {number} label_id * @return {Promise}
todoist/managers/LabelsManager.js:69
Method
get
* Get events from the activity log. * @param {object} params * @return {Promise}
todoist/managers/ActivityManager.js:9
Method
get
* Gets an existing note. * @param {number} note_id * @return {Promise}
todoist/managers/NotesManager.js:36
Method
get
* Gets an existing filter. * @param {number} filter_id * @return {Promise}
todoist/managers/FiltersManager.js:71
Method
get
* Gets an existing reminder. * @param {number} reminder_id * @return {Promise}
todoist/managers/RemindersManager.js:60
next →
1–100 of 156, ranked by callers