Legend

Forum

Unread topics or posts

Topic

Unread posts

Locked

Announcement

Forums > Developers

Command line tools



AuthorMessage
srhuston

Posted: Sep 24, 2009
Score: 0



I started to hack together the ruby gem interface to Toodledo (mentioned at http://www.toodledo.com/forums/3/21/-1753/command-line-client-in-ruby-available.html ) since I want to have some commands run when I login that refresh a local todo file that I check routinely. Unfortunately, after not much hacking today I got an error about being temporarily blocked for creating too many tokens (I was well under the 120/hr limit on API calls I'm sure, maybe having used 20 in the past hour). Since the API page mentions holding the token for four hours, I'm guessing that the ruby app's lack of caching caused the site to take action against me. It seems the Perl module would therefore do the same thing.

Since any other talk of a command line app or interface has been long ago (including a "Thanks for the suggestion" from last year), and those topics have therefore closed up, I'd like to see if anyone has a good method for getting the data in a human-friendly format from the website without using a web browser. I'd be willing to share my conglomeration of shell scripts which make that output quite useful on a handful of machines if you do :>

(Note: This is a repost, since Anders suggested I bring it up here; original was in third-party applications)
will.sargent

Posted: Jan 15, 2010
Score: 0



This is a flaw in the Ruby gem -- it does not persist the token in between processes.

The best way to pull large amounts of data is to write a single Ruby program that runs as a daemon and checks the file at given intervals. I'll look into the amount of work it would take to add a cache or persist the token.
You cannot reply yet


To participate in these forums, you must be signed in.



Toodledo Forums > Developers