Created
July 8, 2011 11:28
-
-
Save cziko/1071644 to your computer and use it in GitHub Desktop.
Things - Yammer checkin script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# gem install things-client --source http://gemcutter.org | |
# gem install broadcast | |
require 'rubygems' | |
require 'things' | |
require 'broadcast' | |
Broadcast.setup do |config| | |
config.yammer.consumer_key = '' | |
config.yammer.consumer_secret = '' | |
config.yammer.access_token = '' | |
config.yammer.access_secret = '' | |
end | |
class Poke < Broadcast::Message | |
medium :yammer | |
def body | |
task_list_for_today = Things::Todo.today.map(&:name) | |
return "Check in: \n #{task_list_for_today.join("\n")}" | |
end | |
end | |
Poke.new.publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment