ex_todoist v1.0.2 Todoist.Gateway View Source

Todoist.Gateway is a generic module that encapsulates principal methods to create, update delete and list all or a specific resource.

  • Resource can be a task, projects, labels, sections, comments and colors

  • This module is used by Task, Project, Comments and Labels, if you want create some resource don't use this module.

Obs.: This method need one environment variable TODOIST_TOKEN

Link to this section Summary

Functions

all list all resource

create add a new resource on todoist api

delete delete a specific resource by id

get_by_id return a specific resource by id

update update a specific resource

Link to this section Functions

all list all resource

Link to this function

create(resource, entity)

View Source

create add a new resource on todoist api

Link to this function

delete(resource, id)

View Source
delete(any(), any()) :: {:error, <<_::64, _::_*8>>} | {:ok, <<_::128>>}

delete delete a specific resource by id

get_by_id return a specific resource by id

Link to this function

update(resource, id, entity)

View Source

update update a specific resource