This file contains hidden or 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
<script type="text/javascript" data-app-id="YOUR-APP-ID" src="https://assets.yammer.com/platform/yam.js"></script> | |
<script> | |
yam.getLoginStatus(function(response) { | |
if (response.authResponse) | |
{ | |
//GET THE TOKENS FOR ALL MY NETWORKS | |
yam.request({ | |
url: "https://www.yammer.com/api/v1/oauth/tokens.json", | |
method: "GET", | |
success: function(msg) { |
This file contains hidden or 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
curl -X POST -d 'body=Hello @nmccarthy' https://www.yammer.com/api/v1/messages.json?access_token=asdf1234 |
This file contains hidden or 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
Rails.application.config.middleware.use OmniAuth::Builder do | |
# provider :yammer, 'xxx', 'xxx' #production | |
# monkey-patch for staging | |
provider :yammer, 'xxx', 'xxx' #staging | |
module OmniAuth | |
module Strategies | |
class Yammer < OmniAuth::Strategies::OAuth2 | |
option :client_options, { |