📌 📄 内容摘要:
whatanoob 在 使用 DS R1 撸了个根据余额对硅基 api key 排序的脚本 中发帖
新人第一帖,取之于佬友,回馈于佬友。
#!/bin/bash
# 读取输入并处理每一行
while IFS= read -r line; do
# 忽略空行和注释行
if [[ -z "$line" || "$line" == \#* ]]; then
continue
fi
# 使用 curl 获取余额信息
response=$(curl -s --request GET \
--url https://api.siliconflow.cn/v1/user/info \
--header 'accept: application/json' \
--header "authorization: Bear...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/499030/1
─────────────────────────────
📢 来源:LINUX DO