| 1 | { |
| 2 | "http_interactions": [ |
| 3 | { |
| 4 | "recorded_at": "2016-03-19T04:34:19", |
| 5 | "request": { |
| 6 | "body": { |
| 7 | "encoding": "utf-8", |
| 8 | "string": "grant_type=password&password=<PASSWORD>&username=<USERNAME>" |
| 9 | }, |
| 10 | "headers": { |
| 11 | "Accept": "*/*", |
| 12 | "Accept-Encoding": "gzip, deflate", |
| 13 | "Authorization": "Basic <BASIC_AUTH>", |
| 14 | "Connection": "keep-alive", |
| 15 | "Content-Length": "57", |
| 16 | "Content-Type": "application/x-www-form-urlencoded", |
| 17 | "Cookie": "loid=ol4hwS2uWoHYPNaM8g; __cfduid=dd555eb868b1bcfd517d08fcb174c3afc1454806972", |
| 18 | "User-Agent": "prawcore:test (by /u/bboe) prawcore/0.0.6" |
| 19 | }, |
| 20 | "method": "POST", |
| 21 | "uri": "https://www.reddit.com/api/v1/access_token" |
| 22 | }, |
| 23 | "response": { |
| 24 | "body": { |
| 25 | "base64_string": "H4sIAAAAAAAAA6tWSkxOTi0uji/Jz07NU7JSUDI3NjCyMDPXzcoKLK+Icgo2TA53NKt00s10ytONL/UxNoyyUNJRUAKrjy+pLEgFaUpKTSxKLQKJp1YUZBalFsdnggwzNjMw0FFQKk7OhyjTUqoFAIzgL/txAAAA", |
| 26 | "encoding": "UTF-8", |
| 27 | "string": "" |
| 28 | }, |
| 29 | "headers": { |
| 30 | "CF-RAY": "285e36134fb239c4-PHX", |
| 31 | "Connection": "keep-alive", |
| 32 | "Content-Encoding": "gzip", |
| 33 | "Content-Type": "application/json; charset=UTF-8", |
| 34 | "Date": "Sat, 19 Mar 2016 04:34:19 GMT", |
| 35 | "Server": "cloudflare-nginx", |
| 36 | "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", |
| 37 | "Transfer-Encoding": "chunked", |
| 38 | "X-Moose": "majestic", |
| 39 | "cache-control": "max-age=0, must-revalidate", |
| 40 | "x-content-type-options": "nosniff", |
| 41 | "x-frame-options": "SAMEORIGIN", |
| 42 | "x-xss-protection": "1; mode=block" |
| 43 | }, |
| 44 | "status": { |
| 45 | "code": 200, |
| 46 | "message": "OK" |
| 47 | }, |
| 48 | "url": "https://www.reddit.com/api/v1/access_token" |
| 49 | } |
| 50 | }, |
| 51 | { |
| 52 | "recorded_at": "2016-03-19T04:34:19", |
| 53 | "request": { |
| 54 | "body": { |
| 55 | "encoding": "utf-8", |
| 56 | "string": "api_type=json&kind=self&sr=reddit_api_test&text=Test%21&title=A+Test+from+PRAWCORE." |
| 57 | }, |
| 58 | "headers": { |
| 59 | "Accept": "*/*", |
| 60 | "Accept-Encoding": "gzip, deflate", |
| 61 | "Authorization": "bearer 7302867-jjQwxZBS1cWA6yB-iBn-_uL31Z8", |
| 62 | "Connection": "keep-alive", |
| 63 | "Content-Length": "83", |
| 64 | "Content-Type": "application/x-www-form-urlencoded", |
| 65 | "Cookie": "loid=ol4hwS2uWoHYPNaM8g; __cfduid=dd555eb868b1bcfd517d08fcb174c3afc1454806972", |
| 66 | "User-Agent": "prawcore:test (by /u/bboe) prawcore/0.0.6" |
| 67 | }, |
| 68 | "method": "POST", |
| 69 | "uri": "https://oauth.reddit.com/api/submit?raw_json=1" |
| 70 | }, |
| 71 | "response": { |
| 72 | "body": { |
| 73 | "base64_string": "H4sIAAAAAAAAAy3MQQoDIQyF4atI1sOE0q68SimSqkMtjUpMcTF49+JMl//H4+3wbiWDNTtEkSINrLk/FgOBlA7+ygesgZdqbRax975KDCHp6guj4BmOanIam6IvzDFrw9vzohsjHew2KeyqUPdFIsJiIIX5e65mZ+I4Ra/uj2OMH9cEaiKgAAAA", |
| 74 | "encoding": "UTF-8", |
| 75 | "string": "" |
| 76 | }, |
| 77 | "headers": { |
| 78 | "CF-RAY": "285e3616d03939d0-PHX", |
| 79 | "Connection": "keep-alive", |
| 80 | "Content-Encoding": "gzip", |
| 81 | "Content-Type": "application/json; charset=UTF-8", |
| 82 | "Date": "Sat, 19 Mar 2016 04:34:19 GMT", |
| 83 | "Server": "cloudflare-nginx", |
| 84 | "Strict-Transport-Security": "max-age=15552000; includeSubDomains; preload", |
| 85 | "Transfer-Encoding": "chunked", |
| 86 | "X-Moose": "majestic", |
| 87 | "cache-control": "private, s-maxage=0, max-age=0, must-revalidate", |
| 88 | "expires": "-1", |
| 89 | "x-content-type-options": "nosniff", |
| 90 | "x-frame-options": "SAMEORIGIN", |
| 91 | "x-ratelimit-remaining": "599.0", |
| 92 | "x-ratelimit-reset": "341", |
| 93 | "x-ratelimit-used": "1", |
| 94 | "x-ua-compatible": "IE=edge", |
| 95 | "x-xss-protection": "1; mode=block" |
| 96 | }, |
| 97 | "status": { |
| 98 | "code": 200, |
| 99 | "message": "OK" |
| 100 | }, |
| 101 | "url": "https://oauth.reddit.com/api/submit?raw_json=1" |
| 102 | } |
| 103 | } |
| 104 | ], |
| 105 | "recorded_with": "betamax/0.5.1" |
| 106 | } |