<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha107chan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha107chan/</author_url>
  <blog_title>TORIPIYO DIARY</blog_title>
  <blog_url>https://toripiyo.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Slack</anon>
  </categories>
  <description>Ruby には Slack を扱うための gem がありますが、 github.com Slack 用の gem を利用しなくても Slack に投稿することは出来ます。 incoming webhook の url は既に Slack apps で生成済みとします。 blocks を編集すればメッセージ内容を変えることができます。 Building with Block Kit | Slack メッセージ例 require 'net/http' require 'uri' require 'json' def post_slack(payload, incoming_webhook_url)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoripiyo.hatenablog.com%2Fentry%2F2022%2F11%2F10%2F221032&quot; title=&quot;なるべくシンプルに Ruby のコードから Slack へ投稿する方法 - TORIPIYO DIARY&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/ha107chan/20221110/20221110220836.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-10 22:10:32</published>
  <title>なるべくシンプルに Ruby のコードから Slack へ投稿する方法</title>
  <type>rich</type>
  <url>https://toripiyo.hatenablog.com/entry/2022/11/10/221032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
