90 líneas
5,7 KiB
YAML
90 líneas
5,7 KiB
YAML
interactions:
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
User-Agent: [python-requests/2.9.1]
|
|
method: GET
|
|
uri: http://localhost:3000/api/v1/instance/
|
|
response:
|
|
body: {string: '{"uri":"localhost:3000","title":"Mastodon","description":"","email":"","version":"2.3.3","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":176,"domain_count":0},"thumbnail":"http://localhost:3000/packs/preview.jpg","languages":["en"],"contact_account":null}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"e7438609654ceaf29ee8473be78c6782"]
|
|
Transfer-Encoding: [chunked]
|
|
Vary: ['Accept-Encoding, Origin']
|
|
X-Content-Type-Options: [nosniff]
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
X-Request-Id: [538a00d7-e3d9-40ab-b4a7-5ebe31b49edf]
|
|
X-Runtime: ['0.111461']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['293']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: status=it%27s+cool+guy
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
Content-Length: ['22']
|
|
Content-Type: [application/x-www-form-urlencoded]
|
|
User-Agent: [python-requests/2.9.1]
|
|
method: POST
|
|
uri: http://localhost:3000/api/v1/statuses
|
|
response:
|
|
body: {string: '{"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979654724997948","content":"\u003cp\u003eit\u0026apos;s
|
|
cool guy\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
|
|
test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
|
|
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
|
|
headers:
|
|
Cache-Control: ['max-age=0, private, must-revalidate']
|
|
Content-Type: [application/json; charset=utf-8]
|
|
ETag: [W/"ae8929212adac738456aad6638db6a8b"]
|
|
Transfer-Encoding: [chunked]
|
|
Vary: ['Accept-Encoding, Origin']
|
|
X-Content-Type-Options: [nosniff]
|
|
X-Frame-Options: [SAMEORIGIN]
|
|
X-Request-Id: [77dcd227-6ee2-4358-a2de-6cc958590e0b]
|
|
X-Runtime: ['0.131181']
|
|
X-XSS-Protection: [1; mode=block]
|
|
content-length: ['1420']
|
|
status: {code: 200, message: OK}
|
|
- request:
|
|
body: null
|
|
headers:
|
|
Accept: ['*/*']
|
|
Accept-Encoding: ['gzip, deflate']
|
|
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
|
|
Connection: [keep-alive]
|
|
User-Agent: [python-requests/2.9.1]
|
|
method: GET
|
|
uri: http://localhost:4000/api/v1/streaming/user
|
|
response:
|
|
body: {string: 'event: update
|
|
|
|
data: {"id":"99979654724997948","created_at":"2018-05-06T01:01:01.999Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"fy","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979654724997948","content":"<p>it's
|
|
cool guy</p>","url":"http://localhost:3000/@mastodonpy_test/99979654724997948","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
|
|
test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
|
|
Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"<p>I
|
|
walk funny</p>","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}
|
|
|
|
|
|
'}
|
|
headers:
|
|
Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control']
|
|
Access-Control-Allow-Methods: ['GET, OPTIONS']
|
|
Access-Control-Allow-Origin: ['*']
|
|
Connection: [keep-alive]
|
|
Content-Type: [text/event-stream]
|
|
Date: ['Sun, 06 May 2018 01:01:02 GMT']
|
|
Transfer-Encoding: [chunked]
|
|
X-Powered-By: [Express]
|
|
X-Request-Id: [05121de6-5df0-4cac-a32b-a5830a322c71]
|
|
status: {code: 200, message: OK}
|
|
version: 1
|