1. 首页
  2. 考试认证
  3. 其它
  4. Todoist RubyRuby版Todoist API封装器(2014)

Todoist RubyRuby版Todoist API封装器(2014)

上传者: 2024-12-11 10:03:18上传 ZIP文件 11.4KB 热度 9次

Todoist用于RubyTodoist API包装器,支持API版本2014。安装方法如下:将此行添加到应用程序的Gemfile中:


 gem 'todoist-ruby', require: 'todoist'

然后执行:


 $ bundle

或者自己安装:


 $ gem install todoist-ruby

接着,将此行添加到代码中:


 require 'todoist'

基本用法:

配置访问令牌,这一步必须在与Todoist API交互之前执行:


 Todoist::Configuration.token = 'e6705ab0SECRETTOKENcfbcc1b'

列出您的项目:


 Todoist::Project.all

下载地址
用户评论