Last active
August 29, 2015 14:11
-
-
Save Kami/7675287d81365cc8dac4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "send_to_slack_on_matched_tweet" | |
description: "Relay Tweets to the Slack channel." | |
enabled: true | |
trigger: | |
type: "twitter.matched_tweet" | |
parameters: {} | |
action: | |
ref: "core.http" | |
parameters: | |
url: "https://hooks.slack.com/services/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XXX" | |
headers: "content-type=application/x-www-form-urlencoded" | |
body: "payload={\"username\": \"twitter-relay\", \"icon_emoji\": \":panda_face:\", \"text\": \"@{{trigger.user.screen_name}} tweeted on {{trigger.created_at}}: {{trigger.text}} - {{trigger.url}}\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment