madoc_manifest | R Documentation |
Get a data.frame of all canvasses which are part of a manifest by using the Madoc API's.
This function performs a GET request to /madoc/api/manifests
madoc_manifest(site, id)
site |
character string with the site |
id |
a vector of id's of manifests |
a data.frame with columns manifest_id, manifest_label, manifest_thumbnail, canvas_id, canvas_thumbnail, is_published
projects <- madoc_projects("https://www.madoc.ugent.be/s/brugse-vrije") manifests <- madoc_collection(site = "https://www.madoc.ugent.be/s/brugse-vrije", id = projects$collection_id) canvasses <- madoc_manifest(site = "https://www.madoc.ugent.be/s/brugse-vrije", id = sample(manifests$manifest_id, size = 1)) ids <- sample(manifests$manifest_id, size = 10) canvasses <- madoc_manifest(site = "https://www.madoc.ugent.be/s/brugse-vrije", id = ids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.