{"id":141,"date":"2012-11-09T00:35:51","date_gmt":"2012-11-08T23:35:51","guid":{"rendered":"http:\/\/benjiweber.co.uk\/blog\/?p=141"},"modified":"2012-11-09T07:49:44","modified_gmt":"2012-11-09T06:49:44","slug":"jammer-irc-to-yammer-bridge","status":"publish","type":"post","link":"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/","title":{"rendered":"Jammer &#8211; IRC to Yammer Bridge"},"content":{"rendered":"<p class=\"lead\">Jammer is a quick 1hr project that clones IRC discussion on Yammer.<\/p>\n<p>Yammer is a social network for internal use by organisations. It&#8217;s a great way to broadcast information and have asynchronous discussion, and simple enough for anyone to use.<\/p>\n<p>Developers already have a great forum for asynchronous discussion &#8211; IRC. IRC is great for developers to use, but most irc client software is not particularly user friendly. Unless you idle in the channel all the time you will miss scrollback.<\/p>\n<p>I haven&#8217;t used Yammer for some time so I thought I&#8217;d remind myself how to use the API by building a bridge between IRC and Yammer. Here&#8217;s the result of just over an hour&#8217;s work:<\/p>\n<p>Jammer is a quick proof of concept IRC bot that will sit in an IRC channel and clone messages from authorised users to a specified group in Yammer. It lets you keep a record and publish discussion for others in the organisation to see.<\/p>\n<p><a title=\"Jammer on Github\" href=\"https:\/\/github.com\/benjiman\/jammer\">The code is on github at https:\/\/github.com\/benjiman\/jammer<\/a><\/p>\n<p>It might be useful to someone else as a tutorial for getting started with the Yammer API and how to authenticate with oauth. There are only 3 short Java files.<\/p>\n<img src=\"http:\/\/files.benjiweber.co.uk\/b\/jammer.png\" alt=\"Jammer\" \/>\n<p>Here&#8217;s how you run Jammer:<\/p>\n<pre lang=\"bash\"> $ git clone https:\/\/github.com\/benjiman\/jammer.github\r\n $ cd jammer\r\n $ mvn compile\r\n $ mvn assembly:single\r\n $ java -jar .\/target\/jammer-0.0.1-SNAPSHOT-jar-with-dependencies.jar <irc server (in quotes)> <channel> <yammer group id> <yammer client id> <yammer client secret>\r\n<\/pre>\n<p>Then in your IRC client:<\/p>\n<pre lang=\"bash\"> \/msg jammer auth<\/pre>\n<p>Click the link provided, approve the app, and copy the authentication token back with<\/p>\n<pre lang=\"bash\"> \/msg jammer auth <token><\/pre>\n<p>Now simply join the channel the bot is in and start talking and all messages will be cross-posted to Yammer.<\/p>\n<p>You can get a client id and client secret in Yammer by registering a new application.<\/p>\n<p>You can get a group id by visiting the group on Yammer.com and copying the id at the end of the URL<\/p>\n<h3>For more information read<\/h3>\n<p><a title=\"Yammer Docs\" href=\"http:\/\/developer.yammer.com\/introduction\/\">The Yammer API documentation<\/a><br \/>\n<a title=\"Pircbot\" href=\"http:\/\/www.jibble.org\/pircbot.php\">There&#8217;s a tutorial for PircBot (Easily write IRC bots in Java) <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jammer is a quick 1hr project that clones IRC discussion on Yammer. Yammer is a social network for internal use by organisations. It&#8217;s a great way to broadcast information and have asynchronous discussion, and simple enough for anyone to use. Developers already have a great forum for asynchronous discussion &#8211; IRC. IRC is great for&#8230;  <a href=\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/\" class=\"more-link\" title=\"Read Jammer &#8211; IRC to Yammer Bridge\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Jammer - IRC to Yammer Bridge - Benji&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Jammer is a quick 1hr project that clones IRC discussion on Yammer. Yammer is a social network for internal use by organisations. It&#8217;s a great way to broadcast information and have asynchronous discussion, and simple enough for anyone to use. Developers already have a great forum for asynchronous discussion &#8211; IRC. IRC is great for... Read more &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/\" \/>\n<meta property=\"og:site_name\" content=\"Benji&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-08T23:35:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-11-09T06:49:44+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/files.benjiweber.co.uk\/b\/jammer.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/#website\",\"url\":\"https:\/\/benjiweber.co.uk\/blog\/\",\"name\":\"Benji&#039;s Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/benjiweber.co.uk\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/files.benjiweber.co.uk\/b\/jammer.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/#webpage\",\"url\":\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/\",\"name\":\"Jammer - IRC to Yammer Bridge - Benji&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/#primaryimage\"},\"datePublished\":\"2012-11-08T23:35:51+00:00\",\"dateModified\":\"2012-11-09T06:49:44+00:00\",\"author\":{\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/#\/schema\/person\/45ecb36b51f4ce99e6929d2d31ca5c09\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/benjiweber.co.uk\/blog\/2012\/11\/09\/jammer-irc-to-yammer-bridge\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/#\/schema\/person\/45ecb36b51f4ce99e6929d2d31ca5c09\",\"name\":\"benji\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/benjiweber.co.uk\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/05fb47b31a0b329e1b790074a9b624ef?s=96&d=mm&r=g\",\"caption\":\"benji\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":12,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/153"}],"wp:attachment":[{"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benjiweber.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}