valence

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.

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

Final adjusted grade Valence

夙愿已清 提交于 2019-12-12 04:39:41
问题 Is there a way through the valence API's to pull the Final adjusted grade? I have tried to make calls via GET /d2l/api/le/(version)/(orgUnitId)/grades/final/values/(userId) and via GET /d2l/api/le/(version)/(orgUnitId)/grades/values/(userId)/ but have failed to get the final adjusted grade values for the user. Any help would be appreciated. 回答1: "I have not seen a way to force it with valence" Awww.... "You half to configure the system to export the final adjusted grade instead of the

Error 302 when trying to post D2L topic using multipart

橙三吉。 提交于 2019-12-12 03:52:57
问题 This issue is related to one I posted yesterday but I have uncovered a bit more and am now getting a different error. I removed the code from Android to try straight from Java. I also tried 2 different ways for the multipost information. The userContext has write permission as I can easily create modules. One way I tried: String json = "{\"IsHidden\": false, \"IsLocked\": false, \"ShortTitle\": "Test\", \"Type\": 1, \r\n" + "\"DueDate\": null, \"Url\": \"file.txt\", \r\n" + "\"StartDate\":

What are the permissions required in desire2learn (D2L) Valence PUT call for …/courses?

霸气de小男生 提交于 2019-12-11 19:43:14
问题 I continue to get a "HTTP/1.1 403 Forbidden" response from a PUT request to /d2l/api/lp/1.2/courses/7917 . This may be a permission problem with the user/role that I'm using, but I can't figure out what specific permissions may be required. Can anyone point me to a list or matrix of valence routes and required permissions? Or, answer for this specific one? The same appid/userid/username works for the GETs associated with the same path. confused... cwt 回答1: The permissions associated with API