【文件属性】:
文件名称:todoist-ruby:用于 ruby 的 Todoist API 包装器。 2014年
文件大小:11KB
文件格式:ZIP
更新时间:2021-07-03 23:01:40
Ruby
待办事项
用于 ruby 的 Todoist API 包装器。 支持 API 版本 2014。
安装
将此行添加到应用程序的 Gemfile 中:
gem 'todoist-ruby', require: 'todoist'
然后执行:
$ bundle
或者自己安装:
$ gem install todoist-ruby
然后将此行添加到您的代码中:
require 'todoist'
基本用法
配置访问令牌
这一步必须在您与 Todoist API 进行任何交互之前执行
[ 13 ] pry ( main ) > Todoist :: Configuration . token = 'e6705ab0SECRETTOKENcfbcc1b'
=> "e6705ab0SECRETTOKENcfbcc1b"
列出您的项目
[ 14 ] pry ( main ) > T
【文件预览】:
todoist-ruby-master
----.gitignore(185B)
----todoist.gemspec(873B)
----LICENSE.txt(1KB)
----spec()
--------todoist_spec.rb(84B)
--------spec_helper.rb(143B)
--------todoist()
----README.md(2KB)
----lib()
--------todoist.rb(454B)
--------todoist()
----Gemfile(92B)
----Rakefile(29B)