| connector_card {teamr} | R Documentation |
Create a connector_card Structure With teamr
Description
connector_card is at the very heart of the teamr package.
Usage
# cc <- connector_card$new("https://outlook.office.com.....")
Format
An R6Class generator object
Details
Assemble connector_card objects into a connector_card
structure and use the methods to append, modify or send your card to the webhook specified.
Methods
connector_card$new(hookurl, proxies, http_timeout)Creates a new
connector_card.text(mtext)Change the
textfield of the cardtitle(mtitle)Change the
titlefield of the cardsummary(msummary)Change the
summaryfield of the card.color(mcolor)Change the default theme color.
add_link_button(btext, burl)Add button with links.
newhook(nurl)Change webhook address.
print()Print out the current hookurl and payload
send()Send
connector_cardto specified Microsoft Teams incomeing webhook URL.
Properties
hookurlMicrosoft Teams incoming webhooks url.
payloadR list of payloads(will be parsed into json)POST
proxiesProxy objects from use_proxy
http_timeoutTimeout of the HTTP request. Default to 3 seconds.timeout
Examples
## Not run:
library(teamr)
cc <- connector_card$new(hookurl = "https://outlook.office.com/webhook/...")
#' cc$text("Of on affixed civilly moments promise explain")
cc$title("This is a title")
cc$summary("This is a summary")
cc$add_link_button("This is the button Text", "https://github.com/wwwjk366/teamr")
cc$color("#008000")
cc$print()
cc$send()
## End(Not run)
[Package teamr version 0.0.1 Index]