Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denzp/node-edbo


https://github.com/denzp/node-edbo

Last synced: about 12 hours ago
JSON representation

Awesome Lists containing this project

README

        

Node.js EDBO library
=================

###Overview
**_Early Alpha_** unofficial [EDBO](http://edbo.gov.ua/) library.

##Usage
Firstly, you need yo create *config file* in JSON format which contains *security credentials* and *connection details* of EDBO services

**config.json**
```json
{
"edbo": {
"host": "test.edbo.gov.ua",
"port": 8080,

"user": "...",
"password": "..."
}
}
```

Then you could use the library itself

**edbo-client-example.js**
```javascript
var EDBO = require('../');

EDBO.setGlobalConfig('config.json');

EDBO
.session()
.then(function(session) {
return session.Guides.BenefitsGet();
})
.then(function(data) {
console.log(data.dBenefits);
})
.catch(function(err) {
console.log(err);
})
```