ai/at
ai/at
1
0

curl を更新

syui 2024-10-19 11:05:30 +00:00
parent 8715209259
commit 247a82902d

11
curl.md

@ -54,3 +54,14 @@ url=https://${host}/xrpc/com.atproto.server.refreshSession
curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $refresh" $url curl -sL -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $refresh" $url
``` ```
## feed
- https://feed.syu.is/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd
- https://desc.syu.is/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://did:plc:6qyecktefllvenje24fcxnie/app.bsky.feed.generator/cmd
```sh
# https://docs.bsky.app/docs/api/app-bsky-feed-get-feed
token=`cat ~/.config/ai/token.json|jq -r .accessJwt`
url=at://did:plc:6qyecktefllvenje24fcxnie/app.bsky.feed.generator/cmd
curl -sL "https://syu.is/xrpc/app.bsky.feed.getFeed?feed=$url" -H "Authorization: Bearer $token"
```