Skip to content

Instantly share code, notes, and snippets.

@atodev
Last active December 15, 2022 01:53
Show Gist options
  • Select an option

  • Save atodev/0edb69f45101f767bce62353a26f4b25 to your computer and use it in GitHub Desktop.

Select an option

Save atodev/0edb69f45101f767bce62353a26f4b25 to your computer and use it in GitHub Desktop.
[Teams]
https://graph.microsoft.com/beta/teams/{teams_id}/channels/{channel_id}/messages
https://graph.microsoft.com/beta/teams/{teams_id}/channels/{channel_id}/messages/delta
https://graph.microsoft.com/beta//teams/{teams_id}/channels/{channel_id}/messages/{message_id}
https://graph.microsoft.com/beta/users/{}/chats?$expand=members'
oneONone
GET https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5/chats/19:8b081ef6-4792-4def-b2c9-c363a1bf41d5_877192bd-9183-47d3-a74c-8aa0426716cf@unq.gbl.spaces
https://learn.microsoft.com/en-us/graph/api/chat-get?view=graph-rest-1.0&tabs=http
https://graph.microsoft.com/beta/me/chats?$expand=members&$filter=members/any(o: o/microsoft.graph.aadUserConversationMember/userId eq '<user id>')
session:
-- get the call records
GET https://graph.microsoft.com/v1.0/communications/callRecords/{id}?$expand=sessions($expand=segments)
GET https://graph.microsoft.com/v1.0/communications/callRecords/{id}/sessions
https://learn.microsoft.com/en-us/graph/api/callrecords-session-list?view=graph-rest-1.0&tabs=http
-- get the call id
problem
'https://graph.microsoft.com/v1.0/communications/calls'
results in 'message': '{"errorCode":"7503","message":"Application is not '
'registered in our store.","instanceAnnotations":[]}'}}
https://learn.microsoft.com/en-us/answers/questions/88246/is-there-any-microsoft-graph-api-to-get-the-actual.html
https://stackoverflow.com/questions/64548096/how-to-read-teams-channel-messages-using-msal-in-python
API/Permissions name: Team.ReadBasic.All, type: Application, Status: granted for admin
API/Permissions name: TeamsActivity.Read.All, type: Application, Status: granted for admin
API/Permissions name: Channel.ReadBasic.All, type: Application, Status: granted for admin
API/Permissions name: ChannelMessage.Read.All, type: Application, Status: granted for admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment