Hello!
I am working on a process to pull messages sent through the Canvas Inbox and the conversations APIs only work in the self-scope.
The documentation is very clear on how to use masquerading (act-as) with the APIs: https://developerdocs.instructure.com/services/canvas/basics/file.masquerading
What I am not seeing is anything on how to do the same with GraphQL: https://developerdocs.instructure.com/services/canvas/basics/file.graphql
Any chance you can point me in the right direction?
For reference the GraphQL query is:
query getConvMsgs($conversationId: ID!, $authorId: [ID!], $nextCursor: String!) {
legacyNode(_id: $conversationId, type: Conversation) {
... on Conversation {
conversationMessagesConnection(participants: $authorId, first: 100, after: $nextCursor) {
nodes {
body
createdAt
_id
author {
_id
}
conversationId
}
pageInfo {
hasNextPage
endCursor
startCursor
}
}
}
}
}
Thank you!
-Phil