ConnectorTypeMSTEAMS
class connector_types.connector_type_msteams.ConnectorTypeMSTEAMS
Create connector cards in MS teams
Inputs
Name | Type | Default | Description |
---|---|---|---|
color | str | None | Specifies a custom brand color for the card. The color will be displayed in a non-obtrusive manner. |
link_buttons | dict | None | A dictionary containing [label]: [URL] pairs. For each pair an action button is added to the link card. |
summary | str | None | The summary property is typically displayed in the list view in Outlook, as a way to quickly determine what the card is all about. |
text | str | The text property is meant to be displayed in a normal font below the card's title. Use it to display content, such as the description of the entity being referenced, or an abstract of a news article. | |
title | str | None | The title property is meant to be rendered in a prominent way, at the very top of the card. Use it to introduce the content of the card in such a way users will immediately know what to expect. |
url | str | The URL to your MS teams webhook. |
Constants
input_list = ['color', 'link_buttons', 'summary', 'text', 'title', 'url'] output_list = [] ssl_context_inputs = ['check_hostname', 'client_cert', 'client_key', 'server_ca'] version = 1Methods
execute
details
log
details
one_of_inputs
details
run
details
Example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution):
this.connect(
connector_type='MSTEAMS',
url='<Microsoft Webhook URL>',
title='message-title',
text='message-body',
link_buttons={
'button1-label': 'URL to call',
'button2-label': 'https://<workspace>.cloudomation.com/api/latest/webhook/<name>/call',
},
)
return this.success('all done')