https://github.com/yinheli/feishu-cb
feishu-cb used to API develop, dump requests and send to feishu via bot.
https://github.com/yinheli/feishu-cb
bot diagnostic-tool
Last synced: 10 months ago
JSON representation
feishu-cb used to API develop, dump requests and send to feishu via bot.
- Host: GitHub
- URL: https://github.com/yinheli/feishu-cb
- Owner: yinheli
- License: apache-2.0
- Created: 2023-02-22T08:55:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-01T22:02:25.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T05:24:36.285Z (12 months ago)
- Topics: bot, diagnostic-tool
- Language: Rust
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# feishu-cb
[](https://github.com/yinheli/feishu-cb/actions/workflows/build.yml)
feishu-cb used to API develop, dump requests and send to feishu via bot.
## Usage
```bash
curl -X POST 127.0.0.1:8080/cb/test?p=x -d 'hello'
```
Then you feishu bot will send you following like this:
```text
feishu-cb dump: 127.0.0.1:38782
POST /cb/test?p=x HTTP/1.1
host: 127.0.0.1:8080
user-agent: curl/7.74.0
accept: */*
content-type: application/x-www-form-urlencoded
content-length: 5
hello
```
## Deploy
You can use `helm` to quickly deploy an instance to quickly diagnostic request payload.
```bash
helm upgrade --install feishu-cb ./charts/feishu-cb \
--set config.webhook=xxx \
--set ingress.enabled=true \
--set ingress.hosts[0].host=fs-192-168-4-67.nip.io \
--set ingress.hosts[0].paths[0].path=/ \
--set ingress.hosts[0].paths[0].pathType=Prefix
```
or build from source
```bash
cargo build --release
```
## Limitations
dump body only support `UTF-8` string, binaries are not supported.