Skip to content

Commit

Permalink
Added demo script for Slack utility package
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenbra committed Feb 21, 2018
1 parent 8484dc1 commit a1afda5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions demos/slack_util_pkg_demo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

-- send message to Slack using webhook
-- see https://api.slack.com/incoming-webhooks

begin
-- create your own incoming webhook in Slack, then paste the path to the webhook here
slack_util_pkg.set_webhook_path ('/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX');
-- send a basic message
slack_util_pkg.send_message ('Hello Slack World!');
-- send a formatted message
slack_util_pkg.send_message ('Hello *Slack* World! This is a _message from PL/SQL_ sent using the <https://github.com/mortenbra|Alexandria PL/SQL Utility Library>.');
end;
/



0 comments on commit a1afda5

Please sign in to comment.