I want to message a specific user so that the content of the message appears within Canvas. It is not clear if the API supports this, so I am looking for any suggestions.
Hi Jeff Kahn,
It is possible to message a specific user via the Conversations - Canvas LMS REST API Documentation API.
It will appear in the user's inbox just as any other Conversations message would. As far as announcements, there is an Announcements - Canvas LMS REST API Documentation API, but you can't target a specific user, just an enrollment type (student, teacher, etc.)
Jeff, welcome to the Canvas Community! For this type of technical question you might get more of a response from the Canvas Developers group. They are the programmers and ones that deal more often with the API side of Canvas. I've gone ahead and shared this with the group, but you might want to join the group as well so you can have access to their resources and information.
Hope this helps!
Thanks Alex (and Danny). I was able to make the call successfully.
Hello, Jeff Kahn,
The Conversations API allows you to create an inbox message for a specific user, or a list of users. The API follows the permissions of Canvas, so your account must have permission to message the desired user. I have an example implementation that you can see here:
canvas-report-discussion-post/canvas-report-discussion-post.js at master · thedannywahl/canvas-report-discussion-post · …
That one sends an automated message to the teacher of the current course when a button is clicked by the current user, but the construction of the message via API is outlined therein.
Retrieving data ...