iCloud Reminders for Ruby

This is a Ruby library to access iCloud reminders.

Try it

git clone https://github.com/adammck/ruby-icloud.git
cd ruby-icloud
bundle --path=vendor
bundle exec irb -r icloud
irb(main):001:0> session = ICloud::Session.new("you@icloud.com", "passw0rd")
=> #<ICloud::Session:0x10637e040>
irb(main):002:0> session.reminders.first(3).map(:title)
=> ["Grocery shopping", "Acquire currency", "Do laundry"]

Testing

The integration tests hit icloud.com for real, so to run them, you should set up a separate [Apple ID] appleid and set the following environment vars:

APPLE_ID=
APPLE_PW=

For now, you must also manually set up the following reminders:

Title: Foo
List: Alpha
Completed: Yes
Title: Bar
List: Alpha
Completed: Yes
Title: One
List: Alpha
Completed: No
Title: Two
List: Alpha
Completed: No
Reminder: 01/02/2015 03:00 PM
Title: Three
List: Beta
Completed: No

I use a totally separate Apple ID for this, because it's entirely possible that this library will trash your calendar, cancel all of your alarms, turn off your grandmother's life support, and so on. I'm aware this this is absurd, but I don't have a better solution right now.

Compatibility

This gem is [tested against] travis:

  • Ruby 1.8.7
  • Ruby 1.9.2
  • Ruby 1.9.3
  • Ruby 2.0.0

License

[ruby-icloud] repo is free software, available under [the MIT license] license.



iCloud Reminders for Ruby

这是一个访问iCloud提醒的Ruby库。

尝试

git clone https://github.com/adammck/ruby-icloud.git
cd ruby-icloud
bundle –path=vendor
bundle exec irb -r icloud
irb(main):001:0> session = ICloud::Session.new("you@icloud.com", "passw0rd")
=> #<ICloud::Session:0x10637e040>
irb(main):002:0> session.reminders.first(3).map(:title)
=> ["Grocery shopping", "Acquire currency", "Do laundry"]

测试

集成测试命中 icloud.com 为真,所以要运行它们,你应该设置 单独的[Apple ID] appleid 并设置以下环境vars:

APPLE_ID=
APPLE_PW=

现在,您还必须手动设置以下提醒:

Title: Foo
List: Alpha
Completed: Yes
Title: Bar
List: Alpha
Completed: Yes
Title: One
List: Alpha
Completed: No
Title: Two
List: Alpha
Completed: No
Reminder: 01/02/2015 03:00 PM
Title: Three
List: Beta
Completed: No

我使用完全独立的Apple ID,因为完全可以这样做 这个图书馆会垃圾日历,取消所有的闹钟,关掉你的电话 祖母的生命支持等等。我知道这是荒谬的,但我 现在没有一个更好的解决方案。

兼容性

此宝石已被[测试反对] travis

  • Ruby 1.8.7
  • Ruby 1.9.2
  • Ruby 1.9.3
  • Ruby 2.0.0

许可证

[ruby-icloud] repo 是根据[MIT许可证]提供的免费软件 许可证




相关问题推荐