
洪 民憙 (Hong Minhee)
@hongminhee@hollo.social · Reply to 우주스타 아이도루 랭호 🌠's post
@rangho_220 로컬 타임라인도 발신함(outbox)을 긁으면 되긴 합니다! 예를 들어 랭호 님 프로필을 Accept: application/activity+json
헤더와 함께 요청하면…
$ curl -s -H'Accept: application/activity+json' https://rangho.moe/@rangho_220 | jq .
{
"@context": […],
"id": "https://rangho.moe/@rangho_220",
"type": "Person".
"featured": "https://rangho.moe/@rangho_220/pinned",
"featuredTags": "https://rangho.moe/@rangho_220/tags",
"inbox": "https://rangho.moe/@rangho_220/inbox",
"followers": "https://rangho.moe/@rangho_220/followers",
"following": "https://rangho.moe/@rangho_220/following",
"liked": "https://rangho.moe/@rangho_220/liked",
"name": "우주스타 아이도루 랭호 🌠",
"outbox": "https://rangho.moe/@rangho_220/outbox",
"preferredUsername": "rangho_220",
"url": "https://rangho.moe/@rangho_220",
…
}
이런 식으로 나오는데, 여기 보면 outbox
URL이 나오죠. 그걸 또 요청해보면…
$ curl -s -H'Accept: application/activity+json' https://rangho.moe/@rangho_220/outbox | jq .
{
"type": "OrderedCollection",
"id": "https://rangho.moe/@rangho_220/outbox",
"@context": […],
"totalItems": 141,
"first": "https://rangho.moe/@rangho_220/outbox?cursor=0"
}
이렇게 나오고요. first
를 또 따라가면…
$ curl -s -H'Accept: application/activity+json' https://rangho.moe/@rangho_220/outbox?cursor=0 | jq .
{
"type": "OrderedCollectionPage",
"id": "https://rangho.moe/@rangho_220/outbox?cursor=0",
"@context": […],
"partOf": "https://rangho.moe/@rangho_220/outbox",
"next": "https://rangho.moe/@rangho_220/outbox?cursor=40",
"orderedItems": [
{
"@context": […],
"id": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137#create",
"type": "Create",
"actor": "https://rangho.moe/@rangho_220",
"object": {
"id": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137",
"type": "Note",
"attributedTo": "https://rangho.moe/@rangho_220",
"content": "<p>안드로이드용 클라 괜찮은거 없나 모시돈 말구</p>\n",
"contentMap": {
"ko": "<p>안드로이드용 클라 괜찮은거 없나 모시돈 말구</p>\n"
},
"likes": {
"id": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137#likes",
"type": "Collection",
"totalItems": 0
},
"published": "2025-02-23T08:46:02.698Z",
"replies": {
"id": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137#replies",
"type": "OrderedCollection",
"totalItems": 0
},
"sensitive": false,
"shares": {
"id": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137#shares",
"type": "Collection",
"totalItems": 0
},
"source": {
"type": "as:Source",
"content": "안드로이드용 클라 괜찮은거 없나 모시돈 말구",
"mediaType": "text/markdown"
},
"to": "as:Public",
"url": "https://rangho.moe/@rangho_220/019531fc-23ca-7523-8a62-6930fc3c8137"
},
"published": "2025-02-23T08:46:02.698Z",
"to": "as:Public"
},
…
]
}
이런 식으로 올린 게시물이나 공유한 게시물들이 보이기 시작합니다. 다음 페이지는 next
URL을 따라가면 되고요.