do_query | R Documentation |
This function allows you to call methods which are not specifically exposed by this API yet
do_query(
endpoint,
args = NULL,
method = "GET",
process_response = (method == "GET")
)
endpoint |
the API endpoint to call, with or without the canvas domain. You can give a vector of parts which will be joined with slashes. |
args |
a list of arguments for the call |
method |
GET or POST |
process_response |
if TRUE (default for GET requests), paginate results and return a data frame |
A data.frame if process_response is TRUE, otherwise an httr response
# A get request to the announcements endpoint (replicating get_announcements):
do_query("announcements", list(`context_codes[]`="course_1234"))
# A post request to the group membership endpoint (replicating add_group_user):
do_query(c("groups", 123, "memberships"), list(user_id=1), method = "POST")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.