[英]I want to use Microsoft Teams HTTP request that sends a message in chat. How do I get my TeamsID and ChannelID
As the title says I want to create messages in our teams channel via HTTP Calls.正如标题所说,我想通过 HTTP 呼叫在我们的团队频道中创建消息。 This is the documentation I am referring to https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http这是我指的文档https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http
It says that I have to do a request like this: POST /teams/{team-id}/channels/{channel-id}/messages它说我必须执行这样的请求:POST /teams/{team-id}/channels/{channel-id}/messages
But I have no clue how to get those ID's.但我不知道如何获得这些 ID。 Can somebody please guide me?有人可以指导我吗?
Best regards,最好的祝福,
Stan斯坦
I've tried to copy the invitation link and somehow deduce from the link which part is which ID, but I could not figure it out.我试图复制邀请链接并以某种方式从链接中推断出哪个部分是哪个 ID,但我无法弄清楚。
you can find these IDs by following these steps.您可以按照以下步骤找到这些 ID。 Please click the picture to check the details:请点击图片查看详情:
Find your channel in Teams and get links to channel: picture 1在 Teams 中找到您的频道并获取频道链接:图片 1
String after "channel/" is ChannelId: picture 2 “channel/”后面的字符串是ChannelId:图2
String after "groupId=" is TeamId: picture 3 “groupId=”后的字符串是TeamId:图3
Hope they work for you.希望他们为你工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.