Nutrient Packed Morsels
Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

opengov-meetings

5.2.1 • Public • Published

Build Status Coverage Status js-standard-style

opengov-meetings

A Node.js module for connecting to the 360 OpenGov Meetings solution from Tieto.

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.

This module supports the newest version of OpenGov. For previous versions stick to v4.1.1.

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.

const { getBoards } = require('opengov-meetings')
const options = {
  host: 'http://opengov.cloudapp.net',
  path: '/Meetings/tfk'
}
 
getBoards(options)
.then(console.log)
.catch(console.error)

getMeetings

List all meetings for a given board

boardId id for the board

const { getMeetings } = require('opengov-meetings')
const options = {
  host: 'http://opengov.cloudapp.net',
  path: '/Meetings/tfk',
  boardId: '200151',
  year: 2015
}
 
getMeetings(options)
.then(console.log)
.catch(console.error)

getAgenda

List agenda for a given meeting.

meetingId id for the meeting

const { getAgenda } = require('opengov-meetings')
const options = {
  host: 'http://opengov.cloudapp.net',
  path: '/Meetings/tfk',
  meetingId: '203235'
}
 
getAgenda(options)
.then(console.log)
.catch(console.error)

getDetails

Get details and documents for a given agendaItem

agendaId id for the item

const { getDetails } = require('opengov-meetings')
const options = {
  host: 'http://opengov.cloudapp.net',
  path: '/Meetings/tfk',
  agendaId: '200262'
}
 
getDetails(options)
.then(console.log)
.catch(console.error)

getMembers

Get members for a given board

boardId id for the board

const { getMembers } = require('opengov-meetings')
const options = {
  host: 'http://opengov.cloudapp.net',
  path: '/Meetings/tfk',
  agendaId: '217642'
}
 
getMembers(options)
.then(console.log)
.catch(console.error)

License

MIT

Install

npm i opengov-meetings

DownloadsWeekly Downloads

37

Version

5.2.1

License

MIT

Unpacked Size

212 kB

Total Files

46

Last publish

Collaborators

  • avatar