You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body = { blocks: blocks.as_json, text:'New block message!' }
72
+
73
+
response =Faraday.post(
74
+
webhook_url,
75
+
body.to_json,
76
+
'Content-Type' => 'application/json'
77
+
)
78
+
```
79
+
80
+
This will create a message like this:
81
+
82
+

83
+
84
+
You can also check out the [`slackerduty`](https://github.com/CGA1123/slackerduty) project for some example,
85
+
[`Slackerduty::Alert`](https://github.com/CGA1123/slackerduty/blob/b33d708124ddf36d1432080ba7e16e66fefa6993/lib/slackerduty/alert.rb#L28-L34) and [`Slackerduty::Blocks`](https://github.com/CGA1123/slackerduty/blob/master/lib/slackerduty/blocks) may be helpful places to start.
86
+
40
87
## Contributing
41
88
42
89
Bug reports and pull requests are welcome on GitHub at https://github.com/CGA1123/slack_block_kit-ruby
0 commit comments