Forum Discussion

0bs33's avatar
0bs33
Copper Contributor
Apr 03, 2020

How to get the token in order to call users/ME/conversations/{conversation_id}

Hi, 
We are working on some Teams use case where we need to update the channel message. I have found one of conversation in Teams Developer community and found we can call below API.
https://techcommunity.microsoft.com/t5/teams-developer/block-a-message-in-microsoft-teams/m-p/961372#

PUT "https://apac.ng.msg.teams.microsoft.com/v1/
users/ME/conversations/{conversation_id}@unq.gbl.spaces/messages/{message_id}"
"{""content"":""your-text"",""messagetype"":""Text"",""contenttype"":""text"",""amsreferences"":[],""clientmessageid"":""the_origin_id"",""imdisplayname"":""the_origin_name"",""properties"":{""importance"":"""",""subject"":null}}"

 

But in order to call this API, we need user token. Is there any way to get it?

 

Resources