yammer

How to upload files on Yammer API via the Azure Upload Small File API

眉间皱痕 提交于 2021-02-15 07:13:18
问题 How to upload an attachment along with a Yammer message? Any legacy method through attachment1 etc. fields of the /messages.json endpoint won't work anymore. The new method is not so well documented: https://developer.yammer.com/docs/upload-files-into-yammer-groups I'm giving here an example in PHP below, but you can do the same in any language. 回答1: You have to do it in two part First upload the picture to https://filesng.yammer.com/v4/uploadSmallFile and get the picture's id. Send your

I can not post Yammer via Rest API using Ajax

眉间皱痕 提交于 2020-03-05 05:50:31
问题 Hi I would like to Create JavaScript app which post message to Yammer, using Yammer REST API. but I have a limitation. I Can Not use Yammer SDK to post message. so, I written code of ajax. However, In this code Doesn't work. XMLHTTPrequest is always "access denied". why this code doesn't work? MY Yammer network allow 3rd party app. function sendData() { var messagebody = new Object(); messagebody.body = "This is test"; messagebody.group_id ="4627253" //get accToken accToken = responseObject

Yammer Authentication with HttpWebRequest

我的梦境 提交于 2020-01-28 11:09:12
问题 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 {

Yammer Authentication with HttpWebRequest

那年仲夏 提交于 2020-01-28 11:06:28
问题 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 {

get number of comments in yammer feed

白昼怎懂夜的黑 提交于 2020-01-17 02:21:16
问题 I am trying to get the number of comments for a yammer feed. I used the below query jQuery.getScript("https://c64.assets-yammer.com/assets/platform_js_sdk.js",function(){ console.log("script loaded"); var commentCnt = 0; yam.platform.request( { url: "https://www.yammer.com/api/v1/messages/open_graph_objects/"+ogID+".json" , method: "GET" , data: {"body": "This Post was Made Using the Yammer API. Welcome to the Yammer API World."} , success: function (msg) { if (msg) { jQuery.each(msg.messages

Lucene updateDocument not deleting documents

≡放荡痞女 提交于 2020-01-16 04:39:05
问题 this seems a common problem, except I have had no trouble with this before and the usual fix does not work. It is probably something silly, but I can not find it. I want to index a yammer site as the yammer api is not fast enough for my purpose, problem is that when I try to update my index using the updateDocument functionality the old ones are not deleted. But I have a stored unique key that is not analysed. Here is the relevant code: Document newdoc = new Document(); newdoc.add(new Field

yammer client application external networks 401

被刻印的时光 ゝ 提交于 2020-01-07 04:14:26
问题 I am creating a windows plugin which would access Yammer data like groups user follows etc, for this i created a client application and accessed yammer rest api using client id and access token i get after user allows my app to access his data in a consent page. I am able to successfully do all this when people of my network are trying to login but this does not work when the plugin is being used by people of other networks, I am able to receive the access token after the user gives his

How do I parse a JSON array into different objects using Jackson on Android?

核能气质少年 提交于 2020-01-02 09:38:16
问题 I'm trying to parse JSON like the following into object using Jackson on Android (Note: I'm not in control of the JSON format - the format comes from Yammer) "references": [ { "type": "user", "id": 12345678, "name": "Wex" }, { "type": "message", "id": 12345679, "body": { "plain":"A short message" } }, { "type": "thread", "id": 12345670, "thread_starter_id": 428181699 } ] The problem is that each entry in references is a different type of object with different properties. As a start I've got:

Yammer API issue - get groups showing error

微笑、不失礼 提交于 2019-12-25 11:50:23
问题 I am integrating yammer features in our app (web-front-end stack and using Yammer JS SDK). So, I want get all the groups of a login-ed user. Inorder to get all the groups , I have tried to call the end points in two ways, /groups.json=mine using SDK - resposne showing method not authorised and www.yammer.com/api/v1/groups.json=mine=1 using normal ajax GET request- throwing access control origin issue. API is perfectly working, while tested using google chrome browser - by disabling web

Yammer attachments - how do I use the pending_attachments call?

谁都会走 提交于 2019-12-25 03:43:01
问题 I am working with the Yammer API and I want to be able to add files to new posts created through my application. This appears to be done through the api/pending_attachments call, but the documentation is a little sketchy and doesn't really make it clear what the pending_attachments call is expecting - it wants an attachment property but it's entirely unclear what that means - is it the file? Is it the file name? In most cases I can't make the test on that page do anything other than fail with