7

Is there an API which allows me to send a notification to Google Hangout? Or is there even a python module which encapsulates the Hangout API?

I would like to send system notification (e.g. hard disk failure reports) to a certain hangout account. Any ideas, suggestions?

Andreas Roth
  • 699
  • 2
  • 9
  • 30

3 Answers3

2

Hangouts does not currently have a public API.

That said, messages delivered to the Google Talk XMPP server (talk.google.com:5222) are still being delivered to users via Hangouts. This support is only extended to one-on-one conversations, so the notification can't be delivered to a group of users. The messages will need to be supplied through an authenticated Google account in order to be delivered.

foxxtrot
  • 11,214
  • 4
  • 27
  • 27
  • They killed the Hangouts API: "New apps cannot be created but existing apps will continue to run until April 25th, 2017. After that date, apps in Hangouts will no longer function." – bukzor Aug 28 '17 at 18:00
2

There is pre-alpha library for sending hangouts messages on python: https://pypi.python.org/pypi/hangups/0.1

The API have been reverse engineered and is not published (as someone posted in comments). Thus it might change a Google's will.

Also, messages sent using XMPP ceased to be delivered to Hangouts users. I guess this is another cut (of the thousand scheduled).

Arie Skliarouk
  • 423
  • 2
  • 11
1

I send alarms and other notifications with a python script (failures on database server, partitions without free space, etc), using hangouts. It's easy. Look at http://www.administracion-linux.com/2014/07/enviar-mensajes-por-hangout-desde.html to send hangouts.

dibi
  • 3,257
  • 4
  • 24
  • 31
Juan
  • 11
  • 1