APIs for reading activity feed from Microsoft Teams

烂漫一生 提交于 2019-12-13 22:33:14

问题


Is there any inbuilt APIs available using which we can read notifications from activity feed in Microsoft Teams?

I've gone through Microsoft Teams Developer Platform but didn't find any clue. Any resources with explanation are greatly appreciated.


回答1:


The answer from @mdrichardson-msft would find notifications sent by an app, but only a small fraction of the activity feed would ever match that.

The Microsoft Graph APIs for retrieving the activity feed are on the backlog but they are not yet there, and we don't have a date to share.




回答2:


You'd use the MS Graph API. Unfortunately, it doesn't support directly querying the activity feed.

I can't test this due to permissions settings, but I think you can:

  1. Query all messages from the relevant chat or channel

  2. You would then have to filter for the ones that have the following json snippet, which is used to send activity feed notifications:

"channelData": {
  "notification": {
    "alert": true
  }
}


来源:https://stackoverflow.com/questions/56168754/apis-for-reading-activity-feed-from-microsoft-teams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!