Description Usage Arguments Value Examples
Since Tessitura requires nested JSON requests in most routes, this function will transform a data frame containing columns with names separated by a point into a nested list or JSON string. Each column should be named like "Keyword.Category.Id" as the function will nest at each subsequent . character.
1 | formatTessiPostRequest(data, returnJSON = TRUE)
|
data |
A data frame to transform |
returnJSON |
Return data in JSON or list format. Default is JSON. |
A nested JSON string for POST requests to the Tessitura API
1 2 3 4 5 | data <- tribble(
~Keyword.Description, ~Keyword.Id, ~Keyword.Category.Id, ~Constituent.Id, ~Id, ~Value,
"sample string 1", 2, 1, 1, 1, "sample string 3"
)
formattedRequest <- formatTessiPostRequest(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.