Yammering with Tinderbox
We’ve been trying “Yammer”:http://yammer.com/ at “the office”:http://fusionary.com/ for short notes and intra-office updates. Yammer asks “What are you working on?” Fair question, but I already log my daily activity in a “Daybook”:https://jackbaty.com/2008/07/tinderbox-as-a-daybook/ using Tinderbox so I thought it would save time if I could post those entries as updates directly to Yammer.
Easy, here’s how I did it. The whole process took me less than 15 minutes from concept to completion.
First, I created an Agent which collects any note containing a tag labeled “YM.”
When the agent runs, it first calls out to a shell command which uses curl to post the note’s title to Yammer via Yammer’s API. Here’s the action run by the Agent.
`
Result=runCommand("/usr/bin/curl -H ‘Accept: text/plain’ -d ‘body="+urlEncode($Name)+"’ -u myusername:mypassword https://www.yammer.com/api/v1/messages/"); Tags=$Tags-“YM”;
`
After the shell command, it removes the “YM” tag from the note, preventing subsequent runs of the agent from picking it up and posting the same note again.
To easily add the “YM” tag to a note, I created a Stamp.
Wrapping it all up, to send a note to Yammer, I simply select the note and choose “Send to Yammer” from the menu and whoop, there it is.
This makes me happy.