simple-bluesky-webhook

command module
v0.0.0-...-81091ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 3 Imported by: 0

README

Simple Bluesky Webhook

これは Bluesky へテキストを投稿するためのシンプルな Webhook です。 セッションはサーバーを終了するまでメモリ上で保持されます。

使い方

以下のコマンドを実行するとサーバーが起動します。 環境変数による接続先の指定が必要です。

  • HANDLE はexample.bsky.socialのようなあなたの Bluesky でのドメイン名です。
  • PASS は Bluesky でのあなたのパスワードです。
HANDLE="your handle" PASS="your password" go run ./main.go

さらに任意のポート番号も指定できます。(デフォルトは 8080 です。)

PORT="8000" HANDLE="your handle" PASS="your password" go run ./main.go

サーバーの起動時に WebhookURL が表示されます。 WebhookURL はサーバーが起動するたびに変わります。

server is running on port 8080
webhook url is accessible at: POST http://localhost:8080/webhook/...

WebhookURL に POST アクセスするとテキストが Bluesky へ投稿されます。

curl -d "text=Hello World" http://localhost:8080/webhook/...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL