GithubHelp home page GithubHelp logo

trliner / rumember Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tpope/rumember

0.0 1.0 0.0 20 KB

Remember The Milk Ruby API and command line interface

License: MIT License

Ruby 100.00%

rumember's Introduction

Rumember

Ruby API and command line client for Remember The Milk.

Command line usage

The sole motivation for this project was a quick way to capture to-dos from the command line. As such, I've chosen a chosen a very short command name of ru (something I'd normally never allow myself to do). All arguments are joined with spaces and used to invoke Remember The Milk's Smart Add feature.

ru buy milk #errand

Browser based authentication is triggered the first time ru is run, and the resulting token is cached in ~/.rtm.yml.

I was originally planning to add support for the full range of operations possible in Remember The Milk, but after pondering the interface, this seems unlikely. I just can't imagine myself forgoing the web interface in favor of something like:

ru --complete 142857 # Ain't gonna happen

API Usage

The API is a bit more fleshed out than the command line interface, but still incomplete, under-documented, and under-tested (I have additional integration tests I won't publish because they are specific to my RTM account). You'll need to familiarize yourself with Remember The Milk's API. In particular, you need to understand what a timeline is.

interface = Rumember.new(api_key, shared_secret)
interface = Rumember.new # Uses built in credentials
interface.dispatch('test.echo')

account = interface.account(auth_token)
account = interface.account # browser based and cached
account = Rumember.account # Rumember.new.account shortcut

timeline = account.timeline # cached
timeline = account.new_timeline # fresh each time

timeline.smart_add('buy milk #errand')

list = timeline.lists.first
task = list.tasks.first
transaction = task.complete
transaction.undo

Contributing

Please follow Git commit message best practices when submitting a pull request.

rumember's People

Contributors

gioele avatar kevincolyar avatar kriskhaira avatar nickaknudson avatar tpope avatar trliner avatar

Watchers

 avatar

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.