ec-api-client

A NodeJS API client for EC's API http://api.ecenglish.com/docs/

Usage no npm install needed!

<script type="module">
  import ecApiClient from 'https://cdn.skypack.dev/ec-api-client';
</script>

README

ec-api-client

A NodeJS API client for EC's API http://api.ecenglish.com/docs/

Installation

To install the latest stable release with the command-line tool:

npm install --save ec-api-client

Usage

var EC = require('ec-api-client');

var options = {
  endpoint: 'https://api.ecenglish.com/', //optional
  version: 'v1' //optional, defaults to 'v1'
};

var ec = new EC("your_API_key", options);

List of supported methods:

* ec.request
* ec.testConnection
* ec.schools
* ec.products
* ec.offerings
* ec.availabilityDates
* ec.referenceData
* ec.offices