Giter Club home page Giter Club logo

todoist's Introduction

Todoist

Build Status

Simple Elixir wrapper for the Todoist API

Installation

If available in Hex, the package can be installed as:

  1. Add todoist to your list of dependencies in mix.exs:

    def deps do [{:todoist, "~> 0.0.1"}] end

  2. Ensure todoist is started before your application:

    def application do [applications: [:todoist]] end

Usage

Sync

{:ok, client} = Todoist.Client.new("<YOUR_ACCESS_TOKEN>")
request = Todoist.ReadRequest(resource_types: ["projects"])
response = Todoist.sync(client, request)

todoist's People

Stargazers

Luis Vaz avatar Vitor Oliveira avatar Marcelo Barreto avatar Ihor Katkov avatar Pedro Pazello avatar Andrea Rossi avatar

Watchers

 avatar James Cloos avatar

todoist's Issues

Fix dialyzer warnings

todoist.ex:14: Invalid type specification for function 'Elixir.Todoist':sync/2. The success typing is (atom() | pid() | {atom(),} | {'via',atom() | tuple(),},_) -> any()
project.ex:32: Function add/2 has no local return
project.ex:32: Function add/3 has no local return
project.ex:34: The call 'Elixir.Todoist.Command':put_arg(cmd@1::#{},'name',name@1::any()) breaks the contract (t(),'atom' | binary(),#{}) -> t()
project.ex:70: Function update/2 has no local return
project.ex:70: Function update/3 has no local return
project.ex:72: The call 'Elixir.Todoist.Command':put_arg(cmd@1::#{},'id',id@1::any()) breaks the contract (t(),'atom' | binary(),#{}) -> t()
project.ex:97: The call 'Elixir.Todoist.Command':put_arg(cmd@1::#{},'ids',ids@1::maybe_improper_list()) breaks the contract (t(),'atom' | binary(),#{}) -> t()
project.ex:126: The call 'Elixir.Todoist.Command':put_arg(cmd@1::#{},'ids',ids@1::maybe_improper_list()) breaks the contract (t(),'atom' | binary(),#{}) -> t()
project.ex:154: The call 'Elixir.Todoist.Command':put_arg(cmd@1::#{},'ids',ids@1::maybe_improper_list()) breaks the contract (t(),'atom' | binary(),#{}) -> t()
request.ex:1: The specification for 'Elixir.Todoist.Request':'protocol'/1 states that the function might also return 'true' but the inferred return is 'Elixir.Todoist.Request' | 'false' | [{'parse',1},...]
Unknown functions:
'Elixir.HTTPotion':post/1
'Elixir.Poison':'encode!'/1
'Elixir.Poison.Parser':'parse!'/1
'Elixir.Todoist.Request.Atom':'impl'/1
'Elixir.Todoist.Request.BitString':'impl'/1
'Elixir.Todoist.Request.Float':'impl'/1
'Elixir.Todoist.Request.Function':'impl'/1
'Elixir.Todoist.Request.Integer':'impl'/1
'Elixir.Todoist.Request.List':'impl'/1
'Elixir.Todoist.Request.Map':'impl'/1
'Elixir.Todoist.Request.PID':'impl'/1
'Elixir.Todoist.Request.Port':'impl'/1
'Elixir.Todoist.Request.Reference':'impl'/1
'Elixir.Todoist.Request.Tuple':'impl'/1
'Elixir.UUID':uuid1/0
done in 0m1.75s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.