0.1.1 • Published 7 years ago

hubot-getsatisfaction v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hubot-getsatisfaction

Hubot Get Satisfaction

Hubot Get Satisfaction handler script to query topics by company.

NPM Version Code Climate Scrutinizer Code Quality NPM Downloads License

Stories in Ready

See src/getsatisfaction.coffee for full documentation.

This Hubot script supports JSON and Markdown views. which can be set using an environment variable or using adapter-based defaults.

Installation

In hubot project repo, run:

npm install hubot-getsatisfaction --save

Then add hubot-getsatisfaction to your external-scripts.json:

["hubot-getsatisfaction"]

You can also add hubot-getsatisfaction to your package.json file and then run npm install.

Configuration

VariableRequiredDescription
HUBOT_GETSATISFACTION_COMPANYYesAPI Company Name URL Slug, e.g. ringcentraldev
HUBOT_GETSATISFACTION_VIEWNoEnumerated value json,markdown. Use markdown for Glip and json for Slack.

Usage

Commands

Both keywords getsat and gs are used.

hubot getsat search (topics) (filter) <QUERY> - returns a list of matching topics.
hubot getsat (all) ideas - returns the total count of all ideas.
hubot getsat company - returns the total count of all ideas.
hubot getsat company <COMPANY_NAME> - sets company_name.
hubot getsat help

For more information on using filters, see the next section.

Search Topics

To search topics you can use the following topic filters which must be placed ahead of your query. For example hubot getsat search topics sort:votes style:idea glip.

FilterValuesNotes
sortvotes, newest, active, replies, unansweredvotes is an alias for most_me_toos
stylequestion, problem, praise, idea, update
statusnone, pending, active, complete, rejected, open, closedopen and closed are meta values. open = none or pending or active, closed = complete or rejected

More information on filters is available here: https://education.getsatisfaction.com/reference-guide/api/api-resources/.

Example Usage

Create a Hubot instance, add hubot-getsatisfaction to external-scripts.json and start.

The following example uses the hubot-glip adapter.

$ mkdir myhubot
$ cd myhubot
$ yo hubot
$ vi external-scripts.json
$ HUBOT_GLIP_SERVER=https://platform.ringcentral.com \
HUBOT_GLIP_APP_KEY=MyGlipAppKey \
HUBOT_GLIP_APP_SECRET=MyGlipAppSecret \
HUBOT_GLIP_USERNAME=16505550123
HUBOT_GLIP_EXTENSION=102
HUBOT_GLIP_PASSWORD=MyUserPassword
HUBOT_GETSATISFACTION_COMPANY=ringcentral \
HUBOT_GETSATISFACTION_VIEW=markdown \
./bin/hubot -n hubot -a glip

Hubot Get Satisfaction Demo

Links

Project Repo

Ready-to-Deploy version with Heroku One-Button Deployment

Hubot

Get Satisfaction API

Contributing

  1. Fork it ( http://github.com/grokify/hubot-getsatisfaction/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Hubot Get Satisfaction script is available under the MIT license. See LICENSE.md for details.

Hubot Get Satisfaction script © 2016 by John Wang

0.1.1

7 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago