1
0
This commit is contained in:
Your Name
2024-02-21 09:16:45 +00:00
committed by ai
parent f7df1224e0
commit 13e754f2a5
71 changed files with 309 additions and 177 deletions

20
scpt/card_did_change.zsh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/zsh
echo id
host=https://api.syui.ai
token=`cat ~/.config/atr/api_card.json|jq -r .token`
echo $token
pass=`cat ~/.config/atr/api_card.json|jq -r .pass`
if [ -z "$1" ];then
echo 1 : id
exit
fi
if [ -z "$2" ];then
echo 2 : did
exit
fi
id=$1
did=$2
id=$1
curl -X PATCH -H "Content-Type: application/json" -d "{\"did\":\"$did\",\"token\":\"$token\"}" -s $host/users/$id