Welcome to Python Hangout Api’s documentation¶
Hangout API is python API for for controlling Google Hangouts video calls built on top of selenium library. It provides ability to create new hangouts, connect to existing calls, invite people to call and manage call settings.
Hangout structure:
- hangout - Base Hangouts functionality. Allows you to log in, create new hangouts, etc..
- hangout.audio - Allows control over the hangout’s audio output settings.
- hangout.video - Allows control over the hangout’s video settings.
- hangout.microphone - Allows control over the hangout’s microphone settings.
- hangout.bandwidth - Allows control over the hangout’s bandwidth and quality.
- hangout.toolbox - API to Hangouts ToolBox PlugIn
Some extensions are only available in Hangouts On Air. These are:
- hangout.broadcast - Allows to manage On Air broadcasting
- hangout.cameraman - API to Hangouts Cameraman PlugIn
- hangout.controlroom - API to Hangouts Control Room PlugIn
Also you can read developers notes
How to use Hangout API¶
First you need to log in:
>>> hangout = Hangouts() >>> hangout.login(email, password)
Then you can start a new hangout or connected to an existing one.
>>> hangout.start()
Once in a hangout you can invite (via an email address or using a circle name) other people to the hangout.
>>> hangout.invite(['maxybot@gmail.com', 'Friends'])
Or get (or change) call setting, like bandwidth, audio, etc:
>>> hangout.microphone.get_devices() [...] >>> hangout.video.get_devices() [...]
And leave the call when you done:
>>> hangout.disconnect()