get_discussions_context: Discussion functions

View source: R/discussions.R

get_discussions_contextR Documentation

Discussion functions

Description

A group of functions which deal with discussion topics.

Usage

get_discussions_context(object_id, object_type = "courses", include = NULL)

get_discussion_id(discussion_id, object_id, object_type = "courses")

update_discussion_id(
  discussion_id,
  object_id,
  message,
  object_type = "courses"
)

Arguments

object_id

course or group id

object_type

"courses" or "groups"

include

If "all_dates" is passed, all dates associated with graded discussions' assignments will be included.

discussion_id

specific id of discussion to get/update

message

new body of discussion id

Details

  • get_discussions_context: get all discussions belonging to a course or group. Note that theoretically this should include announcements, as they are technically discussions, but does not. Use get_announcements instead.

Value

discussions belonging to requested context

single discussion

silently sends put request and updates

Examples

get_discussions_context(4371405)
get_discussion_id(4371405, 1350207)
update_discussion_id(4371405, 1350207, newtext)

daranzolin/rcanvas documentation built on May 18, 2024, 2:33 p.m.