Jun 25 2018 01:43 PM
I have a number of solutions using the Yammer API to write Open Graph activities into yammer using the activity.json andpoint. Today they all started getting the response "410 Gone". Even the sample requests in the documentation are bombing out like this. This is a supported endpoint. Anyone have any idea what's going on? https://developer.yammer.com/docs/writing-activity
Jul 02 2018 11:32 AM
Jul 02 2018 12:11 PM
Hi Kamal,
I had a conversation with Yammer support, and they've altered the API without notifying anyone. They've promised to update the documentation, but, well, you know how that works :) .
I've been able to figure out what to do by Fiddling the user interface. Here's what I came up with:
Jul 02 2018 01:01 PM
Jul 02 2018 01:26 PM
var likePage = function(url, title) {
var deferred = $.Deferred();
$.when(lml.UserManager.getUserProfileProperties()).done(function(personProperties) {
yam.platform.request({
url: "https://api.yammer.com/api/v1/activity.json",
method: "POST",
data: {
activity: {
actor: {
name: personProperties.FirstName + " " + personProperties.LastName,
email: personProperties.UserName
},
action: "like",
object: {
url: url,
title: title,
image: "",
description: "description"
},
type: "page"
}
},
success: function(data) {
deferred.resolve();
},
error: function(jqXHR, textStatus, errorThrown) {
deferred.reject();
}
});
});
return deferred.promise();
};
Please suggest, do I need to update URL to
" url:"https://www.yammer.com/api/v1/open_graph_objects/update.json"