curl を更新
57
curl.md
57
curl.md
@@ -413,31 +413,36 @@ curl -X POST \
|
|||||||
curl -sL -X POST \
|
curl -sL -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $token" \
|
-H "Authorization: Bearer $token" \
|
||||||
-d "{
|
curl -sL -X POST \
|
||||||
\"repo\": \"$handle\",
|
-H "Content-Type: application/json" \
|
||||||
\"collection\": \"app.bsky.actor.profile\",
|
-H "Authorization: Bearer $token" \
|
||||||
\"rkey\": \"self\",
|
-d "{
|
||||||
\"record\": {
|
\"repo\": \"$handle\",
|
||||||
\"$type\": \"app.bsky.actor.profile\",
|
\"collection\": \"app.bsky.actor.profile\",
|
||||||
\"displayName\": \"$handle\",
|
\"rkey\": \"self\",
|
||||||
\"description\": \"https://$handle\",
|
\"record\": {
|
||||||
\"pinnedPost\": {
|
\"$type\": \"app.bsky.actor.profile\",
|
||||||
\"$type\": \"com.atproto.repo.strongRef\",
|
\"displayName\": \"$handle\",
|
||||||
\"uri\": \"$uri\",
|
\"description\": \"https://$handle\",
|
||||||
\"cid\": \"$cid\"
|
\"pinnedPost\": {
|
||||||
},
|
\"$type\": \"com.atproto.repo.strongRef\",
|
||||||
\"avatar\": {
|
\"uri\": \"$uri\",
|
||||||
\"$type\": \"blob\",
|
\"cid\": \"$cid\"
|
||||||
\"ref\": {\"$link\": \"$img\"},
|
},
|
||||||
\"mimeType\": \"image/jpeg\",
|
\"avatar\": {
|
||||||
\"size\": 12345
|
\"$type\": \"blob\",
|
||||||
},
|
\"ref\": {\"$link\": \"$img\"},
|
||||||
\"createdAt\": \"2025-09-17T06:21:34Z\"
|
\"mimeType\": \"image/jpeg\",
|
||||||
},
|
\"size\": 12345
|
||||||
\"commit\": {
|
},
|
||||||
\"cid\": \"$cid\",
|
\"createdAt\": \"2025-09-17T06:21:34Z\"
|
||||||
\"rev\": \"$rev\"
|
},
|
||||||
}
|
\"commit\": {
|
||||||
}" \
|
\"cid\": \"$cid\",
|
||||||
|
\"rev\": \"$rev\"
|
||||||
|
}
|
||||||
|
}" \
|
||||||
|
"$pds/xrpc/com.atproto.repo.putRecord"
|
||||||
|
|
||||||
"$pds/xrpc/com.atproto.repo.putRecord"
|
"$pds/xrpc/com.atproto.repo.putRecord"
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user