Skip to content

ouest-insa/siaje-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' } ]

Releases

No releases published

Packages

No packages published