Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Found this content helpful? Log in or sign up to leave a like!
I am trying to develop a C# program that will post files as student assignment submissions into Canvas via Canvas API.
Details:
{
{"name", "sampleFile.pdf"},
{"size", fileInfo.Length.ToString()},
{"content_type", "application/pdf"}
};
httpWebRequest.Host = CanvasHost;
httpWebRequest.ContentType = "application/x-www-form-urlencoded";
httpWebRequest.Accept = "application/json";
httpWebRequest.ContentLength = byteArray.Length;
Any suggestions?
Doug
Solved! Go to Solution.
I'm assuming that you're trying to post assignments on behalf of another user. If so, you should read the masquerading docs.
I'm assuming that you're trying to post assignments on behalf of another user. If so, you should read the masquerading docs.
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In