hubot-hangupsjs
Hubot Adapter for Google Hangouts
Last updated 5 years ago by davidkassa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-hangupsjs 
SYNC missed versions from official npm registry.

Hubot HangupsJS

This is a Hubot adapter for Google Hangouts.

Installation

Create a new bot

Detailed instructions can be found on the Hubot wiki

Simple instructions are:

npm install -g yo generator-hubot
mkdir myhubot
cd myhubot
yo hubot

Include the adapter

npm install hubot-hangupsjs --save

Run hubot with the hangupsjs adapter

bin/hubot -a hangupsjs

Configuration

Set the Google authentication token

Set the environment variable HUBOT_GOOGLE_AUTH_TOKEN to the value found here: https://accounts.google.com/o/oauth2/auth?&client_id=936475272427.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthLogin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code

Alternatively, if the environment variable is omitted the console will interactively request the token from the same URL.

This is a a Google whitelisted OAuth CLIENT_ID and CLIENT_SECRET that shows up as "iOS Device" in your accounts page.

This token is a one-time token so it will not work on redeployment or after significant time or changes are made. A new token will have to be obtained and the environment variable removed or reset.

Hubot auth

It's highly recommended that you use the hubot-auth script since this bot will be publicly accessible.

You can get the user IDs required for the HUBOT_AUTH_ADMIN setting by calling the plus.people.get API method.

Google account settings

I'm not sure if these steps are necessary, but I have set/changed the following settings on my bot account.

Turn on Hangouts in Gmail.

Disable Get notified about invitations and enable Everyone else: contact you directly in the Customize invitation settings.

Add a cool picture and update your bot's name.

Current Tags

  • 0.0.5                                ...           latest (5 years ago)

5 Versions

  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (7)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |