Rest API for Delete Yammer Comments
Yammer is providing Documentation on Rest API and they are very proactive in updating those over time period. I was working on rest API for delete yammer comment in my SharePoint site using jQuery. Rest API : https://www.yammer.com/api/v1/messages/:message_id here, message_Id : numeric value of message id Method : Delete Let me explain this with one example : function deleteComment ( MessagePostId ) { var result = confirm( "Are you sure you want to delete this Comment?" ); if (result) { yam.platform.request({ url : "https://api.yammer.com/api/v1/messages/" + MessagePostId, method : "DELETE" , async : false , beforeSend : function ( xhr ) { xhr.setRequestHeader( 'Authorization' , token) }, success : function ( res ) { alert( "The Comment has been deleted." ); //Code to remove item from array and display rest of the comment ...