hooglsecrets.blogg.se

Open canvas 6 demo
Open canvas 6 demo






open canvas 6 demo
  1. #Open canvas 6 demo update
  2. #Open canvas 6 demo full
  3. #Open canvas 6 demo download

#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.

  • I have added a class that walks through the steps of uploading a file.
  • #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.

    open canvas 6 demo

    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.

    open canvas 6 demo open canvas 6 demo

    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:

  • "apiCalls" - array of API calls that you would like to run, including parametersįor simplicity and purposes of demo, the access token and API url are in this config file.
  • "apiUrl" - the url to your Canvas site, I would you Beta or Test.
  • The config file contains the following information: The associated source code will create a command line tool that accepts a config file. Json.NET - Newtonsoft - can be referenced in Visual Studio using Nuget
  • Newtonsoft Json.NET library - to serialize/deserialize objects.
  • The project includes a sample logging config file NLog - can be referenced in Visual Studio using Nuget
  • Logging - the sample project uses NLog to create debug and error logs:.
  • The base classes used to make the API calls:.
  • Working knowledge of Json, understanding the structure of a Json object is very important:.
  • Understanding of HTTP verbs, you might start here if you need some info:.
  • What is await? Faimiliarity with asynchronous programming (not required, but loosely referenced in the associated project code):Īsynchronous Programming with Async and Await (C# and Visual Basic).
  • There are a few basics that would help to understand when working with the associated project: I can try to guide you to some reference material for those getting started that will hopefully help.

    #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.








    Open canvas 6 demo