Found this content helpful? Log in or sign up to leave a like!

Using API to get latest messages in conversations

Jump to solution
paul14
Partner
Partner

Hi Developer Community,

Following on from a post I made here about our struggles with conversations between our team and our students, I'd like to get some advice.

I am looking to engage a developer to build something for us.

We want to be able to get a copy of every message sent, and every message received by a user, then use something like Zapier to put each message in our student management system so there is a log of all communication easily viewable by our team.

I've been looking at the Conversations API and I can see how to access a conversation by its ID. I can see from the URL how to pull out a conversation, e.g. [account].instructure.com/api/v1/conversations/[conversation id].

I am just struggling to see how we would get each conversation when it is sent or received.

I just want to get a little more understanding of how this might work before I go and brief a developer on what we want done.

Has anyone here worked with the conversations API before?

What we are ultimately aiming for is to build something like my idea submitted here: https://community.canvaslms.com/ideas/17387-canvas-timeline so once conversations is working, we'll use the same approach to gather across the latest submissions, submission comments and grades etc. for a user.

If anyone already has something like this please let me know! Or if there is something already performing similar functionality, that would be amazing.

1 Solution

Hi Paul,

Here are a few links from the community about how you can download canvas data. 

Canvas Data FAQ 

https://community.canvaslms.com/docs/DOC-6600-how-to-use-the-canvas-data-cli-tool 

Quicker ways to Download Canvas Data 

GitHub - instructure/canvas-data-cli: Command line tool to connect and download files from Canvas Da... 

Hope these help. Once you have the data downloading we can assist further with tables and queries. 

View solution in original post