Package Exports
- opengov-meetings
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opengov-meetings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A Node.js module for connecting to the 360 OpenGov Meetings solution from Software Innovation.
This API is based on screenscraping and far from rock solid.
It is however the best solution I've found so far to integrate 360 OpenGov Meetings with other systems.
##Installation
$ npm install opengov-meetings
##API
Every call requires an opts object with host and path set.
host this is usually "http://opengov.cloudapp.net"
path the path to your installation of OpenGov Meetings. Like "/Meetings/
Every call returns error or a data object
###getBoards
List all boards.
'use strict';
var ogm = require('opengov-meetings')
, opts = {
host: 'http://opengov.cloudapp.net',
path: '/Meetings/tfk'
}
;
function cb(err, data){
if(err){
console.error(err);
} else {
console.log(data);
}
}
ogm.getBoards(opts, cb);
###getMeetings
List all meetings for a given board
boardId id for the board
'use strict';
var ogm = require('./index')
, opts = {
host: 'http://opengov.cloudapp.net',
path: '/Meetings/tfk',
boardId: '200151'
}
;
function cb(err, data){
if(err){
console.error(err);
} else {
console.log(data);
}
}
ogm.getMeetings(opts, cb);
###getAgenda
List agenda for a given meeting.
meetingId id for the meeting
'use strict';
var ogm = require('./index')
, opts = {
host: 'http://opengov.cloudapp.net',
path: '/Meetings/tfk',
meetingId: '203235'
}
;
function cb(err, data){
if(err){
console.error(err);
} else {
console.log(data);
}
}
ogm.getAgenda(opts, cb);
###getDetails
Get details and documents for a given agendaItem
agendaId id for the item
'use strict';
var ogm = require('./index')
, opts = {
host: 'http://opengov.cloudapp.net',
path: '/Meetings/tfk',
agendaId: '200262'
}
;
function cb(err, data){
if(err){
console.error(err);
} else {
console.log(data);
}
}
ogm.getDetails(opts, cb);