graph explorer, swagger how to use
** please, login to microsoft **
afterward you can retrieve "Access token"
TOKEN=eyJ0eXAiOiJKV1QiLCJub25jZSI6I...
curl 'https://graph.microsoft.com/v1.0/me/joinedTeams' -H "Authorization: Bearer $TOKEN" | jq .
find out one of the channel and retrieve "id" of it, like: "id": "45626dcc-04da-4c2f-a72a-b28b",
GROUP_ID=45626dcc-04da-4c2f-a72a-b28b
curl https://graph.microsoft.com/v1.0/groups/$GROUP_ID/members -H "Authorization: Bearer $TOKEN" | jq .
curl https://graph.microsoft.com/v1.0/teams/$GROUP_ID/channels -H "Authorization: Bearer $TOKEN" | jq .
retrieve value.id of the channel, like: "id": "19:[email protected]",
CHANNEL_ID="19:[email protected]"
curl https://graph.microsoft.com/beta/teams/$GROUP_ID/channels/$CHANNEL_ID/messages -H "Authorization: Bearer $TOKEN" | jq .value[].body.content