ka-extension / ka-extension-ts

A browser extension for Khan Academy.
MIT License
19 stars 11 forks source link

Editing evaluations? #140

Closed JettBurns14 closed 3 years ago

JettBurns14 commented 5 years ago

Check if the API allows it first. If so, it'd be cool if editing evaluations was implemented. Editing would work like any other discussion post.

MatthiasPortzel commented 5 years ago

I can confirm that editing evaluations is valid, the exact same ways as editing replies and T&T and questions. A PUT request to https://www.khanacademy.org/api/internal/discussions/scratchpad/5282270105993216/projectevalanswer/[kaencrypted id of the evaluation] with data formatted the same way as the initial POST request.

{
"questionKey":"[kaencrypted id of the evaluation request]",
"initVote":"-1",
"shownLowQualityNotice":false,
"text":"Raw HTML for the request."
}

The difficulty is if we want to duplicate KA's UI and not just make all the HTML editable.

JettBurns14 commented 3 years ago

Would have been interesting to dive into the evaluations APIs, but alas, they are no more.