Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.17 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.17 KB

siaje-wrapper

Build Status Code Climate Test Coverage

An API for SIAJE. Early dev, be careful.

Usage

Currently, you can only retrieve your studies from SIAJE.

Siaje = require('siaje-wrapper');
var s = new Siaje(ouest_insa, a-smith, s3cr3t, function(err) {
  if (!err) {
    s.getStudies(function(err, res) {
      if(!err)
        console.log(res);
    });
  }
});

Connection

var s = new Siaje(<Your JE Slug>, <A member account>, <Member's password>, <Callback>);

Get studies

s.getStudies(<Callback>);

The callback return a javascript array like the following :

[ { name: 'Enterprise 1',
    type: 'Type 1',
    status: 'Status 1' },
  { name: 'Enterprise 2',
    type: 'Type 2',
    status: 'Status 2' } ]