AnsweredAssumed Answered

How to determine Assignment number from LTI call?

Question asked by DJ Rao on Jun 24, 2016
Latest reply on Jun 24, 2016 by DJ Rao

Hello,

 

I am trying to figure out how to determine the assignment number (that is, :id value in API call further on) from a Canvas LTI call (associated with assignment submission) so that I can get more information about the assignment (via GET /api/v1/courses/:course_id/assignments/:id ).  I do get a bunch of POST parameters passed to my tool from Canvas shown below. Is there a Canvas API can that convert one of the id's (say resource_link_id for example) to an assignment number?

 

Here are some of the POST parameters for example:

oauth_consumer_key=007 
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1466800526
oauth_nonce=REfacGPKBkwPGOkxxigATdLnMfq96QrFfjX1KAB2U
oauth_version=1.0
context_id=5652d0ea668c8394bbad9a217be93cb6f8fee83b
resource_link_id=ab0781f4e77d18a9c4c832190954e1337ddd7574
user_id=3e0dfbe0931773757ad68de7ebcd6005e859cdb1
oauth_signature=DCXH0eD60s2EpNVNM/hy0uvanlg=
...

Outcomes