These methods cover Basic LTI launch forms for submitting and resubmitting files to Turnitin via a form in the user's browser or can be used to transport the file from the server and return XML.
Along with the resource / user identifiers you must include the required oauth parameters. The OAuth parameters are used to sign the request and authenticate the call and a custom_source field to identify the API product the call is being made to.
For each Turnitin resource there is a launch url that the action of the form must point to.
The Turnitin resource launch calls are based on the IMS Basic LTI 1.0 standard.
In order to launch a form to submit a file to Turnitin the form action must point to /api/lti/1p0/upload/submit as in the example below.
| Code | Text |
|---|---|
| XXX | "description" |
| XXX | "description" |
| XXX | "description" |
<form action="https://sandbox.turnitin.com/api/lti/1p0/upload/submit" method="POST" target="_blank" enctype="multipart/form-data"> <input name="lti_version" value="LTI-1p0" type="hidden" /> <input name="resource_link_id" value="db7a5b8e-e7ce-4303-8d9a-3515fa415f63" type="hidden" /> <input name="lis_person_sourcedid" value="56789" type="hidden" /> <input name="lis_lineitem_sourcedid" value="12345" type="hidden" /> <input name="roles" value="Instructor" type="hidden" /> <input name="custom_source" value="16" type="hidden" /> <input name="custom_paper_title" value="Test Submission" type="hidden" /> <input name="custom_paper_student" value="12345" type="hidden" /> <input name="custom_xmlresponse" value="" type="hidden" /> <input name="launch_presentation_css_url" value="" type="hidden" /> <input name="oauth_nonce" value="79c22b02805572835d82b3769d8857f98721c947" type="hidden" /> <input name="oauth_timestamp" value="1349448816" type="hidden" /> <input name="oauth_consumer_key" value="1234" type="hidden" /> <input name="oauth_signature_method" value="HMAC-SHA1" type="hidden" /> <input name="oauth_version" value="1.0" type="hidden" /> <input name="oauth_signature" value="bxY56%2BhO9MYZ8IQ7udoBh1Bz09A%3D" type="hidden" /> <input name="custom_paper_data" type="file" /> <input type="submit" value="Submit File" /> </form>
In order to launch a form to submit text to Turnitin the form action must point to /api/lti/1p0/upload/submit as in the example below.
| Code | Text |
|---|---|
| XXX | "description" |
| XXX | "description" |
| XXX | "description" |
<form action="https://sandbox.turnitin.com/api/lti/1p0/upload/submit" method="POST" target="_blank" enctype="multipart/form-data"> <input name="lti_version" value="LTI-1p0" type="hidden" /> <input name="resource_link_id" value="142343cc-1948-4fa6-8268-53072e9dbaf0" type="hidden" /> <input name="lis_person_sourcedid" value="56789" type="hidden" /> <input name="lis_lineitem_sourcedid" value="12345" type="hidden" /> <input name="roles" value="Instructor" type="hidden" /> <input name="custom_source" value="16" type="hidden" /> <input name="custom_paper_title" value="Test Submission" type="hidden" /> <input name="custom_paper_student" value="12345" type="hidden" /> <input name="custom_xmlresponse" value="" type="hidden" /> <input name="launch_presentation_css_url" value="" type="hidden" /> <input name="oauth_nonce" value="f521544c836e43e181012281b121d2392a2842d1" type="hidden" /> <input name="oauth_timestamp" value="1349448816" type="hidden" /> <input name="oauth_consumer_key" value="1234" type="hidden" /> <input name="oauth_signature_method" value="HMAC-SHA1" type="hidden" /> <input name="oauth_version" value="1.0" type="hidden" /> <input name="oauth_signature" value="eiBIQ3ubZgKUm8aUCKkZ6w4gD%2Fc%3D" type="hidden" /> <textarea name="custom_paper_data"></textarea> <input type="submit" value="Submit File" /> </form>
In order to launch a form to resubmit a file to Turnitin the form action must point to /api/lti/1p0/upload/resubmit as in the example below.
| Code | Text |
|---|---|
| XXX | "description" |
| XXX | "description" |
| XXX | "description" |
<form action="https://sandbox.turnitin.com/api/lti/1p0/upload/resubmit" method="POST" target="_blank" enctype="multipart/form-data"> <input name="lti_version" value="LTI-1p0" type="hidden" /> <input name="resource_link_id" value="6a730f9d-a4bb-4861-b743-32dc0fa6b9d5" type="hidden" /> <input name="lis_person_sourcedid" value="56789" type="hidden" /> <input name="lis_result_sourcedid" value="12345" type="hidden" /> <input name="roles" value="Instructor" type="hidden" /> <input name="custom_source" value="16" type="hidden" /> <input name="custom_paper_title" value="Test Submission" type="hidden" /> <input name="custom_paper_student" value="12345" type="hidden" /> <input name="custom_xmlresponse" value="" type="hidden" /> <input name="launch_presentation_css_url" value="" type="hidden" /> <input name="oauth_nonce" value="d3481159cd856131d591a3793bd1e88290cb7d99" type="hidden" /> <input name="oauth_timestamp" value="1349448816" type="hidden" /> <input name="oauth_consumer_key" value="1234" type="hidden" /> <input name="oauth_signature_method" value="HMAC-SHA1" type="hidden" /> <input name="oauth_version" value="1.0" type="hidden" /> <input name="oauth_signature" value="L8RBbxCbq5JB49kIT0INXlZgKB8%3D" type="hidden" /> <input name="custom_paper_data" type="file" /> <input type="submit" value="Submit File" /> </form>
In order to launch a form to resubmit a file to Turnitin the form action must point to /api/lti/1p0/upload/resubmit as in the example below.
| Code | Text |
|---|---|
| XXX | "description" |
| XXX | "description" |
| XXX | "description" |
<form action="https://sandbox.turnitin.com/api/lti/1p0/upload/resubmit" method="POST" target="_blank" enctype="multipart/form-data"> <input name="lti_version" value="LTI-1p0" type="hidden" /> <input name="resource_link_id" value="20aa18cb-fe4b-49da-8cc1-677f43afd1b7" type="hidden" /> <input name="lis_person_sourcedid" value="56789" type="hidden" /> <input name="lis_result_sourcedid" value="12345" type="hidden" /> <input name="roles" value="Instructor" type="hidden" /> <input name="custom_source" value="16" type="hidden" /> <input name="custom_paper_title" value="Test Submission" type="hidden" /> <input name="custom_paper_student" value="12345" type="hidden" /> <input name="custom_xmlresponse" value="" type="hidden" /> <input name="launch_presentation_css_url" value="" type="hidden" /> <input name="oauth_nonce" value="b4532150ab041baf2b8f420925e8cda7020f7380" type="hidden" /> <input name="oauth_timestamp" value="1349448816" type="hidden" /> <input name="oauth_consumer_key" value="1234" type="hidden" /> <input name="oauth_signature_method" value="HMAC-SHA1" type="hidden" /> <input name="oauth_version" value="1.0" type="hidden" /> <input name="oauth_signature" value="i4Fd3jkxKlxUR5bfQDbbo%2BPXqUY%3D" type="hidden" /> <textarea name="custom_paper_data"></textarea> <input type="submit" value="Submit File" /> </form>