From 5c72ec6433b64c37a7041744ae6713dd60ea8840 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 17 Sep 2025 06:39:21 +0000 Subject: [PATCH] =?UTF-8?q?curl=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curl.md | 57 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/curl.md b/curl.md index e3530a5..52fe4af 100644 --- a/curl.md +++ b/curl.md @@ -413,31 +413,36 @@ curl -X POST \ curl -sL -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $token" \ - -d "{ - \"repo\": \"$handle\", - \"collection\": \"app.bsky.actor.profile\", - \"rkey\": \"self\", - \"record\": { - \"$type\": \"app.bsky.actor.profile\", - \"displayName\": \"$handle\", - \"description\": \"https://$handle\", - \"pinnedPost\": { - \"$type\": \"com.atproto.repo.strongRef\", - \"uri\": \"$uri\", - \"cid\": \"$cid\" - }, - \"avatar\": { - \"$type\": \"blob\", - \"ref\": {\"$link\": \"$img\"}, - \"mimeType\": \"image/jpeg\", - \"size\": 12345 - }, - \"createdAt\": \"2025-09-17T06:21:34Z\" - }, - \"commit\": { - \"cid\": \"$cid\", - \"rev\": \"$rev\" - } - }" \ +curl -sL -X POST \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $token" \ + -d "{ + \"repo\": \"$handle\", + \"collection\": \"app.bsky.actor.profile\", + \"rkey\": \"self\", + \"record\": { + \"$type\": \"app.bsky.actor.profile\", + \"displayName\": \"$handle\", + \"description\": \"https://$handle\", + \"pinnedPost\": { + \"$type\": \"com.atproto.repo.strongRef\", + \"uri\": \"$uri\", + \"cid\": \"$cid\" + }, + \"avatar\": { + \"$type\": \"blob\", + \"ref\": {\"$link\": \"$img\"}, + \"mimeType\": \"image/jpeg\", + \"size\": 12345 + }, + \"createdAt\": \"2025-09-17T06:21:34Z\" + }, + \"commit\": { + \"cid\": \"$cid\", + \"rev\": \"$rev\" + } + }" \ + "$pds/xrpc/com.atproto.repo.putRecord" + "$pds/xrpc/com.atproto.repo.putRecord" ``` \ No newline at end of file