Files
tuir/tests/cassettes/test_oauth_authorize.yaml
2016-07-19 21:49:14 -07:00

79 lines
3.2 KiB
YAML

interactions:
- request:
body: !!binary |
cmVkaXJlY3RfdXJpPWh0dHAlM0ElMkYlMkYxMjcuMC4wLjElM0E2NTAwMCUyRiZncmFudF90eXBl
PXJlZnJlc2hfdG9rZW4mcmVmcmVzaF90b2tlbj0qKioqKioqKioq
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: ['**********']
Connection: [keep-alive]
Content-Length: ['122']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [rtv test suite PRAW/3.3.0 Python/3.4.0 b'Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty']
method: POST
uri: https://api.reddit.com/api/v1/access_token/
response:
body:
string: !!binary |
H4sIAAAAAAAAAyWMTQuCUBBF/8rw1gVKJdGuoEWbIAj62MjTd6mh7MnMKGr038NaXTicc9/OlyVU
c4sPvNyK3HyeLZM0XUxPcX3Y8fl63x9n2+bUPYdnurbNsMkubkLuF+TW1xirAl4gI0dXs0BzHt9m
WZJMyGkZ/xoCG91ZLUpPHPAytp6qXptCEAKbUi3cekMFVX+DksAHEtRRjNS3IG2Kim0cLYULUBsN
7vMF6g45KMoAAAA=
headers:
CF-RAY: [24e5687b6591012b-SJC]
Connection: [keep-alive]
Content-Encoding: [gzip]
Content-Type: [application/json; charset=UTF-8]
Date: ['Wed, 02 Dec 2015 07:44:42 GMT']
Server: [cloudflare-nginx]
Set-Cookie: ['__cfduid=dec07de54f5bcc3b4f496dc4a2de773461449042282; expires=Thu,
01-Dec-16 07:44:42 GMT; path=/; domain=.reddit.com; HttpOnly']
Strict-Transport-Security: [max-age=15552000; includeSubDomains; preload]
X-Moose: [majestic]
cache-control: ['max-age=0, must-revalidate']
x-content-type-options: [nosniff]
x-frame-options: [SAMEORIGIN]
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: ['**********']
Connection: [keep-alive]
User-Agent: [rtv test suite PRAW/3.3.0 Python/3.4.0 b'Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty']
method: GET
uri: https://oauth.reddit.com/api/v1/me.json
response:
body:
string: !!binary |
H4sIAAAAAAAAA12QwWrDMBBEf0Xs2YTYuLTxZ5TSq5CtdbNE2k1XUhoI/fei1C5xjxp23ozmBkeX
bHQUYDCzCwkbA+wiwmDgFb2n/IYaiV14J/xChcbApOgyehhM2/fd89O+Oxx2+8bAkTzaWSValVFy
emBSsqmkM7K/G1d5QdmSpxXXtf2Kq9XE/68XiE/25DS6aqkQiRE5/2nVKxdU275sG3xI8Fslykao
D/gMjGP9Zz23eD2TukzCMBguIdQ7HuVqJymcl7ha9YJKM6G3uBTOWnDFTHofMy33v1skEn4IWFao
Id8/dZfx5JkBAAA=
headers:
CF-RAY: [24e56881fe1f2888-SJC]
Connection: [keep-alive]
Content-Encoding: [gzip]
Content-Type: [application/json; charset=UTF-8]
Date: ['Wed, 02 Dec 2015 07:44:44 GMT']
Server: [cloudflare-nginx]
Set-Cookie: ['__cfduid=d69b01e4f4e78cc083016d3974b83143f1449042283; expires=Thu,
01-Dec-16 07:44:43 GMT; path=/; domain=.reddit.com; HttpOnly']
Strict-Transport-Security: [max-age=15552000; includeSubDomains; preload]
X-Moose: [majestic]
cache-control: ['private, s-maxage=0, max-age=0, must-revalidate', 'max-age=0,
must-revalidate']
expires: ['-1']
x-content-type-options: [nosniff]
x-frame-options: [SAMEORIGIN]
x-ratelimit-remaining: ['594.0']
x-ratelimit-reset: ['316']
x-ratelimit-used: ['6']
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
version: 1