

#Open canvas 6 demo full
This code was pulled from another project and put together quickly as a response to a community question, make sure you test failure scenarios in your environment.Open the full playlist on YouTube Create your own data-driven formatĮach format has a corresponding template in Google Web Designer with the same name.
#Open canvas 6 demo update
IMPORTANT: Make sure you edit the nfig file with your settings, and modify API variable values to match your environment.Īll code is provided as-is for demonstration purposes only.Ģ016.12.03 - UPDATE - File Upload via POST The source published on BitBucket compiles and runs with Visual Studio 2015 and.

Source code can be found on BitBucket here: Canvas API Implementation There is plenty of room for optimization, optimize to meet your needs and share any enhancements you feel people could benefit from. My "long hand" approach to creating matching C# methods could be modified, but hopefully helps to illustrate the concepts. If you follow my code, you will need to add a C# method to handle each additional API call you want to make. With nfig, I have been able to test any API call I have needed to date. I tried to keep things as clear as possible.


The purpose of this project is not to replace tools like Postman, the purpose is to help other developers using. If you use my default nfig, log files will be found in this location: c:\\logs\canvasApiTest\*.log If your test produces an error or throws an exception, full details can also be found in the log file. Grab these responses and inspect them for full details. This sample config includes GET, POST, and PUT calls, to demonstrate each type of verb.Įach verb is implemented in the base class: clsHttpMethods.csįull response details are logged by NLog. These strings will be parsed and passed to the API library where they will be converted into actual calls to the Canvas API, at the site defined by the "apiUrl" variable. The format of the API call list is an array of pipe delimited strings in the following format:
#Open canvas 6 demo download
I will provide a Visual Studio project that you can download and use as starting point to develop your own tools. NET developer and are interested in leveraging the Canvas API to automate tasks at your institution, you might be interested in ths demo project.
