UNPKG

@serussi/p360

Version:

Wrapper for Public 360 SIF RPC Web Service from Tieto

45 lines (32 loc) 1.2 kB
[![Build Status](https://travis-ci.com/vtfk/p360.svg?branch=master)](https://travis-ci.com/vtfk/p360) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) # p360 Node wrapper for Public 360 SIF RPC Web Service from [Tieto](https://www.tieto.no/). Updated version of @serussi/p360. # Installation ```bash $ npm install @serussi/p360 --save ``` ## SIF documentation SI Integration Framework (SIF) is public 360s RPC-webservice. For a full list of calls and callbacks see the documentation [here](https://github.com/telemark/skoleskyss-arbeid/blob/master/biztalk/GenericWebServiceLayer.pdf) ## Usage ```JavaScript (async () => { const p360 = require('@serussi/p360') const options = { host: 'server.domain.no', authkey: 'your-rpc-auth-key' } try { const client = p360(options) const { ContactService } = client const result = await contactService.GetContactPersons({ parameter: { Name: 'Maccyber%' } }) console.log(JSON.stringify(result, null, 2)) } catch (error) { console.error(error) } })() ``` # License [MIT](LICENSE)