Gitter
Send notifications via Gitter
>>> from notifiers import get_notifier
>>> gitter = get_notifier('gitter')
>>> gitter.required
{'required': ['message', 'token', 'room_id']}
>>> gitter.notify(message='Hi!', token='SECRET_TOKEN', room_id=1234)
Full schema:
additionalProperties: false
properties:
message:
title: Body of the message
type: string
room_id:
title: ID of the room to send the notification to
type: string
token:
title: access token
type: string
required:
- message
- token
- room_id
type: object
You can view the available rooms you can access via the rooms
resource
>>> gitter.rooms(token="SECRET_TOKEN")
{'id': '...', 'name': 'Foo/bar', ... }