似乎只有Yammer公告被推送到移动设备。是否可以通过Yammer API向组(或公司范围)发布公告?
答案 0 :(得分:0)
是的,您可以将广播参数设置为true,如https://developer.yammer.com/v1.0/docs/messages-json-post
中所述答案 1 :(得分:0)
有点晚了,但是下面的API调用似乎创建了一个公告:
yam.platform.request({
url: "messages.json",
method: "POST",
data: {
"body": "Example message",
"log_data[publisher_type]": "yam.ui.publisher.global.AnnouncementPublisher",
"log_data[publisher_source]": "group",
"log_data[number_of_recipients]": "1",
"invited_user_ids": "",
"skip_body_notifications": "true",
"group_id": "54321",
"is_rich_text": "true",
"message_type": "announcement",
"title": "Example title"
},
success: function () {
// Do something else
},
error: function (error) {
console.log(error);
}});