desire2learn

404 Error when trying to post a file topic

余生长醉 提交于 2020-01-22 02:38:06
问题 I am trying to create content in my d2l orgUnit but I keep getting 404 Page not found back. I am calling this from the Android emulator. I've successfully created a module as well as a topic link using the POST APIs. I did look at this post 404 Posting Content to Desire2Learn which helped me get the module and link working, but I just can't get the uploading a file as a topic to work. I suspect it may be the URL as I wasn't sure what to put, so I put a relative path I created in the org unit.

Setting “Max Score” in Desire2Learn

天大地大妈咪最大 提交于 2020-01-17 04:04:31
问题 Do the web services allow a user to update the Max Score value from an assignment? So for example, I upload a session where my Max Score is 15 and I want to upload the same assignment for the same class with a different score of 12. If so which call needs to be made to update the score? 回答1: Yes, you can update grade object and set the max score value inside the GradeObject Resource. 来源: https://stackoverflow.com/questions/11354965/setting-max-score-in-desire2learn

Newtonsoft.Json.Linq.JArray.Parse(string)' has some invalid arguments

核能气质少年 提交于 2020-01-16 00:48:11
问题 I am trying to extract data from D2L for the dropbox submissions using API's I have a link which returns a Json Array as per told on the documentation and from this Array I just need the Id feild nothing else. I have tried to convert this Array into dynamic Object but that didn't help. Here is my code. var client = new RestClient("https://" + LMS_URL); var authenticator = new ValenceAuthenticator(userContext); string Link = "/d2l/api/le/1.12/UnitID/dropbox/folders/UniID/submissions/"; var

404 Posting Content to Desire2Learn

拟墨画扇 提交于 2019-12-31 07:08:47
问题 I have a basic Valence App build for Desire2Learn and now I'm trying to POST data and I either get a 400 or 404 error. If I make a GET request to /d2l/api/le/(D2LVERSION: version)/(D2LID: orgUnitId)/content/root/, with the correct orgUnitId, I can see all of the content for a course. However, when I POST a ContentObjectData of type Module, it returns a 400. The docs have nothing listed for a 400 error for that particular request, but I'm assuming that I messed up the ContentObjectData. I've

Desire2Learn Valence API non-interactive authentication

喜欢而已 提交于 2019-12-24 00:29:45
问题 In the Desire2Learn Valence API, is there a non-interactive authentication flow for server applications? The Valence documentation appears to assume that any authenticating application will be an interactive client process. 回答1: We actually accomplished this by non-interactively logging into the site. If you try this route, make sure to grab the d2lSecureSessionVal, d2lSessionVal, and Login cookies and add them to your subsequent requests. Request 1: 1 > POST http{s}://elearning.test.masked

Can a desire2learn remote plugin be used to insert a custom external learning tool link into a course module?

不羁的心 提交于 2019-12-23 04:56:05
问题 We'd like to use a Desire2Learn remote plugin to configure a custom LTI external learning tool link via the course builder, but it's not clear to me if and how the remote plugin API is supposed to be used to achieve this. This is what we'd like to do: When the user adds an instance of our remote plugin to a module using the Course Builder, our plugin will display a UI to configure a specific instance of our LTI tool. When the instructor has finished configuring the instance through our plugin

Authenticaton Method for Desire2Learn REST API vs SOAP

好久不见. 提交于 2019-12-17 22:01:04
问题 I'm hoping someone could enlighten me on the way authentication works with the new D2L REST API. From my reading and playing with the "GetStarted" example code it seems that calls are based on the "User Identity Level" and "User Acceptance". For us, this is a bit problematic. We haves several custom tools where a student completes an activity (outside D2L) and is given a grade. These tools are set up so that the grade provided in this manner are associated with a grade book column for a given

Forbidden Error Message with API GET classlist/grade calls

守給你的承諾、 提交于 2019-12-13 21:21:25
问题 I am making an API call for the class list along with grades from D2L. I keep getting an Unknown error occured, Forbidden error message. I am able to access Profile and Organization Information through API calls but not the grades and classlist. Is this something that can my learning suite can configure? 回答1: Since all the API calls happen within the context of a particular user's permissions, it's possible that the calling user context in which you're making the calls doesn't have the

Widgets and APIs in Desire2Learn

岁酱吖の 提交于 2019-12-13 05:21:17
问题 Can Desire2Learn APIs be used from inside a D2L widget? Will the user get prompted for credentials? 回答1: Yes the APIs work from widget. No the user won't be prompted for credentials. Widgets are blocks of HTML code that can be embedded in different areas of the Desire2Learn UI (org home page and course home page). Widgets are one of two main ways of extending the UI of Desire2Learn (along with "External Learning Tools" which are LTI links typically added to courses). They are achieved by

D2L Valence: Retrieve Final Grades

心不动则不痛 提交于 2019-12-13 04:20:04
问题 Is there a way to get both the Final Calculated Grade and the Final Adjusted Grade? I would like to be able to compare them. 回答1: I'm wondering: GET /d2l/api/le/(version)/(orgUnitId)/grades/values/(userId)/ Retrieve all the grade objects for a particular user assigned in an org unit. Return. This action returns a JSON array of GradeValue blocks. Grade.GradeValue{ "DisplayedGrade": <string>, "GradeObjectIdentifier": <string:D2LID>, "GradeObjectName": <string>, "GradeObjectType": <number