nnreddit/tests/cassettes/cancel.json

1 line
15 KiB
JSON

{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["identity"], "Accept": ["*/*"], "User-Agent": ["Linux:nnreddit:0.1.0 PRAW/6.2.0 PRAW/6.2.0 prawcore/1.0.1"], "Connection": ["keep-alive"], "Cookie": ["edgebucket=hbJw9F3ioxDtTELuFS"], "Authorization": ["bearer **********"]}, "method": "GET", "uri": "https://oauth.reddit.com/comments/blfat0/?sort=best&raw_json=1&limit=2048"}, "response": {"body": {"string": "{\"message\": \"Unauthorized\", \"error\": 401}", "encoding": "UTF-8"}, "headers": {"Content-Length": ["41"], "x-xss-protection": ["1; mode=block"], "X-Cache": ["MISS"], "x-content-type-options": ["nosniff"], "access-control-expose-headers": ["X-Moose"], "Accept-Ranges": ["bytes"], "X-Timer": ["S1561588500.108061,VS0,VE41"], "X-Served-By": ["cache-ewr18145-EWR"], "X-Moose": ["majestic"], "access-control-allow-origin": ["*"], "Connection": ["keep-alive"], "Via": ["1.1 varnish"], "X-Cache-Hits": ["0"], "x-ua-compatible": ["IE=edge"], "Strict-Transport-Security": ["max-age=15552000; includeSubDomains; preload"], "cache-control": ["max-age=0, must-revalidate"], "Date": ["Wed, 26 Jun 2019 22:35:00 GMT"], "x-frame-options": ["SAMEORIGIN"], "Server": ["snooserv"], "Content-Type": ["application/json; charset=UTF-8"], "www-authenticate": ["Bearer realm=\"reddit\", error=\"invalid_token\""]}, "status": {"message": "Unauthorized", "code": 401}, "url": "https://oauth.reddit.com/comments/blfat0/?sort=best&raw_json=1&limit=2048"}, "recorded_at": "2019-06-26T22:35:00"}, {"request": {"body": {"string": "grant_type=refresh_token&refresh_token=**********", "encoding": "utf-8"}, "headers": {"Content-Length": ["79"], "Accept-Encoding": ["identity"], "Accept": ["*/*"], "User-Agent": ["Linux:nnreddit:0.1.0 PRAW/6.2.0 PRAW/6.2.0 prawcore/1.0.1"], "Connection": ["keep-alive"], "Cookie": ["edgebucket=hbJw9F3ioxDtTELuFS"], "Content-Type": ["application/x-www-form-urlencoded"], "Authorization": ["**********"]}, "method": "POST", "uri": "https://www.reddit.com/api/v1/access_token"}, "response": {"body": {"string": "{\"access_token\": \"**********\", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"edit history identity mysubreddits privatemessages read report save submit subscribe vote\"}", "encoding": "UTF-8"}, "headers": {"Content-Length": ["206"], "x-xss-protection": ["1; mode=block"], "X-Cache": ["MISS"], "x-content-type-options": ["nosniff"], "Accept-Ranges": ["bytes"], "X-Timer": ["S1561588502.977129,VS0,VE51"], "X-Served-By": ["cache-lga21928-LGA"], "X-Moose": ["majestic"], "Connection": ["keep-alive"], "Via": ["1.1 varnish"], "X-Cache-Hits": ["0"], "Strict-Transport-Security": ["max-age=15552000; includeSubDomains; preload"], "cache-control": ["max-age=0, must-revalidate"], "Date": ["Wed, 26 Jun 2019 22:35:02 GMT"], "x-frame-options": ["SAMEORIGIN"], "Server": ["snooserv"], "Content-Type": ["application/json; charset=UTF-8"]}, "status": {"message": "OK", "code": 200}, "url": "https://www.reddit.com/api/v1/access_token"}, "recorded_at": "2019-06-26T22:35:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["identity"], "Accept": ["*/*"], "User-Agent": ["Linux:nnreddit:0.1.0 PRAW/6.2.0 PRAW/6.2.0 prawcore/1.0.1"], "Connection": ["keep-alive"], "Cookie": ["edgebucket=hbJw9F3ioxDtTELuFS"], "Authorization": ["bearer **********"]}, "method": "GET", "uri": "https://oauth.reddit.com/comments/blfat0/?sort=best&raw_json=1&limit=2048"}, "response": {"body": {"string": "[{\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"dist\": 1, \"children\": [{\"kind\": \"t3\", \"data\": {\"approved_at_utc\": null, \"subreddit\": \"PostPreview\", \"selftext\": \" [https://icdn8.digitaltrends.com/image/history-of-virtual-reality-super-cockpit-720x720.jpg](https://icdn8.digitaltrends.com/image/history-of-virtual-reality-super-cockpit-720x720.jpg)\", \"user_reports\": [], \"saved\": false, \"mod_reason_title\": null, \"gilded\": 0, \"clicked\": false, \"title\": \"Testing inline image links. Is it a url link or an inline image render?\", \"link_flair_richtext\": [], \"subreddit_name_prefixed\": \"r/PostPreview\", \"hidden\": false, \"pwls\": null, \"link_flair_css_class\": null, \"downs\": 0, \"thumbnail_height\": null, \"parent_whitelist_status\": null, \"hide_score\": false, \"name\": \"t3_blfat0\", \"quarantine\": false, \"link_flair_text_color\": \"dark\", \"upvote_ratio\": 1.0, \"author_flair_background_color\": null, \"subreddit_type\": \"public\", \"ups\": 2, \"total_awards_received\": 0, \"media_embed\": {}, \"thumbnail_width\": null, \"author_flair_template_id\": null, \"is_original_content\": false, \"author_fullname\": \"t2_250hgx\", \"secure_media\": null, \"is_reddit_media_domain\": false, \"is_meta\": false, \"category\": null, \"secure_media_embed\": {}, \"link_flair_text\": null, \"can_mod_post\": false, \"score\": 2, \"approved_by\": null, \"thumbnail\": \"self\", \"edited\": false, \"author_flair_css_class\": null, \"author_flair_richtext\": [], \"gildings\": {}, \"post_hint\": \"self\", \"content_categories\": null, \"is_self\": true, \"mod_note\": null, \"created\": 1557193781.0, \"link_flair_type\": \"text\", \"wls\": null, \"banned_by\": null, \"author_flair_type\": \"text\", \"domain\": \"self.PostPreview\", \"selftext_html\": \"\\u003C!-- SC_OFF --\\u003E\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003E\\u003Ca href=\\\"https://icdn8.digitaltrends.com/image/history-of-virtual-reality-super-cockpit-720x720.jpg\\\"\\u003Ehttps://icdn8.digitaltrends.com/image/history-of-virtual-reality-super-cockpit-720x720.jpg\\u003C/a\\u003E\\u003C/p\\u003E\\n\\u003C/div\\u003E\\u003C!-- SC_ON --\\u003E\", \"likes\": null, \"suggested_sort\": \"confidence\", \"banned_at_utc\": null, \"view_count\": null, \"archived\": false, \"no_follow\": true, \"is_crosspostable\": true, \"pinned\": false, \"over_18\": false, \"preview\": {\"images\": [{\"source\": {\"url\": \"https://external-preview.redd.it/VS-btwZZkqPDL2Vd66P5CJRiy5_y97gubmfmabrWvwk.jpg?auto=webp\\u0026s=d3c10ad19e8b8eca7d67c9c02e5e3855da850f74\", \"width\": 720, \"height\": 480}, \"resolutions\": [{\"url\": \"https://external-preview.redd.it/VS-btwZZkqPDL2Vd66P5CJRiy5_y97gubmfmabrWvwk.jpg?width=108\\u0026crop=smart\\u0026auto=webp\\u0026s=7114703deabd7dabcdb76a4a297e1d9972e2b894\", \"width\": 108, \"height\": 72}, {\"url\": \"https://external-preview.redd.it/VS-btwZZkqPDL2Vd66P5CJRiy5_y97gubmfmabrWvwk.jpg?width=216\\u0026crop=smart\\u0026auto=webp\\u0026s=68c8d4a2411529b4604cc99596a75cd05521c732\", \"width\": 216, \"height\": 144}, {\"url\": \"https://external-preview.redd.it/VS-btwZZkqPDL2Vd66P5CJRiy5_y97gubmfmabrWvwk.jpg?width=320\\u0026crop=smart\\u0026auto=webp\\u0026s=1723b2ec798f9d1ec140cc51eea133f1568769dd\", \"width\": 320, \"height\": 213}, {\"url\": \"https://external-preview.redd.it/VS-btwZZkqPDL2Vd66P5CJRiy5_y97gubmfmabrWvwk.jpg?width=640\\u0026crop=smart\\u0026auto=webp\\u0026s=edead561607977d7d32b995e9fa3827e494870c5\", \"width\": 640, \"height\": 426}], \"variants\": {}, \"id\": \"K2EIcIbKe-BpkJJ7Ks_tiI6dFeXtEYZt2OiHV5_IJzo\"}], \"enabled\": false}, \"all_awardings\": [], \"media\": null, \"media_only\": false, \"can_gild\": true, \"spoiler\": false, \"locked\": false, \"author_flair_text\": null, \"visited\": false, \"num_reports\": null, \"distinguished\": null, \"subreddit_id\": \"t5_2waml\", \"mod_reason_by\": null, \"removal_reason\": null, \"link_flair_background_color\": \"\", \"id\": \"blfat0\", \"is_robot_indexable\": true, \"report_reasons\": null, \"author\": \"MeddyEvalNight\", \"num_crossposts\": 0, \"num_comments\": 2, \"send_replies\": true, \"contest_mode\": false, \"author_patreon_flair\": false, \"author_flair_text_color\": null, \"permalink\": \"/r/PostPreview/comments/blfat0/testing_inline_image_links_is_it_a_url_link_or_an/\", \"whitelist_status\": null, \"stickied\": false, \"url\": \"https://www.reddit.com/r/PostPreview/comments/blfat0/testing_inline_image_links_is_it_a_url_link_or_an/\", \"subreddit_subscribers\": 721, \"created_utc\": 1557164981.0, \"mod_reports\": [], \"is_video\": false}}], \"after\": null, \"before\": null}}, {\"kind\": \"Listing\", \"data\": {\"modhash\": null, \"dist\": null, \"children\": [{\"kind\": \"t1\", \"data\": {\"total_awards_received\": 0, \"approved_at_utc\": null, \"ups\": 1, \"mod_reason_by\": null, \"banned_by\": null, \"author_flair_type\": \"text\", \"removal_reason\": null, \"link_id\": \"t3_blfat0\", \"author_flair_template_id\": null, \"likes\": null, \"no_follow\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"emnwgbf\", \"banned_at_utc\": null, \"mod_reason_title\": null, \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"MeddyEvalNight\", \"can_mod_post\": false, \"send_replies\": true, \"parent_id\": \"t3_blfat0\", \"score\": 1, \"author_fullname\": \"t2_250hgx\", \"approved_by\": null, \"all_awardings\": [], \"subreddit_id\": \"t5_2waml\", \"body\": \"Not what I wanted... next test.\", \"edited\": false, \"author_flair_css_class\": null, \"is_submitter\": true, \"downs\": 0, \"author_flair_richtext\": [], \"author_patreon_flair\": false, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003ENot what I wanted... next test.\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"subreddit_type\": \"public\", \"can_gild\": true, \"gildings\": {}, \"author_flair_text_color\": null, \"score_hidden\": false, \"permalink\": \"/r/PostPreview/comments/blfat0/testing_inline_image_links_is_it_a_url_link_or_an/emnwgbf/\", \"num_reports\": null, \"locked\": false, \"name\": \"t1_emnwgbf\", \"created\": 1557193820.0, \"subreddit\": \"PostPreview\", \"author_flair_text\": null, \"collapsed\": false, \"created_utc\": 1557165020.0, \"subreddit_name_prefixed\": \"r/PostPreview\", \"controversiality\": 0, \"depth\": 0, \"author_flair_background_color\": null, \"mod_reports\": [], \"mod_note\": null, \"distinguished\": null}}, {\"kind\": \"t1\", \"data\": {\"total_awards_received\": 0, \"approved_at_utc\": null, \"ups\": 1, \"mod_reason_by\": null, \"banned_by\": null, \"author_flair_type\": \"text\", \"removal_reason\": null, \"link_id\": \"t3_blfat0\", \"author_flair_template_id\": null, \"likes\": null, \"no_follow\": true, \"replies\": \"\", \"user_reports\": [], \"saved\": false, \"id\": \"emny9vc\", \"banned_at_utc\": null, \"mod_reason_title\": null, \"gilded\": 0, \"archived\": false, \"report_reasons\": null, \"author\": \"MeddyEvalNight\", \"can_mod_post\": false, \"send_replies\": true, \"parent_id\": \"t3_blfat0\", \"score\": 1, \"author_fullname\": \"t2_250hgx\", \"approved_by\": null, \"all_awardings\": [], \"subreddit_id\": \"t5_2waml\", \"body\": \"Image was rendered as a link , but really wanted an inline render of an already hosted image - similar to html \\u003Cimg/\\u003E . It looks like an inline rendered image needs to be uploaded\\n\\n\\u0026#x200B;\\n\\n[Video link](https://www.youtube.com/watch?v=yd98RGxad0U)\", \"edited\": false, \"author_flair_css_class\": null, \"is_submitter\": true, \"downs\": 0, \"author_flair_richtext\": [], \"author_patreon_flair\": false, \"collapsed_reason\": null, \"body_html\": \"\\u003Cdiv class=\\\"md\\\"\\u003E\\u003Cp\\u003EImage was rendered as a link , but really wanted an inline render of an already hosted image - similar to html \\u0026lt;img/\\u0026gt; . It looks like an inline rendered image needs to be uploaded\\u003C/p\\u003E\\n\\n\\u003Cp\\u003E\\u0026#x200B;\\u003C/p\\u003E\\n\\n\\u003Cp\\u003E\\u003Ca href=\\\"https://www.youtube.com/watch?v=yd98RGxad0U\\\"\\u003EVideo link\\u003C/a\\u003E\\u003C/p\\u003E\\n\\u003C/div\\u003E\", \"stickied\": false, \"subreddit_type\": \"public\", \"can_gild\": true, \"gildings\": {}, \"author_flair_text_color\": null, \"score_hidden\": false, \"permalink\": \"/r/PostPreview/comments/blfat0/testing_inline_image_links_is_it_a_url_link_or_an/emny9vc/\", \"num_reports\": null, \"locked\": false, \"name\": \"t1_emny9vc\", \"created\": 1557194874.0, \"subreddit\": \"PostPreview\", \"author_flair_text\": null, \"collapsed\": false, \"created_utc\": 1557166074.0, \"subreddit_name_prefixed\": \"r/PostPreview\", \"controversiality\": 0, \"depth\": 0, \"author_flair_background_color\": null, \"mod_reports\": [], \"mod_note\": null, \"distinguished\": null}}], \"after\": null, \"before\": null}}]", "encoding": "UTF-8"}, "headers": {"Content-Length": ["8171"], "X-Cache-Hits": ["0"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "X-Moose": ["majestic"], "x-ua-compatible": ["IE=edge"], "cache-control": ["private, s-maxage=0, max-age=0, must-revalidate, max-age=0, must-revalidate"], "Date": ["Wed, 26 Jun 2019 22:35:02 GMT"], "x-ratelimit-remaining": ["586.0"], "Strict-Transport-Security": ["max-age=15552000; includeSubDomains; preload"], "X-Cache": ["MISS"], "Accept-Ranges": ["bytes"], "expires": ["-1"], "Server": ["snooserv"], "Connection": ["keep-alive"], "X-Served-By": ["cache-ewr18145-EWR"], "x-ratelimit-used": ["14"], "Via": ["1.1 varnish"], "X-Timer": ["S1561588502.046138,VS0,VE143"], "Vary": ["accept-encoding"], "x-frame-options": ["SAMEORIGIN"], "Content-Type": ["application/json; charset=UTF-8"], "x-ratelimit-reset": ["298"]}, "status": {"message": "OK", "code": 200}, "url": "https://oauth.reddit.com/comments/blfat0/?sort=best&raw_json=1&limit=2048"}, "recorded_at": "2019-06-26T22:35:02"}, {"request": {"body": {"string": "api_type=json&id=t1_eqwoano", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["identity"], "Accept": ["*/*"], "User-Agent": ["Linux:nnreddit:0.1.0 PRAW/6.2.0 PRAW/6.2.0 prawcore/1.0.1"], "Connection": ["keep-alive"], "Cookie": ["edgebucket=hbJw9F3ioxDtTELuFS"], "Content-Type": ["application/x-www-form-urlencoded"], "Authorization": ["bearer **********"]}, "method": "POST", "uri": "https://oauth.reddit.com/api/del/?raw_json=1"}, "response": {"body": {"string": "{}", "encoding": "UTF-8"}, "headers": {"Content-Length": ["2"], "X-Cache-Hits": ["0"], "x-xss-protection": ["1; mode=block"], "x-content-type-options": ["nosniff"], "X-Moose": ["majestic"], "x-ua-compatible": ["IE=edge"], "cache-control": ["private, s-maxage=0, max-age=0, must-revalidate, max-age=0, must-revalidate"], "Date": ["Wed, 26 Jun 2019 22:35:02 GMT"], "x-ratelimit-remaining": ["585.0"], "Strict-Transport-Security": ["max-age=15552000; includeSubDomains; preload"], "X-Cache": ["MISS"], "Accept-Ranges": ["bytes"], "expires": ["-1"], "Server": ["snooserv"], "Connection": ["keep-alive"], "X-Served-By": ["cache-ewr18145-EWR"], "x-ratelimit-used": ["15"], "Via": ["1.1 varnish"], "X-Timer": ["S1561588503.720492,VS0,VE153"], "x-frame-options": ["SAMEORIGIN"], "Content-Type": ["application/json; charset=UTF-8"], "x-ratelimit-reset": ["298"]}, "status": {"message": "OK", "code": 200}, "url": "https://oauth.reddit.com/api/del/?raw_json=1"}, "recorded_at": "2019-06-26T22:35:02"}], "recorded_with": "betamax/0.8.1"}