up readme

syui 2 months ago
parent 7829c67c2a
commit 162c7eabc5
Signed by: syui
GPG Key ID: 67AC97A939D3EA19

@ -100,3 +100,24 @@ url=did:plc:xxx
curl -X POST -H "Content-Type: application/json" -d "$json" $url
Ok
```
### invite code
> packages/pds/src/api/com/atproto/account/createInviteCode.ts
```sh
$ url=https://$host/xrpc/com.atproto.account.createInviteCode
$ curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $token" $url
```
### session
```sh
# com.atproto.session.create
$ host=bsky.social
$ user=syui
$ pass=xxx
$ curl -X POST -H "Content-Type: application/json" -d "{\"handle\":\"$user.$host\",\"password\":\"$pass\"}" https://$host/xrpc/com.atproto.session.create
```

Loading…
Cancel
Save