Microsoft Teams
Send message in teams
Get your webhook url there:
Join conversation
Microsoft Teams
Create a webwook for naas
Then you should see your webhook url
You can use it below to send message in your channel

Send message

1
import naas_drivers
2
​
3
webhook = "https://COMPANY.webhook.office.com/webhookb2/****/***"
4
message = "Hello friends"
5
result = naas_drivers.teams.connect(webhook).send(message)
Copied!

Image

Image be url only, if you need expose asset before sending it
1
import naas_drivers
2
​
3
webhook = "https://COMPANY.webhook.office.com/webhookb2/****/***"
4
message = "Hello friends"
5
image = "http://i.imgur.com/c4jt321l.png")
6
result = naas_drivers.teams.connect(webhook).send(message, image=image)
Copied!
Copy link