This commit is contained in:
2023-10-20 23:31:16 +09:00
parent 430b5977d8
commit 993b83a287
84 changed files with 9466 additions and 1 deletions

14
scpt/invite.zsh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/zsh
admin_password=`cat $HOME/.config/atr/api_card.json|jq -r .pds_admin_password`
if [ -n "$1" ];then
host=$1
else
host=syu.is
fi
url=https://$host/xrpc/com.atproto.server.createInviteCode
json="{\"useCount\":30}"
echo $url
echo $admin_password
#curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url | jq -r .code
curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url