1
0

test card 22

This commit is contained in:
2023-05-21 15:45:18 +09:00
parent 33944caab7
commit baeca96d10
3 changed files with 29 additions and 1 deletions

20
tmp/card_add.zsh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/zsh
echo id card cp
read
host=https://api.syui.ai
pass=`cat ~/.config/atr/api_card.json|jq -r .password`
if [ -z "$1" ];then
exit
fi
if [ -z "$2" ];then
exit
fi
if [ -z "$3" ];then
exit
fi
id=$1
card=$2
cp=$3
s="normal"
curl -X POST -H "Content-Type: application/json" -d "{\"owner\":$id,\"card\":$card,\"status\":\"$s\",\"cp\":$cp,\"password\":\"$pass\"}" -sL $host/cards