node package manager

zapi-uwaterloo

alt text

zapi-uwaterloo (v 1.0.0)

Introduction

Zapi is a JavaScript library built to help developers easily connect to uwaterloo api.

This component is built for UWaterloo's api.

Requirements

  • JQuery
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>

Install

npm install zapi-uwaterloo --save

Use

You'll have to host the library yourself, so either

  • Require
var zapi_uwaterloo = require('zapi-uwaterloo');
  • Pull in with script (in html)
<script src="your/path/to/zapi-uwaterloo.min.js"></script>

Full list of methods supported

  • api
  • buildings
  • codes
  • courses
  • events
  • foodservices
  • news
  • server
  • services
  • terms
  • weather
  • resources

Example

 zapi = new zapi_uwaterloo();
 
 zapi.foodservices({
   api_key: "{your_api}",
   sub_endpoint: "menu",
 }, function(data) {
   console.log(data);
 });

Api Documentation

Github Page

NPM Module

Issues

Any issues, report them here.