Edmodo API Client
This module simplifies the process of making requests to, and parsing responses from, the Edmodo API. It supports version 1.1 of the API.
Installation
npm install --save edmodo
Basic Use
Using EdmodoAPI with Express to handle the install API request:
var edmodo = api_key: processenvEDMODO_API_KEY api_host: processenvEDMODO_HOST_NAME; app;
Logging Support
To log requests and responses, provide a logger object when constructing the
API client. The logger must implement debug
, and warn
methods, which accept
any number of arguments to log: logger.debug
will be used to log requests and
responses, and logger.warn
will be used to log request failures that are
retried (persistent API failures will return an error).
This is compatible with using the winston logging framework:
var winston = ; var edmodo = api_key: processenvEDMODO_API_KEY api_host: processenvEDMODO_HOST_NAME logger: winston;