2017-11-27 20:43:27 +01:00
|
|
|
interactions:
|
|
|
|
- request:
|
2017-11-29 21:42:20 +01:00
|
|
|
body: !!python/unicode username=admin%40localhost%3A3000&password=mastodonadmin&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=__MASTODON_PY_TEST_CLIENT_ID&scope=read+write+follow&client_secret=__MASTODON_PY_TEST_CLIENT_SECRET&grant_type=password
|
2017-11-27 20:43:27 +01:00
|
|
|
headers:
|
|
|
|
Accept: ['*/*']
|
|
|
|
Accept-Encoding: ['gzip, deflate']
|
|
|
|
Connection: [keep-alive]
|
2017-11-29 21:42:20 +01:00
|
|
|
Content-Length: ['235']
|
2017-11-27 20:43:27 +01:00
|
|
|
Content-Type: [application/x-www-form-urlencoded]
|
|
|
|
User-Agent: [python-requests/2.18.4]
|
|
|
|
method: POST
|
|
|
|
uri: http://localhost:3000/oauth/token
|
|
|
|
response:
|
2017-11-29 21:42:20 +01:00
|
|
|
body: {string: !!python/unicode '{"access_token":"__MASTODON_PY_TEST_ACCESS_TOKEN_2","token_type":"bearer","scope":"read
|
|
|
|
write follow","created_at":1511992220}'}
|
2017-11-27 20:43:27 +01:00
|
|
|
headers:
|
2017-11-29 21:42:20 +01:00
|
|
|
cache-control: [no-store]
|
|
|
|
content-length: ['126']
|
|
|
|
content-type: [application/json; charset=utf-8]
|
|
|
|
etag: [W/"7f19440d01a73bd9685be7280866fa5b"]
|
|
|
|
pragma: [no-cache]
|
|
|
|
transfer-encoding: [chunked]
|
|
|
|
vary: ['Accept-Encoding, Origin']
|
|
|
|
x-request-id: [d33af1b6-ae04-495f-9a8c-720b570e98a9]
|
|
|
|
x-runtime: ['0.244819']
|
2017-11-27 20:43:27 +01:00
|
|
|
status: {code: 200, message: OK}
|
|
|
|
version: 1
|