Retrieving Faculty Journal Entries for a student

skeesler
Community Participant

What API access exists that would allow me to get faculty journal entries for the logged in user?

From the API docs, I thought it would be a conversation for either the faculty user who made the entry or the student for whom it was entered. Neither seem to retrieve the faculty journal entries.

I'm doing something like this

canvas = Canvas(cfg.TEST_API_URL, cfg.TEST_API_KEY) # from canvas_conf.py
acc = canvas.get_account(our_account) # our parent account
u = canvas.get_user(some_user_id)
print(u.id, u.name)
convs = canvas.get_conversations(as_user_id=u.id)
for cs in convs:
   print(u.id, u.name, c.subject)
   c = canvas.get_conversation(cs.id, as_user_id=u.id)
   print(u.id, u.name, cs.subject, c.messages) # that should be an array of messages, including the faculty journal entries

0 Likes