0
如何關注使用yammer API的人? 我知道有Yammer提供的按鈕按鈕,但它有自己的樣式。Yammer API - 關注人
嘗試使用以下代碼創建開放圖形活動,但這會創建活動並打開圖形頁面,但不會反映在指定用戶的「跟隨」中。
yam.platform.getLoginStatus(功能(響應){
if (response.authResponse) {
yam.platform.request({
url: "activity.json",
method: "POST",
data: {
"activity": {
"actor": {
"name": "Kavleen Kaur",
"email": "[email protected]"
},
"action": "follow",
"object": {
"url": "https://www.yammer.com/abc.com/users/username",
"title": "Testing follow Activity!",
"type":"person"
},
"message": "Testing follow activity from JS SDK!"
}
},
success: function (msg) { alert("Post was Successful!: " + msg); },
error: function (msg) { console.dir(msg); }
})
}
})