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:
body: {string: '{"id":"9","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A","client_secret":"8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ","vapid_key":"BMimvNvIJnE4R13etr8xTuyqzJ41IjYCpSBH0LICimXu2yzRI8mDhMJzRYfKhoNrs0TMpvkaa5asJ7Dl6PorcZE="}'}
headers:
Cache-Control: ['no-cache, no-store']
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]
X-Request-Id: [ff274a7b-ad41-4bcb-a680-0869d9375fde]
X-Runtime: ['0.026146']
X-XSS-Protection: [1; mode=block]
content-length: ['331']
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:
body: {string: '{"uri":"localhost","title":"Mastodon","description":"","email":"","version":"2.9.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":16,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"contact_account":null}'}
headers:
Cache-Control: ['max-age=300, public']
Content-Type: [application/json; charset=utf-8]
Date: ['Sat, 22 Jun 2019 21:12:12 GMT']
ETag: [W/"78fbeabe9ecd4beafbc2259c901ebc50"]
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]
X-Request-Id: [960cb677-c620-4aa0-8656-ef57cadcccfd]
X-Runtime: ['0.025556']
X-XSS-Protection: [1; mode=block]
content-length: ['349']
status: {code: 200, message: OK}
- request:
body: scope=read+write+follow+push&client_id=8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A&client_secret=8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ&grant_type=client_credentials
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['170']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/oauth/token
response:
body: {string: '{"access_token":"JxJ3-HVb1v8E2fL0TWZupTiv37HnmQgkQp3LBkRNbeg","token_type":"Bearer","scope":"read
write follow push","created_at":1561237932}'}
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"07eae9f7e1ab03fe9cfe8a38da0e6a36"]
Pragma: [no-cache]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Request-Id: [7076d445-9898-4104-8295-bc06906b6e55]
X-Runtime: ['0.027344']
content-length: ['141']
status: {code: 200, message: OK}
- request:
body: locale=en&agreement=1&email=email%40localhost90885&password=swordfish&username=coolguy90885&client_id=8JNtbrDxmk5qfqv2XrD8VjxoB9yDAGWX-BHLUEZLi4A&client_secret=8M1U9VJ0OJFijsI-CfSnh46jaqMYdw_RA7TkX8Q9xaQ
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer JxJ3-HVb1v8E2fL0TWZupTiv37HnmQgkQp3LBkRNbeg]
Connection: [keep-alive]
Content-Length: ['203']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/accounts
response:
body: {string: '{"access_token":"mtid2fVfjteKNHuJX-0XNAQ529z3dO2Zpzq80ylNH_I","token_type":"Bearer","scope":"read
write follow push","created_at":1561237932}'}
headers:
Cache-Control: ['private, no-store']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"9ce4d72a21d00ff937dbcd69861b3385"]
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]
X-Request-Id: [574081ae-1f36-4a92-a843-b476500a83c1]
X-Runtime: ['0.113198']
X-XSS-Protection: [1; mode=block]
content-length: ['141']
status: {code: 200, message: OK}
version: 1