0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Qiitaのアクセス数取得自動化 LINE WORKS編②

0
Last updated at Posted at 2026-06-03

データ連携の奮闘中の皆様、いかがお過ごしでしょうか。

前回は、①Incoming WebhookのURLをGETしました。
従って、本丸のHULFT Squareに取り組む事前準備として、
例によってドキュメントを確認し、テストをしてみましょう。

下記がCurlのサンプルコードです。

curl -X POST https://webhook.worksmobile.com/message/xxxxxxxxxxxxxxxxx \
    -H 'Content-Type: application/json' \
    -d '{"title":"Inquiry form","body":{"text":"Hi <m userId=\"user@example.com\">, You have received a new inquiry."},"button":{"label":"URL","url":"https://example.com"}}'

PowerShell用に、以下に書き換えたので、試してみたいと思います。
URLとユーザの@以降のxの部分は自身のものに置き換えて下さい。

curl -X POST https://webhook.worksmobile.com/message/xxxxxxxxxxxxxxxxx \ -H 'Content-Type: application/json' \ -d '{"title":"Inquiry form","body":{"text":"Hi <m userId=\"fukanoshin@XXXXXX">, You have received a new inquiry."},"button":{"label":"URL","url":"https://example.com"}}'

できました!成功の「200」で返ってきています!
image.png

LINE WORKS側にも通知できています!
image.png

他のパターンと同じように、↑で作成したコマンドと同じようなことを
HULFT Squareに置き換えれば、実装できそうです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?