yammer

Yammers REST API to Share a Post

≯℡__Kan透↙ 提交于 2019-12-01 13:07:24
问题 I want to use REST API to share a post (Not posting a new message but sharing existing post) from my line of business application. Does anybody know which endpoint to use and how it can be achieved. 回答1: When you use the Yammer API to create a new post, pass the argument :shared_message_id with the message_id of the message you want to share. For example, in Ruby, you could do this: require 'yammer' group_id = '123456' shared_message_id = '7890123' yam = Yammer::Client.new(:access_token =>

Yammer REST API: 401 Unauthorized when using Azure AD token and Yammer Delegated Permissions

。_饼干妹妹 提交于 2019-11-30 10:32:41
I am creating an Azure AD App that is using the new Yammer delegated permissions preview to post a message to Yammer using the access token that I obtained from Azure AD. Unfortunately, I get a 401 Unauthorized response when trying to call Yammer Rest APIs. Here is the code sample: var resourceId = "https://www.yammer.com"; var endpointUrl = "https://www.yammer.com/api/v1/messages/following.json"; AuthenticationHelper helper = new AuthenticationHelper(); helper.EnsureAuthenticationContext(AuthenticationHelper.AuthorityMultitenant, resourceId); var token = helper.AuthenticationResult

Yammer Authentication with HttpWebRequest

浪子不回头ぞ 提交于 2019-11-29 16:19:29
I am currently working on a project that requires using the Yammer API. The intent is to bypass using a browser, and use HttpWebRequest to do all authentication. Originally, this was working for me, but now I get a 404 error when I try to call GetResponse(). For my URL, I have tried using https://www.yammer.com/session?client_id= {CLIENT_ID} as well as https://www.yammer.com/session using (var stream = webrequest.GetRequestStream()) { stream.Write(postdata, 0, postdata.Length); } try { webresponse = webrequest.GetResponse() as HttpWebResponse; } catch (WebException ex) { webresponse = ex

Yammer REST API: How to get access tokens for external networks?

帅比萌擦擦* 提交于 2019-11-28 11:47:37
I'm working on an ASP.NET web application that reads data from Yammer. I've successfully acomplished authentication and getting messages from the "home" network. Now I want to switch to another network and get messages from it. I've read all the documentation and specifically the Networks section which states the following: Facilitates switching a user between different Yammer networks. All Yammer web requests contain a network permalink in the URL ( https://www.yammer.com/network_permalink/resource_path ) to denote the network context. API requests use a different OAuth token for each user