kopia lustrzana https://github.com/halcy/Mastodon.py
158 wiersze
10 KiB
YAML
158 wiersze
10 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/admin/accounts?active=True
|
|
response:
|
|
body:
|
|
string: '[{"id":"110248832517395359","username":"mastodonpy_test_2","domain":null,"created_at":"2023-04-23T15:27:59.833Z","email":"mastodonpy_test_2@localhost:3000","ip":null,"confirmed":true,"suspended":false,"silenced":false,"sensitized":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"ips":[],"account":{"id":"110248832517395359","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[],"fields":[]},"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}},{"id":"110248832373441811","username":"mastodonpy_test","domain":null,"created_at":"2023-04-23T15:27:57.665Z","email":"mastodonpy_test@localhost:3000","ip":null,"confirmed":true,"suspended":false,"silenced":false,"sensitized":false,"disabled":false,"approved":true,"locale":"ja","invite_request":null,"ips":[],"account":{"id":"110248832373441811","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/110/248/832/373/441/811/original/a3bffa303d66a3f3.jpg","header":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","header_static":"http://localhost:3000/system/accounts/headers/110/248/832/373/441/811/original/9c722424942444ff.jpg","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}},{"id":"110248832232646816","username":"admin2","domain":null,"created_at":"2023-04-23T15:27:55.482Z","email":"zerocool@example.com","ip":null,"confirmed":true,"suspended":false,"silenced":false,"sensitized":false,"disabled":false,"approved":true,"locale":"de","invite_request":null,"ips":[],"account":{"id":"110248832232646816","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}},{"id":"110248832095206210","username":"admin","domain":null,"created_at":"2023-04-23T15:27:53.311Z","email":"admin@localhost:3000","ip":null,"confirmed":true,"suspended":false,"silenced":false,"sensitized":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"ips":[],"account":{"id":"110248832095206210","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}]'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"debc235b58c099dd048fc186a71a8e0e"
|
|
Link:
|
|
- <http://localhost:3000/api/v1/admin/accounts?active=True&min_id=110248832517395359>;
|
|
rel="prev"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- 1fa91184-9eb1-4681-aae3-1efa958d976d
|
|
X-Runtime:
|
|
- '0.052472'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/accounts/verify_credentials
|
|
response:
|
|
body:
|
|
string: '{"id":"110248832095206210","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2023-04-23","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"89abca9de0b79624c18134266a7ba26c"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- de944fc3-f67d-410f-b776-065b2f7c57aa
|
|
X-Runtime:
|
|
- '0.016930'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept:
|
|
- '*/*'
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
Authorization:
|
|
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
|
|
Connection:
|
|
- keep-alive
|
|
User-Agent:
|
|
- tests/v311
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/admin/accounts/110248832095206210
|
|
response:
|
|
body:
|
|
string: '{"id":"110248832095206210","username":"admin","domain":null,"created_at":"2023-04-23T15:27:53.311Z","email":"admin@localhost:3000","ip":null,"confirmed":true,"suspended":false,"silenced":false,"sensitized":false,"disabled":false,"approved":true,"locale":null,"invite_request":null,"ips":[],"account":{"id":"110248832095206210","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2023-04-23T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2023-04-23","noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]},"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
|
|
headers:
|
|
Cache-Control:
|
|
- private, no-store
|
|
Content-Security-Policy:
|
|
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
ETag:
|
|
- W/"653cbd9fca7ef9d83fe9241a37daa015"
|
|
Referrer-Policy:
|
|
- strict-origin-when-cross-origin
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Vary:
|
|
- Accept, Origin
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
X-Download-Options:
|
|
- noopen
|
|
X-Frame-Options:
|
|
- SAMEORIGIN
|
|
X-Permitted-Cross-Domain-Policies:
|
|
- none
|
|
X-Request-Id:
|
|
- 0742726e-4e70-4f87-a3c9-dd7de729d171
|
|
X-Runtime:
|
|
- '0.017650'
|
|
X-XSS-Protection:
|
|
- 1; mode=block
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
version: 1
|