mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
update list response
This commit is contained in:
parent
17593a41ab
commit
7bf5e327f7
23
96.md
23
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))
|
||||||
|
"total": 1, // total number of files
|
||||||
|
"page": 0, // the current page number
|
||||||
|
"files": [
|
||||||
{
|
{
|
||||||
"id": "<sha256-hash>",
|
|
||||||
"nip94_event": {
|
|
||||||
"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