Open ijlyttle opened 5 years ago
This suggests a signature:
yam_embed <- function(id, width = "100%", height = "auto", network, feed_type, feed_id,
config = yam_embed_config()) {
container <- glue::glue("#{id}")
htmltools::taglist(
yam_embed_script_cdn(),
yam_embed_div(id, width, height),
yam_embed_script(container = id, network, feed_type, feed_id, config)
)
}
and a helper function:
yam_embed_config <- function(...) {
# returns list
}
perhaps with some internal functions:
yam_embed_script_cdn <- function() {
# returns script tag
}
yam_embed_div <- function(id, width, height) {
# returns div tag
}
yam_embed_script <- function(container, network, feed_type, feed_id, config) {
# consider using options for network, config
# returns script tag
}
From https://developer.yammer.com/docs/embed:
From https://developer.yammer.com/docs/single-sign-on: