EngradeWikis › Engrade API

Engrade API

Introduction

Engrade's API allows developers to integrate our leading class management tools with school SIS's and partner services. If you would like connect your software to Engrade, please contact us and we'll work with you to bring our tools to your users.

Technical Overview

Engrade offers a REST API allowing qualified apps to send data to our servers via HTTP POST requests and retrieve data in either XML, JSON, or serialized PHP format. This API is in BETA, so please let us know if something isn't working properly.

All posts will be sent to https://api.engrade.com/api/

Input fields will vary depending on the request, but most API requests must have at least 3 fields:
apitask - will determine what data to input or output
apikey - contact us for your API key
ses - will be the session token created by first sending a login request.


Optionally you can specify the format of your output by adding the field api to your request:
api=xml will return XML (default)
api=json will return JSON
api=ser will return serialized PHP

Example Successful Request

***** Request *****
POST /api/ HTTP/1.1
Host: api.engrade.com
Content-length: x

apikey=1234&apitask=login&usr=jondoe&pwd=Password123


***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x

<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<success>true</success>
<values>
<usr>jondoe</usr>
<pwd>Password123</pwd>
<ses>9888304868921308840o4h07chple88d7a863c1n724pfa697emf2bfnof3hd11a</ses>
</values>
<time>1286222925</time>
</engrade>

Example Failed Request

***** Request *****
POST /api/ HTTP/1.1
Host: api.engrade.com
Content-length: x

apikey=1234&apitask=login&usr=jondoe&pwd=WrongPassword


***** Response *****
HTTP/1.0 200 OK
Date: Sat, 15 Jan 2000 14:37:12 GMT
Content-Type: text/xml
Content-Length: x

<?xml version="1.0" encoding="utf-8" ?>
<engrade>
<success>false</success>
<values>
<usr>teacher</usr>
<pwd>WrongPassword</pwd>
</values>
<errors>
<pwd>Invalid password</pwd>
</errors>
<time>1286229374</time>
</engrade>
« Prev Page
Close