0.1.1 • Published 7 years ago

fs-client v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Felles Studentsystem (FS) client

Documentation: http://www.fellesstudentsystem.no/dokumentasjon/

Codeship Status for Skalar/fs-client

Examples

import {crud} from './lib/fs'

crud.setup({
  url: 'https://jboss-test.uio.no/fsrest/rest/crud',
  username: 'username',
  password: 'password'
})

// Find Soknad by year and terminkode
crud.SoknadsAlternativ.find({Aarstall: 2015, Terminkode: 'HØST'})
  .then(console.log)
  .catch(console.error)

// Find person by ssn
crud.Person.findBySSN(process.argv[2])
  .then(console.log)
  .catch(console.error)