简体   繁体   English

微软团队深度链接如何传递查询参数

[英]Microsoft teams deep link how to pass query parameters

I have created a custom bot, with yo teams generator, which is also registered in azure.我创建了一个自定义机器人,带有 yo 团队生成器,它也在 azure 中注册。 In addition, I have a deeplink to this bot in order to display a task module, when clicked from teams, with html/javascript content.此外,我有一个指向该机器人的深层链接,以便在从团队中单击时显示一个任务模块,其中包含 html/javascript 内容。 But I want this content to be dynamic and incject some values from my database into this content and to achieve this I must have the names of my database and my collection.但我希望这个内容是动态的,并将我的数据库中的一些值注入到这个内容中,为了实现这一点,我必须拥有我的数据库和我的集合的名称。 Is it possible to add some query parameters into deeplink like we do in ordinary url links (eg?key=value), so I can query my database from the custom app?是否可以像我们在普通的 url 链接中一样将一些查询参数添加到深度链接中(例如?key=value),这样我就可以从定制应用程序中查询我的数据库?

deep link: teams.microsoft.com/l/task{APP_ID}?url=https://{DOMAIN}/story?name%3dhello%26last%3dworld.深层链接:teams.microsoft.com/l/task{APP_ID}?url=https://{DOMAIN}/story?name%3dhello%26last%3dworld。 So in order to be able to pass query parameters.所以为了能够传递查询参数。 Encode some symbols like = and & as above.Now you can grap for example the name and last variables from the above url.像上面一样对 = 和 & 等符号进行编码。现在您可以从上面的 url 中获取例如名称和最后一个变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM