Skip to content

Setup your Workflows

skierkowski edited this page Oct 20, 2014 · 3 revisions

To use the connector in your workflow when you run factor s you must setup your credentials.yml and connectors.yml.

Authentication

Slack requires a token for all actions, you can get that at the main api page. Other common requirements are channel, and users. We've set it up so that you can use you member names and channel names but you can grab any id for those there. Set up the credentials.yml with your token.

credentials.yml

slack:
  token: '<yourtokenhere>'

Setting up the Connectors

Lets make sure we have slack in our connectors.yml file.

connectors.yml

---
bitballoon: wss://open-connectors.factor.io/v0.4/bitballoon
bitbucket: wss://open-connectors.factor.io/v0.4/bitbucket
github: wss://open-connectors.factor.io/v0.4/github
heroku: wss://open-connectors.factor.io/v0.4/heroku
hipchat: wss://open-connectors.factor.io/v0.4/hipchat
middleman: wss://open-connectors.factor.io/v0.4/middlemanb
rackspace:
  compute: wss://open-connectors.factor.io/v0.4/rackspace_compute
  flavors: wss://open-connectors.factor.io/v0.4/rackspace_images
  images: wss://open-connectors.factor.io/v0.4/rackspace_flavors
slack:
  channel: wss://open-connectors.factor.io/v0.4/slack_channel
  chat: wss://open-connectors.factor.io/v0.4/slack_chat
  group: wss://open-connectors.factor.io/v0.4/slack_group
  user: wss://open-connectors.factor.io/v0.4/slack_user
ssh: wss://open-connectors.factor.io/v0.4/ssh
timer: wss://open-connectors.factor.io/v0.4/timer
web: wss://open-connectors.factor.io/v0.4/web
Clone this wiki locally