mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 19:06:24 +00:00
update list response
This commit is contained in:
parent
17593a41ab
commit
7bf5e327f7
29
96.md
29
96.md
@ -286,26 +286,29 @@ Returns a list of files linked to the authenticated users pubkey.
|
|||||||
Example Response:
|
Example Response:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
[
|
{
|
||||||
{
|
"count": 1, // server page size, eg. max(1, min(server_max_page_size, arg_count))
|
||||||
"id": "<sha256-hash>",
|
"total": 1, // total number of files
|
||||||
"nip94_event": {
|
"page": 0, // the current page number
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
"tags": [
|
"tags": [
|
||||||
|
["ox": "719171db19525d9d08dd69cb716a18158a249b7b3b3ec4bbdec5698dca104b7b"],
|
||||||
|
["x": "5d2899290e0e69bcd809949ee516a4a1597205390878f780c098707a7f18e3df"],
|
||||||
["size", "123456"],
|
["size", "123456"],
|
||||||
["alt", "a meme that makes you laugh"],
|
["alt", "a meme that makes you laugh"],
|
||||||
["expiration", "1715691139"]
|
["expiration", "1715691139"],
|
||||||
// ...other metadata
|
// ...other metadata
|
||||||
]
|
]
|
||||||
"content": "haha funny meme" // caption
|
"content": "haha funny meme", // caption
|
||||||
}
|
"created_at": 1715691130 // upload timestmap
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`<sha256-hash>` is the **original hash**, ie. `ox`
|
`files` contains an array of NIP-94 events
|
||||||
|
|
||||||
`nip94_event` is the same as in the upload result.
|
|
||||||
|
|
||||||
### Query args
|
### Query args
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user