2019-04-28 17:56:20 +02:00
interactions :
- request :
body : client_name=mastodon.py+generated+test+app&scopes=read+write+follow+push&redirect_uris=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
headers :
Accept : [ '*/*' ]
Accept-Encoding : [ 'gzip, deflate' ]
Connection : [ keep-alive]
Content-Length : [ '122' ]
Content-Type : [ application/x-www-form-urlencoded]
User-Agent : [ python-requests/2.18.4]
method : POST
uri : http://localhost:3000/api/v1/apps
response :
2019-06-22 15:28:27 +02:00
body : {string : '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno","client_secret":"wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg","vapid_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}' }
2019-04-28 17:56:20 +02:00
headers :
2019-06-22 15:28:27 +02:00
Cache-Control : [ 'no-cache, no-store' ]
2019-04-28 17:56:20 +02:00
Content-Type : [ application/json; charset=utf-8]
Referrer-Policy : [ strict-origin-when-cross-origin]
Transfer-Encoding : [ chunked]
Vary : [ 'Accept-Encoding, Origin' ]
X-Content-Type-Options : [ nosniff]
X-Download-Options : [ noopen]
X-Frame-Options : [ SAMEORIGIN]
X-Permitted-Cross-Domain-Policies : [ none]
2019-06-22 15:28:27 +02:00
X-Request-Id : [ a41339dc-18ff-4a71-b422-5fca1826da83]
X-Runtime : [ '0.035222' ]
2019-04-28 17:56:20 +02:00
X-XSS-Protection : [ 1 ; mode=block]
2019-06-22 15:28:27 +02:00
content-length : [ '331' ]
2019-04-28 17:56:20 +02:00
status : {code: 200, message : OK}
- request :
body : null
headers :
Accept : [ '*/*' ]
Accept-Encoding : [ 'gzip, deflate' ]
Connection : [ keep-alive]
User-Agent : [ python-requests/2.18.4]
method : GET
uri : http://localhost:3000/api/v1/instance/
response :
2019-06-22 15:28:27 +02:00
body : {string : '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":2,"status_count":0,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}' }
2019-04-28 17:56:20 +02:00
headers :
Cache-Control : [ 'max-age=300, public' ]
Content-Type : [ application/json; charset=utf-8]
2019-06-22 15:28:27 +02:00
Date : [ 'Sat, 22 Jun 2019 13:02:57 GMT' ]
ETag : [ W/"e93399c77de2e714afcd550a34706e7e"]
2019-04-28 17:56:20 +02:00
Referrer-Policy : [ strict-origin-when-cross-origin]
Transfer-Encoding : [ chunked]
Vary : [ 'Accept-Encoding, Origin' ]
X-Content-Type-Options : [ nosniff]
X-Download-Options : [ noopen]
X-Frame-Options : [ SAMEORIGIN]
X-Permitted-Cross-Domain-Policies : [ none]
2019-06-22 15:28:27 +02:00
X-Request-Id : [ 26ef20ce-d90c-498f-ab53-c5d727278a8b]
X-Runtime : [ '0.031760' ]
2019-04-28 17:56:20 +02:00
X-XSS-Protection : [ 1 ; mode=block]
2019-06-22 15:28:27 +02:00
content-length : [ '348' ]
2019-04-28 17:56:20 +02:00
status : {code: 200, message : OK}
- request :
2019-06-22 15:28:27 +02:00
body : scope=read+write+follow+push&client_id=xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno&client_secret=wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg&grant_type=client_credentials
2019-04-28 17:56:20 +02:00
headers :
Accept : [ '*/*' ]
Accept-Encoding : [ 'gzip, deflate' ]
Connection : [ keep-alive]
2019-06-22 15:28:27 +02:00
Content-Length : [ '170' ]
2019-04-28 17:56:20 +02:00
Content-Type : [ application/x-www-form-urlencoded]
User-Agent : [ python-requests/2.18.4]
method : POST
uri : http://localhost:3000/oauth/token
response :
2019-06-22 15:28:27 +02:00
body : {string : '{"access_token":"YHnkkuWLHjRZ-HsIzyWsT56OQn6oAXT8tvkIe__4k9g","token_type":"Bearer","scope":"read
write follow push","created_at":1561208577}'}
2019-04-28 17:56:20 +02:00
headers :
Cache-Control : [ 'private, no-store' ]
Content-Type : [ application/json; charset=utf-8]
2019-06-22 15:28:27 +02:00
ETag : [ W/"8f1d2693f3916319d5b2fb72627a180d"]
2019-04-28 17:56:20 +02:00
Pragma : [ no -cache]
Transfer-Encoding : [ chunked]
Vary : [ 'Accept-Encoding, Origin' ]
2019-06-22 15:28:27 +02:00
X-Request-Id : [ d77ecf21-4bfc-476d-8361-3904e3db27f6]
X-Runtime : [ '0.021695' ]
content-length : [ '141' ]
2019-04-28 17:56:20 +02:00
status : {code: 200, message : OK}
- request :
2019-06-22 15:28:27 +02:00
body : locale=en&agreement=1&email=email%40localhost42187&password=swordfish&username=coolguy42187&client_id=xA0mMcOmeZ5Uftxw6MZ2KDLoEBTM0p1vKHeUXhiEOno&client_secret=wSNQzlWZEQsDKfWEWXZ0ALj-9uv4zQ94u5UhQS-xASg
2019-04-28 17:56:20 +02:00
headers :
Accept : [ '*/*' ]
Accept-Encoding : [ 'gzip, deflate' ]
2019-06-22 15:28:27 +02:00
Authorization : [ Bearer YHnkkuWLHjRZ-HsIzyWsT56OQn6oAXT8tvkIe__4k9g]
2019-04-28 17:56:20 +02:00
Connection : [ keep-alive]
2019-06-22 15:28:27 +02:00
Content-Length : [ '203' ]
2019-04-28 17:56:20 +02:00
Content-Type : [ application/x-www-form-urlencoded]
User-Agent : [ python-requests/2.18.4]
method : POST
uri : http://localhost:3000/api/v1/accounts
response :
2019-06-22 15:28:27 +02:00
body : {string : '{"access_token":"TXtHQr05S6ckK771XAa73qdvnMfjJU7dqr3aVlsqRD4","token_type":"Bearer","scope":"read
write follow push","created_at":1561208577}'}
2019-04-28 17:56:20 +02:00
headers :
Cache-Control : [ 'private, no-store' ]
Content-Type : [ application/json; charset=utf-8]
2019-06-22 15:28:27 +02:00
ETag : [ W/"d45ffa5abcf400da6438b73b80ec142c"]
2019-04-28 17:56:20 +02:00
Pragma : [ no -cache]
Referrer-Policy : [ strict-origin-when-cross-origin]
Transfer-Encoding : [ chunked]
Vary : [ 'Accept-Encoding, Origin' ]
X-Content-Type-Options : [ nosniff]
X-Download-Options : [ noopen]
X-Frame-Options : [ SAMEORIGIN]
X-Permitted-Cross-Domain-Policies : [ none]
2019-06-22 15:28:27 +02:00
X-Request-Id : [ 1b5653f1-c622-4415-b972-7dd0a5e31202]
X-Runtime : [ '0.205759' ]
2019-04-28 17:56:20 +02:00
X-XSS-Protection : [ 1 ; mode=block]
2019-06-22 15:28:27 +02:00
content-length : [ '141' ]
2019-04-28 17:56:20 +02:00
status : {code: 200, message : OK}
version : 1