File: test_entity_mediaattachment.yaml

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (226 lines) | stat: -rw-r--r-- 11,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
interactions:
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      User-Agent:
      - mastodonpy
    method: GET
    uri: https://mastodon.social/api/v1/statuses/110447012773105565
  response:
    body:
      string: '{"id": "110447012773105565", "created_at": "2023-05-28T15:27:44.000Z",
        "in_reply_to_id": "110447003454258227", "in_reply_to_account_id": "43", "sensitive":
        false, "spoiler_text": "", "visibility": "private", "language": "de", "uri":
        "https://icosahedron.website/users/halcy/statuses/110447012380248325", "url":
        "https://icosahedron.website/@halcy/110447012380248325", "replies_count":
        0, "reblogs_count": 0, "favourites_count": 0, "edited_at": null, "favourited":
        false, "reblogged": false, "muted": false, "bookmarked": false, "content":
        "<p><span class=\"h-card\"><a href=\"https://mastodon.social/@halcy\" class=\"u-url
        mention\" rel=\"nofollow noopener\" target=\"_blank\">@<span>halcy@mastodon.social</span></a></span>
        audio post, but remote</p>", "filtered": [], "reblog": null, "account": {"id":
        "23972", "username": "halcy", "acct": "halcy@icosahedron.website", "display_name":
        "halcy\u200b :icosahedron:", "locked": false, "bot": false, "discoverable":
        true, "indexable": true, "group": false, "created_at": "2017-02-03T00:00:00.000Z",
        "note": "<p>build. your. squid.</p><p>ideal for comfortable gameplay in relaxed
        locations.</p><p>i work at, but do not speak for, microsoft.</p>", "url":
        "https://icosahedron.website/@halcy", "uri": "https://icosahedron.website/users/halcy",
        "avatar": "https://files.mastodon.social/cache/accounts/avatars/000/023/972/original/9c900052b7f670db.jpg",
        "avatar_static": "https://files.mastodon.social/cache/accounts/avatars/000/023/972/original/9c900052b7f670db.jpg",
        "header": "https://files.mastodon.social/cache/accounts/headers/000/023/972/original/e5c0d647464517c2.png",
        "header_static": "https://files.mastodon.social/cache/accounts/headers/000/023/972/original/e5c0d647464517c2.png",
        "followers_count": 3421, "following_count": 519, "statuses_count": 68338,
        "last_status_at": "2025-08-15", "hide_collections": true, "emojis": [{"shortcode":
        "icosahedron", "url": "https://files.mastodon.social/cache/custom_emojis/images/000/002/116/original/e0d448640e549b87.png",
        "static_url": "https://files.mastodon.social/cache/custom_emojis/images/000/002/116/static/e0d448640e549b87.png",
        "visible_in_picker": true}], "fields": [{"name": "Web", "value": "<a href=\"https://halcy.de/\"
        target=\"_blank\" rel=\"nofollow noopener\" translate=\"no\"><span class=\"invisible\">https://</span><span
        class=\"\">halcy.de/</span><span class=\"invisible\"></span></a>", "verified_at":
        "2025-08-14T22:55:32.558+00:00"}, {"name": "Demogroup", "value": "<a href=\"https://demoscene.vc/\"
        rel=\"nofollow noopener\" translate=\"no\" target=\"_blank\"><span class=\"invisible\">https://</span><span
        class=\"\">demoscene.vc/</span><span class=\"invisible\"></span></a>", "verified_at":
        null}, {"name": "Pronouns", "value": "He/Him", "verified_at": null}, {"name":
        "Priv", "value": "<span class=\"h-card\" translate=\"no\"><a href=\"https://icosahedron.website/@halcy2\"
        class=\"u-url mention\" rel=\"nofollow noopener\" target=\"_blank\">@<span>halcy2</span></a></span>",
        "verified_at": null}]}, "media_attachments": [{"id": "110447012463944310",
        "type": "audio", "url": "https://mastodon.social/media_proxy/110447012463944310/original",
        "preview_url": "https://mastodon.social/media_proxy/110447012463944310/small",
        "remote_url": "https://icosahedron.website/system/media_attachments/files/110/447/009/175/249/326/original/8e2be16453b30958.mp3",
        "preview_remote_url": "https://icosahedron.website/system/media_attachments/thumbnails/110/447/009/175/249/326/original/c410a00dcd8873f5.jpg",
        "text_url": null, "meta": {"colors": {"background": "#151322", "foreground":
        "#cfc0cb", "accent": "#b88659"}, "original": {"duration": 217.730612, "bitrate":
        170447}, "small": {"width": 554, "height": 416, "size": "554x416", "aspect":
        1.3317307692307692}}, "description": null, "blurhash": "UPB:Q]a#9YWBkEofWAaz0Ja#%Mj[oJR*bIa}"}],
        "mentions": [{"id": "43", "username": "halcy", "url": "https://mastodon.social/@halcy",
        "acct": "halcy"}], "tags": [], "emojis": [], "quote": null, "card": null,
        "poll": null}'
    headers:
      Connection:
      - keep-alive
      Date:
      - Fri, 15 Aug 2025 20:18:54 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Authorization, Origin, Accept-Encoding
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-etou8220126-FRA, cache-fra-eddf8230079-FRA, cache-hel1410027-HEL
      X-Timer:
      - S1755289134.916219,VS0,VE148
      accept-ranges:
      - none
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - private, no-store
      content-length:
      - '4196'
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"8af1cbce63c16c9fb2c1912b137ff3dc"
      referrer-policy:
      - same-origin
      transfer-encoding:
      - chunked
      via:
      - 1.1 varnish, 1.1 varnish, 1.1 varnish
      x-content-type-options:
      - nosniff
      x-frame-options:
      - DENY
      x-ratelimit-limit:
      - '300'
      x-ratelimit-remaining:
      - '241'
      x-ratelimit-reset:
      - '2025-08-15T20:20:00.982505Z'
      x-request-id:
      - b28170d4c4a9a6bf6e7afadfb5c00f2b
      x-runtime:
      - '0.073492'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate, br
      Authorization:
      - DUMMY
      Connection:
      - keep-alive
      User-Agent:
      - mastodonpy
    method: GET
    uri: https://mastodon.social/api/v1/statuses/110447003454258227
  response:
    body:
      string: '{"id": "110447003454258227", "created_at": "2023-05-28T15:25:28.292Z",
        "in_reply_to_id": "110447001287656894", "in_reply_to_account_id": "43", "sensitive":
        true, "spoiler_text": "", "visibility": "private", "language": "de", "uri":
        "https://mastodon.social/users/halcy/statuses/110447003454258227", "url":
        "https://mastodon.social/@halcy/110447003454258227", "replies_count": 0, "reblogs_count":
        0, "favourites_count": 0, "edited_at": null, "favourited": false, "reblogged":
        false, "muted": false, "bookmarked": false, "pinned": false, "content": "<p>image
        post</p>", "filtered": [], "reblog": null, "application": {"name": "Web",
        "website": null}, "account": {"id": "43", "username": "halcy", "acct": "halcy",
        "display_name": "autumnal halcy", "locked": true, "bot": false, "discoverable":
        false, "indexable": false, "group": false, "created_at": "2016-03-21T00:00:00.000Z",
        "note": "<p><a href=\"https://halcy.de/\" target=\"_blank\" rel=\"nofollow
        noopener\" translate=\"no\"><span class=\"invisible\">https://</span><span
        class=\"\">halcy.de/</span><span class=\"invisible\"></span></a> ~ Local account.</p><p>Now
        also and possibly primarily <span class=\"h-card\" translate=\"no\"><a href=\"https://icosahedron.website/@halcy\"
        class=\"u-url mention\">@<span>halcy</span></a></span></p>", "url": "https://mastodon.social/@halcy",
        "uri": "https://mastodon.social/users/halcy", "avatar": "https://mastodon.social/avatars/original/missing.png",
        "avatar_static": "https://mastodon.social/avatars/original/missing.png", "header":
        "https://mastodon.social/headers/original/missing.png", "header_static": "https://mastodon.social/headers/original/missing.png",
        "followers_count": 127, "following_count": 34, "statuses_count": 981, "last_status_at":
        "2025-07-18", "hide_collections": false, "noindex": false, "emojis": [{"shortcode":
        "sidekiq", "url": "https://files.mastodon.social/custom_emojis/images/000/037/182/original/7efd7097c1d613e9.png",
        "static_url": "https://files.mastodon.social/custom_emojis/images/000/037/182/static/7efd7097c1d613e9.png",
        "visible_in_picker": true}], "roles": [], "fields": [{"name": "i have a field
        now", "value": ":sidekiq:", "verified_at": null}]}, "media_attachments": [{"id":
        "110447002079181641", "type": "image", "url": "https://files.mastodon.social/media_attachments/files/110/447/002/079/181/641/original/97232afa341c291e.jpg",
        "preview_url": "https://files.mastodon.social/media_attachments/files/110/447/002/079/181/641/small/97232afa341c291e.jpg",
        "remote_url": null, "preview_remote_url": null, "text_url": null, "meta":
        {"original": {"width": 1280, "height": 720, "size": "1280x720", "aspect":
        1.7777777777777777}, "small": {"width": 640, "height": 360, "size": "640x360",
        "aspect": 1.7777777777777777}, "focus": {"x": 0.05, "y": -0.49}}, "description":
        "furry cube", "blurhash": "UvBEOP$%r9ofroa#bef$R5Wnb^ahVua#buf5"}], "mentions":
        [], "tags": [], "emojis": [], "quote": null, "card": null, "poll": null}'
    headers:
      Connection:
      - keep-alive
      Date:
      - Fri, 15 Aug 2025 20:18:54 GMT
      Strict-Transport-Security:
      - max-age=31557600
      Vary:
      - Authorization, Origin, Accept-Encoding
      X-Cache:
      - MISS, MISS, MISS
      X-Cache-Hits:
      - 0, 0, 0
      X-Served-By:
      - cache-fra-eddf8230157-FRA, cache-fra-etou8220047-FRA, cache-hel1410031-HEL
      X-Timer:
      - S1755289134.162920,VS0,VE142
      accept-ranges:
      - none
      alt-svc:
      - h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
      cache-control:
      - private, no-store
      content-length:
      - '2984'
      content-security-policy:
      - default-src 'none'; frame-ancestors 'none'; form-action 'none'
      content-type:
      - application/json; charset=utf-8
      etag:
      - W/"2ed3401c8dba9d1a34145a2d4d32fc54"
      referrer-policy:
      - same-origin
      transfer-encoding:
      - chunked
      via:
      - 1.1 varnish, 1.1 varnish, 1.1 varnish
      x-content-type-options:
      - nosniff
      x-frame-options:
      - DENY
      x-ratelimit-limit:
      - '300'
      x-ratelimit-remaining:
      - '240'
      x-ratelimit-reset:
      - '2025-08-15T20:20:00.217612Z'
      x-request-id:
      - 41acd55e1ac285423339b4494eaf3447
      x-runtime:
      - '0.074148'
      x-xss-protection:
      - '0'
    status:
      code: 200
      message: OK
version: 1