Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denzp/node-edbo
https://github.com/denzp/node-edbo
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/denzp/node-edbo
- Owner: denzp
- License: mit
- Created: 2013-08-22T15:05:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-09T09:00:44.000Z (over 10 years ago)
- Last Synced: 2024-11-06T04:42:53.452Z (about 2 months ago)
- Language: JavaScript
- Size: 266 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
})
```