redditkit 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +22 -0
- data/README.md +155 -0
- data/Rakefile +8 -0
- data/lib/redditkit.rb +26 -0
- data/lib/redditkit/base.rb +60 -0
- data/lib/redditkit/client.rb +142 -0
- data/lib/redditkit/client/account.rb +73 -0
- data/lib/redditkit/client/apps.rb +63 -0
- data/lib/redditkit/client/captcha.rb +36 -0
- data/lib/redditkit/client/comments.rb +54 -0
- data/lib/redditkit/client/flair.rb +148 -0
- data/lib/redditkit/client/links.rb +134 -0
- data/lib/redditkit/client/miscellaneous.rb +50 -0
- data/lib/redditkit/client/moderation.rb +179 -0
- data/lib/redditkit/client/multireddits.rb +207 -0
- data/lib/redditkit/client/private_messages.rb +74 -0
- data/lib/redditkit/client/search.rb +25 -0
- data/lib/redditkit/client/subreddits.rb +120 -0
- data/lib/redditkit/client/users.rb +109 -0
- data/lib/redditkit/client/utilities.rb +137 -0
- data/lib/redditkit/client/voting.rb +41 -0
- data/lib/redditkit/client/wiki.rb +83 -0
- data/lib/redditkit/comment.rb +54 -0
- data/lib/redditkit/creatable.rb +17 -0
- data/lib/redditkit/error.rb +111 -0
- data/lib/redditkit/link.rb +140 -0
- data/lib/redditkit/moderator_action.rb +19 -0
- data/lib/redditkit/multireddit.rb +32 -0
- data/lib/redditkit/multireddit_description.rb +14 -0
- data/lib/redditkit/paginated_response.rb +22 -0
- data/lib/redditkit/private_message.rb +27 -0
- data/lib/redditkit/response/parse_json.rb +29 -0
- data/lib/redditkit/response/raise_error.rb +21 -0
- data/lib/redditkit/subreddit.rb +86 -0
- data/lib/redditkit/thing.rb +20 -0
- data/lib/redditkit/user.rb +30 -0
- data/lib/redditkit/version.rb +19 -0
- data/lib/redditkit/votable.rb +37 -0
- data/redditkit.gemspec +25 -0
- data/spec/cassettes/RedditKit_Client/should_raise_an_error_with_invalid_credentials.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Account/_sign_in/signs_the_user_in.yml +132 -0
- data/spec/cassettes/RedditKit_Client_Account/_update_session/updates_the_current_session.yml +133 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_captcha_url/returns_a_CAPTCHA_url_from_an_identifier.yml +38 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_needs_captcha_/checks_if_the_current_account_needs_a_CAPTCHA.yml +44 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_new_captcha_identifier/returns_a_new_CAPTCHA_identifier.yml +38 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comment/requests_the_correct_resource.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comments/with_a_RedditKit_Link/returns_comments_on_a_link.yml +140 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comments/with_a_link_identifier/returns_comments_on_a_link.yml +89 -0
- data/spec/cassettes/RedditKit_Client_Comments/_submit_comment/requests_the_correct_resource.yml +313 -0
- data/spec/cassettes/RedditKit_Client_Flair/_apply_flair_template/clears_flair_templates.yml +52 -0
- data/spec/cassettes/RedditKit_Client_Flair/_clear_flair_templates/clears_flair_templates.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/creates_a_flair_template.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/raises_InvalidClassName.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/raises_TooManyClassNames.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Flair/_delete_user_flair/requests_the_correct_resource.yml +60 -0
- data/spec/cassettes/RedditKit_Client_Flair/_flair_list/returns_the_list_of_flair.yml +44 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair/requests_the_correct_resource.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair_options/sets_flair_options.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair_with_csv/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_Flair/_toggle_flair/requests_the_correct_resource.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Links/_front_page/requests_the_correct_category.yml +498 -0
- data/spec/cassettes/RedditKit_Client_Links/_front_page/requests_the_correct_resource.yml +603 -0
- data/spec/cassettes/RedditKit_Client_Links/_hide/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_link/returns_a_link.yml +55 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/contains_pagination_information.yml +402 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_a_certain_number_of_links.yml +186 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_front_page_links_if_no_subreddit_is_present.yml +603 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_links_with_the_correct_time_frame.yml +375 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_the_correct_subreddit_and_category.yml +402 -0
- data/spec/cassettes/RedditKit_Client_Links/_links_with_domain/returns_links_with_a_specific_domain.yml +99 -0
- data/spec/cassettes/RedditKit_Client_Links/_mark_nsfw/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_random_link/returns_a_random_link.yml +91 -0
- data/spec/cassettes/RedditKit_Client_Links/_submit/raises_RedditKit_InvalidCaptcha_if_no_CAPTCHA_is_filled_out.yml +54 -0
- data/spec/cassettes/RedditKit_Client_Links/_unhide/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_unmark_nsfw/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_delete/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_edit/requests_the_correct_resource.yml +52 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_save/saves_an_object.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_unsave/unsaves_an_object.yml +89 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_accept_moderator_invitation/requests_the_correct_resource.yml +53 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_ban/requests_the_correct_resource.yml +103 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_contributors_to_subreddit/requests_the_correct_resource.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_ignore_reports/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_moderation_log/returns_RedditKit_ModeratorAction_objects.yml +153 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_moderators_of_subreddit/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_reset_subreddit_header/requests_the_correct_resource.yml +55 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_set_contest_mode/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_set_sticky_post/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_unban/requests_the_correct_resource.yml +54 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_unignore_reports/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_add_subreddit_to_multireddit/adds_a_subreddit_to_a_multireddit.yml +177 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_create_multireddit/creates_a_multireddit.yml +137 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_create_multireddit/raises_RedditKit_Conflict_when_using_an_existing_name.yml +133 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_delete_multireddit/deletes_a_multireddit.yml +134 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit/with_a_path/returns_a_multireddit.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit/without_a_path/returns_a_multireddit.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit_description/with_a_multireddit/returns_a_multireddit_description.yml +81 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit_description/with_a_username_and_multireddit_name/returns_a_multireddit_description.yml +45 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_my_multireddits/return_s_the_user_s_multireddits.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_remove_subreddit_from_multireddit/removes_a_subreddit_from_a_multireddit.yml +175 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_rename_multireddit/renames_a_multireddit.yml +134 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_set_multireddit_description/returns_a_multireddit_description.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_update_multireddit/updates_a_multireddit.yml +184 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_block_author_of_message/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_mark_as_read/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_mark_as_unread/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_messages/requests_the_correct_resource.yml +187 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_unblock/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/restricts_searches_to_a_specific_subreddit.yml +878 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/returns_a_specific_number_of_results.yml +130 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/returns_search_results.yml +844 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_random_subreddit/returns_a_random_subreddit.yml +181 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_recommended_subreddits/returns_subreddit_names.yml +37 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_search_subreddits_by_name/returns_subreddit_names.yml +875 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddit/returns_a_specified_subreddit.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits/returns_a_specified_number_of_subreddits.yml +505 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits/returns_subreddits_from_a_specific_category.yml +510 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits_by_topic/returns_subreddit_names.yml +41 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribe/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_a_specified_number_of_subreddits.yml +415 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_subreddits_from_a_specific_category.yml +58 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_the_user_s_subscribed_subreddits.yml +3469 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_unsubscribe/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Users/_friends/returns_the_user_s_friends.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_my_content/returns_the_user_s_content.yml +60 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/returns_a_specified_user.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/returns_the_authenticated_user.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user_content/returns_the_user_s_content.yml +41 -0
- data/spec/cassettes/RedditKit_Client_Users/_username_available_/returns_false_for_an_unavailable_username.yml +36 -0
- data/spec/cassettes/RedditKit_Client_Users/_username_available_/returns_true_for_an_available_username.yml +36 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_comment_full_name_passed/downvotes_the_comment.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_comment_passed/downvotes_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_link_full_name_passed/downvotes_the_link.yml +106 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_link_passed/downvotes_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_comment_full_name_passed/upvotes_the_comment.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_comment_passed/upvotes_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_link_full_name_passed/upvotes_the_link.yml +106 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_link_passed/upvotes_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_comment_full_name_passed/withdraws_the_vote_on_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_comment_passed/withdraws_the_vote_on_the_comment.yml +208 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_link_full_name_passed/withdraws_the_vote_on_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_link_passed/withdraws_the_vote_on_the_link.yml +226 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_add_wiki_editor/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_edit_wiki_page/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_hide_wiki_revision/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_remove_wiki_editor/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_revert_to_revision/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Comment/should_not_be_deleted_if_neither_author_and_comment_attributes_are_set_to_deleted_.yml +90 -0
- data/spec/cassettes/RedditKit_Comment/should_return_replies.yml +90 -0
- data/spec/cassettes/authenticated_client.yml +87 -0
- data/spec/redditkit/base_spec.rb +45 -0
- data/spec/redditkit/client/account_spec.rb +50 -0
- data/spec/redditkit/client/apps_spec.rb +58 -0
- data/spec/redditkit/client/captcha_spec.rb +30 -0
- data/spec/redditkit/client/comments_spec.rb +40 -0
- data/spec/redditkit/client/flair_spec.rb +92 -0
- data/spec/redditkit/client/links_spec.rb +103 -0
- data/spec/redditkit/client/miscellaneous_spec.rb +40 -0
- data/spec/redditkit/client/moderation_spec.rb +141 -0
- data/spec/redditkit/client/multireddits_spec.rb +158 -0
- data/spec/redditkit/client/private_messages_spec.rb +51 -0
- data/spec/redditkit/client/search_spec.rb +25 -0
- data/spec/redditkit/client/subreddits_spec.rb +83 -0
- data/spec/redditkit/client/users_spec.rb +92 -0
- data/spec/redditkit/client/voting_spec.rb +99 -0
- data/spec/redditkit/client/wiki_spec.rb +40 -0
- data/spec/redditkit/client_spec.rb +46 -0
- data/spec/redditkit/comment_spec.rb +26 -0
- data/spec/redditkit/creatable_spec.rb +24 -0
- data/spec/redditkit/error_spec.rb +61 -0
- data/spec/redditkit/link_spec.rb +33 -0
- data/spec/redditkit/multireddit_spec.rb +27 -0
- data/spec/redditkit/paginated_response_spec.rb +23 -0
- data/spec/redditkit/thing_spec.rb +18 -0
- data/spec/redditkit/votable_spec.rb +52 -0
- data/spec/redditkit_spec.rb +21 -0
- data/spec/spec_helper.rb +124 -0
- metadata +390 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.reddit.com/api/multi/user/<REDDIT_USERNAME>/m/test/description
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: multipath=%2Fuser%2F<REDDIT_USERNAME>%2Fm%2Ftest&model=%7B%22body_md%22%3A%22New+description%22%7D
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '205'
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- "'; DROP TABLE servertypes; --"
|
37
|
+
Date:
|
38
|
+
- Sun, 10 Nov 2013 22:03:00 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"kind\": \"LabeledMultiDescription\", \"data\": {\"body_html\": \"<!--
|
44
|
+
SC_OFF --><div class=\\\"md\\\"><p>New description</p>\\n</div><!--
|
45
|
+
SC_ON -->\", \"body_md\": \"New description\"}}"
|
46
|
+
http_version:
|
47
|
+
recorded_at: Sun, 10 Nov 2013 22:02:59 GMT
|
48
|
+
recorded_with: VCR 2.6.0
|
data/spec/cassettes/RedditKit_Client_Multireddits/_update_multireddit/updates_a_multireddit.yml
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.reddit.com/api/multi/user/<REDDIT_USERNAME>/m/testmultireddit
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: multipath=%2Fuser%2F<REDDIT_USERNAME>%2Fm%2Ftestmultireddit&model=%7B%22visibility%22%3A%22private%22%2C%22subreddits%22%3A%5B%7B%22name%22%3A%22ruby%22%7D%2C%7B%22name%22%3A%22objectivec%22%7D%5D%7D
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '267'
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- "'; DROP TABLE servertypes; --"
|
37
|
+
Date:
|
38
|
+
- Sun, 10 Nov 2013 22:02:56 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"kind\": \"LabeledMulti\", \"data\": {\"can_edit\": true, \"name\":
|
44
|
+
\"testmultireddit\", \"created\": 1384149776.0, \"subreddits\": [{\"name\":
|
45
|
+
\"ruby\"}, {\"name\": \"ObjectiveC\"}], \"created_utc\": 1384120976.0, \"visibility\":
|
46
|
+
\"private\", \"path\": \"/user/<REDDIT_USERNAME>/m/testmultireddit\"}}"
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 10 Nov 2013 22:02:55 GMT
|
49
|
+
- request:
|
50
|
+
method: put
|
51
|
+
uri: http://www.reddit.com/api/multi/user/<REDDIT_USERNAME>/m/testmultireddit
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: multipath=%2Fuser%2F<REDDIT_USERNAME>%2Fm%2Ftestmultireddit&model=%7B%22visibility%22%3A%22private%22%2C%22subreddits%22%3A%5B%7B%22name%22%3A%22ruby%22%7D%2C%7B%22name%22%3A%22objectivec%22%7D%2C%7B%22name%22%3A%22haskell%22%7D%5D%7D
|
55
|
+
headers:
|
56
|
+
User-Agent:
|
57
|
+
- Faraday v0.8.8
|
58
|
+
Cookie:
|
59
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
60
|
+
X-Modhash:
|
61
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
62
|
+
Content-Type:
|
63
|
+
- application/x-www-form-urlencoded
|
64
|
+
Accept-Encoding:
|
65
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
66
|
+
Accept:
|
67
|
+
- "*/*"
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Content-Type:
|
74
|
+
- application/json; charset=UTF-8
|
75
|
+
Content-Length:
|
76
|
+
- '288'
|
77
|
+
Cache-Control:
|
78
|
+
- no-cache
|
79
|
+
Pragma:
|
80
|
+
- no-cache
|
81
|
+
Server:
|
82
|
+
- "'; DROP TABLE servertypes; --"
|
83
|
+
Date:
|
84
|
+
- Sun, 10 Nov 2013 22:02:57 GMT
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: "{\"kind\": \"LabeledMulti\", \"data\": {\"can_edit\": true, \"name\":
|
90
|
+
\"testmultireddit\", \"created\": 1384149776.0, \"subreddits\": [{\"name\":
|
91
|
+
\"ruby\"}, {\"name\": \"haskell\"}, {\"name\": \"ObjectiveC\"}], \"created_utc\":
|
92
|
+
1384120976.0, \"visibility\": \"private\", \"path\": \"/user/<REDDIT_USERNAME>/m/testmultireddit\"}}"
|
93
|
+
http_version:
|
94
|
+
recorded_at: Sun, 10 Nov 2013 22:02:56 GMT
|
95
|
+
- request:
|
96
|
+
method: get
|
97
|
+
uri: http://www.reddit.com/api/multi/mine.json
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ''
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- Faraday v0.8.8
|
104
|
+
Cookie:
|
105
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
106
|
+
X-Modhash:
|
107
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
108
|
+
Accept-Encoding:
|
109
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
110
|
+
Accept:
|
111
|
+
- "*/*"
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 200
|
115
|
+
message: OK
|
116
|
+
headers:
|
117
|
+
Content-Type:
|
118
|
+
- application/json; charset=UTF-8
|
119
|
+
Content-Length:
|
120
|
+
- '536'
|
121
|
+
Cache-Control:
|
122
|
+
- no-cache
|
123
|
+
Pragma:
|
124
|
+
- no-cache
|
125
|
+
Server:
|
126
|
+
- "'; DROP TABLE servertypes; --"
|
127
|
+
Date:
|
128
|
+
- Sun, 10 Nov 2013 22:02:57 GMT
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
body:
|
132
|
+
encoding: UTF-8
|
133
|
+
string: "[{\"kind\": \"LabeledMulti\", \"data\": {\"can_edit\": true, \"name\":
|
134
|
+
\"testmultireddit\", \"created\": 1384149776.0, \"subreddits\": [{\"name\":
|
135
|
+
\"ruby\"}, {\"name\": \"haskell\"}, {\"name\": \"ObjectiveC\"}], \"created_utc\":
|
136
|
+
1384120976.0, \"visibility\": \"private\", \"path\": \"/user/<REDDIT_USERNAME>/m/testmultireddit\"}},
|
137
|
+
{\"kind\": \"LabeledMulti\", \"data\": {\"can_edit\": true, \"name\": \"test\",
|
138
|
+
\"created\": 1384149680.0, \"subreddits\": [{\"name\": \"ruby\"}, {\"name\":
|
139
|
+
\"ObjectiveC\"}], \"created_utc\": 1384120880.0, \"visibility\": \"public\",
|
140
|
+
\"path\": \"/user/<REDDIT_USERNAME>/m/test\"}}]"
|
141
|
+
http_version:
|
142
|
+
recorded_at: Sun, 10 Nov 2013 22:02:56 GMT
|
143
|
+
- request:
|
144
|
+
method: delete
|
145
|
+
uri: http://www.reddit.com/api/multi/user/<REDDIT_USERNAME>/m/testmultireddit?multireddit=/user/<REDDIT_USERNAME>/m/testmultireddit
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
User-Agent:
|
151
|
+
- Faraday v0.8.8
|
152
|
+
Cookie:
|
153
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
154
|
+
X-Modhash:
|
155
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
156
|
+
Accept-Encoding:
|
157
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
158
|
+
Accept:
|
159
|
+
- "*/*"
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 200
|
163
|
+
message: OK
|
164
|
+
headers:
|
165
|
+
Content-Length:
|
166
|
+
- '0'
|
167
|
+
Content-Type:
|
168
|
+
- application/json; charset=UTF-8
|
169
|
+
Cache-Control:
|
170
|
+
- no-cache
|
171
|
+
Pragma:
|
172
|
+
- no-cache
|
173
|
+
Server:
|
174
|
+
- "'; DROP TABLE servertypes; --"
|
175
|
+
Date:
|
176
|
+
- Sun, 10 Nov 2013 22:02:57 GMT
|
177
|
+
Connection:
|
178
|
+
- keep-alive
|
179
|
+
body:
|
180
|
+
encoding: UTF-8
|
181
|
+
string: ''
|
182
|
+
http_version:
|
183
|
+
recorded_at: Sun, 10 Nov 2013 22:02:56 GMT
|
184
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.reddit.com/api/block
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: id=12345
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '2'
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Server:
|
36
|
+
- "'; DROP TABLE servertypes; --"
|
37
|
+
Date:
|
38
|
+
- Sun, 10 Nov 2013 22:21:05 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{}"
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 10 Nov 2013 22:21:04 GMT
|
46
|
+
recorded_with: VCR 2.6.0
|
data/spec/cassettes/RedditKit_Client_PrivateMessages/_mark_as_read/requests_the_correct_resource.yml
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.reddit.com/api/read_message
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: id=12345
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 400
|
25
|
+
message: Bad Request
|
26
|
+
headers:
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Type:
|
32
|
+
- text/html; charset=UTF-8
|
33
|
+
Vary:
|
34
|
+
- accept-encoding
|
35
|
+
Content-Length:
|
36
|
+
- '3391'
|
37
|
+
Server:
|
38
|
+
- "'; DROP TABLE servertypes; --"
|
39
|
+
Date:
|
40
|
+
- Sun, 10 Nov 2013 22:21:04 GMT
|
41
|
+
Connection:
|
42
|
+
- close
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" ><head><title>reddit.com: page not found</title><meta name="keywords" content=" reddit, reddit.com, vote, comment, submit " /><meta name="description" content="reddit: the front page of the internet" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=1024"><link rel='icon' href="http://www.redditstatic.com/icon.png" sizes="256x256" type="image/png" /><link rel='shortcut icon' href="http://www.redditstatic.com/favicon.ico" type="image/x-icon" /><link rel='apple-touch-icon-precomposed' href="http://www.redditstatic.com/icon-touch.png" /><link rel="stylesheet" type="text/css" href="http://www.redditstatic.com/reddit.w4AwPfYceDM.css" media="all"><!--[if lt IE 7]><link rel="stylesheet" href="http://www.redditstatic.com/reddit-ie6-hax.nzvIdaFFlC8.css" type="text/css" /><![endif]--><!--[if lt IE 8]><link rel="stylesheet" href="http://www.redditstatic.com/reddit-ie7-hax.OVwpXEcnYDU.css" type="text/css" /><![endif]--><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript" src="http://www.redditstatic.com/reddit-init.en.L72QTlnZmMY.js"></script><!--[if lt IE 9]><script type="text/javascript" src="http://www.redditstatic.com/html5shiv.n0ysDxgy3AI.js"></script><![endif]--><script type="text/javascript" id="config">r.setup({"ajax_domain": "www.reddit.com", "server_time": 1384122064.0, "post_site": "", "clicktracker_url": "//pixel.redditmedia.com/click", "logged": "<REDDIT_USERNAME>", "cur_domain": "reddit.com", "cnameframe": false, "is_fake": true, "renderstyle": "html", "over_18": true, "vote_hash": "", "adtracker_url": "//pixel.redditmedia.com/pixel/of_doom.png", "uitracker_url": "//pixel.redditmedia.com/pixel/of_discovery.png", "fetch_trackers_url": "//tracker.redditmedia.com/fetch-trackers", "modhash": "yjkoodnfoi09392a0acf2b576b98c8b7d1b0b11d6e2734cc4e", "store_visits": false, "send_logs": true, "https_endpoint": "https://ssl.reddit.com", "extension": "", "static_root": "http://www.redditstatic.com", "status_msg": {"fetching": "fetching title...", "loading": "loading...", "submitting": "submitting..."}, "debug": false})</script><script type="text/javascript">reddit.cur_site = "t5_6";</script><style type="text/css">/* Custom css: use this block to insert special translation-dependent css in the page header */</style></head><body class="loggedin" ><div id="header" role="banner"><a tabindex="1" href="#content" id="jumpToContent">jump to content</a><div id="sr-header-area"><div class="width-clip"><div class="dropdown srdrop " onclick="open_menu(this)" onmouseover="hover_open_menu(this)"><span class="selected title">my subreddits</span></div><div class="drop-choices srdrop "><a href="http://www.reddit.com/r/AdviceAnimals/" class="choice " >AdviceAnimals</a><a href="http://www.reddit.com/r/announcements/" class="choice " >announcements</a><a href="http://www.reddit.com/r/AskReddit/" class="choice " >AskReddit</a><a href="http://www.reddit.com/r/askscience/" class="choice " >askscience</a><a href="http://www.reddit.com/r/aww/" class="choice " >aww</a><a href="http://www.reddit.com/r/bestof/" class="choice " >bestof</a><a href="http://www.reddit.com/r/blog/" class="choice " >blog</a><a href="http://www.reddit.com/r/books/" class="choice " >books</a><a href="http://www.reddit.com/r/EarthPorn/" class="choice " >EarthPorn</a><a href="http://www.reddit.com/r/explainlikeimfive/" class="choice " >explainlikeimfive</a><a href="http://www.reddit.com/r/funny/" class="choice " >funny</a><a href="http://www.reddit.com/r/gaming/" class="choice " >gaming</a><a href="http://www.reddit.com/r/gifs/" class="choice " >gifs</a><a href="http://www.reddit.com/r/IAmA/" class="choice " >IAmA</a><a href="http://www.reddit.com/r/movies/" class="choice " >movies</a><a href="http://www.reddit.com/r/Music/" class="choice " >Music</a><a href="http://www.reddit.com/r/news/" class="choice " >news</a><a href="http://www.reddit.com/r/pics/" class="choice " >pics</a><a href="http://www.reddit.com/r/science/" class="choice " >science</a><a href="http://www.reddit.com/r/technology/" class="choice " >technology</a><a href="http://www.reddit.com/r/television/" class="choice " >television</a><a href="http://www.reddit.com/r/todayilearned/" class="choice " >todayilearned</a><a href="http://www.reddit.com/r/videos/" class="choice " >videos</a><a href="http://www.reddit.com/r/worldnews/" class="choice " >worldnews</a><a href="http://www.reddit.com/r/WTF/" class="choice " >WTF</a><a href="http://www.reddit.com/subreddits/" class="choice bottom-option" >edit subscriptions</a></div><div class="sr-list"><ul class="flat-list sr-bar hover" ><li class='selected'><a href="http://www.reddit.com/" >front</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/all/" >all</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/random/" class="random" >random</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/friends/" >friends</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/mod" >mod</a></li></ul><span class="separator"> | </span><ul class="flat-list sr-bar hover" ><li ><a href="http://www.reddit.com/r/pics/" >pics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/funny/" >funny</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gaming/" >gaming</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AskReddit/" >AskReddit</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/worldnews/" >worldnews</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/news/" >news</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/videos/" >videos</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/IAmA/" >IAmA</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/todayilearned/" >todayilearned</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/WTF/" >WTF</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/aww/" >aww</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/technology/" >technology</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AdviceAnimals/" >AdviceAnimals</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/science/" >science</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Music/" >Music</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/movies/" >movies</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/bestof/" >bestof</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/books/" >books</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/EarthPorn/" >EarthPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/explainlikeimfive/" >explainlikeimfive</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gifs/" >gifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/television/" >television</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/askscience/" >askscience</a></li></ul><span class="separator"> – </span><ul class="flat-list sr-bar hover" id='sr-bar'><li ><a href="http://www.reddit.com/r/pics/" >pics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/funny/" >funny</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gaming/" >gaming</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AskReddit/" >AskReddit</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/worldnews/" >worldnews</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/news/" >news</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/videos/" >videos</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/IAmA/" >IAmA</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/todayilearned/" >todayilearned</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/WTF/" >WTF</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/aww/" >aww</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/technology/" >technology</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AdviceAnimals/" >AdviceAnimals</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/science/" >science</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Music/" >Music</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/movies/" >movies</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/bestof/" >bestof</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/books/" >books</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/EarthPorn/" >EarthPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/explainlikeimfive/" >explainlikeimfive</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gifs/" >gifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/television/" >television</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/askscience/" >askscience</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/LifeProTips/" >LifeProTips</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/woahdude/" >woahdude</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Unexpected/" >Unexpected</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/reactiongifs/" >reactiongifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Showerthoughts/" >Showerthoughts</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/food/" >food</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Jokes/" >Jokes</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/photoshopbattles/" >photoshopbattles</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/firstworldanarchists/" >firstworldanarchists</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/FoodPorn/" >FoodPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/HistoryPorn/" >HistoryPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/leagueoflegends/" >leagueoflegends</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/pokemon/" >pokemon</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/cringepics/" >cringepics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/4chan/" >4chan</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/politics/" >politics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/starcraft/" >starcraft</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/TheLastAirbender/" >TheLastAirbender</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/MakeupAddiction/" >MakeupAddiction</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/wow/" >wow</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/DotA2/" >DotA2</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gentlemanboners/" >gentlemanboners</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Minecraft/" >Minecraft</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/atheism/" >atheism</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/GrandTheftAutoV/" >GrandTheftAutoV</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/soccer/" >soccer</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/nba/" >nba</a></li></ul></div><a href="http://www.reddit.com/subreddits/" id="sr-more-link" >edit »</a></div></div><div id="header-bottom-left"><a href="/" id="header-img" class="default-header" title="">reddit.com</a> <span class="pagename selected">page not found</span></div><div id="header-bottom-right"><span class="user"><a href="http://www.reddit.com/user/<REDDIT_USERNAME>/" ><REDDIT_USERNAME></a> (<span class="userkarma" title="link karma">1</span>)</span><span class="separator">|</span><a title="no new mail" href="http://www.reddit.com/message/inbox/" class="nohavemail" id="mail" >messages</a><span class="separator">|</span><a title="new mod mail!" href="http://www.reddit.com/message/moderator/" class="havemail" id="modmail" >mod messages</a><span class="separator">|</span><ul class="flat-list hover" ><li ><a href="http://www.reddit.com/prefs/" class="pref-lang" >preferences</a></li></ul><span class="separator">|</span><form method="post" action="http://www.reddit.com/logout" class="logout hover" ><input type="hidden" name="uh" value="yjkoodnfoi09392a0acf2b576b98c8b7d1b0b11d6e2734cc4e"/><input type="hidden" name="top" value="off"/><input type="hidden" name="dest" value="/api/read_message"/><a href="javascript:void(0)" onclick="$(this).parent().submit()" >logout</a></form></div></div><a name="content"></a><div class="content" role="main"><div id="classy-error" class="content"><img src="http://www.redditstatic.com/reddit404e.png" alt="" /><h1>page not found</h1><div class="errorpage-message"><p>the page you requested does not exist</p>
|
47
|
+
|
48
|
+
</div></div></div><div class="footer-parent"><div by-zero class="footer rounded"><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">about</li><li ><a href="http://www.reddit.com/blog/" >blog</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/about/" >about</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/about/team/" >team</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/code/" >source code</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/ad_inq/" >advertise</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">help</li><li ><a href="http://www.reddit.com/wiki/" >wiki</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/wiki/faq" >FAQ</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/wiki/reddiquette" >reddiquette</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/rules/" >rules</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/contact/" >contact us</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">tools</li><li ><a href="http://i.reddit.com" >mobile</a></li><li ><span class="separator"></span><a href="https://addons.mozilla.org/firefox/addon/socialite/" >firefox extension</a></li><li ><span class="separator"></span><a href="https://chrome.google.com/webstore/detail/algjnflpgoopkdijmkalfcifomdhmcbe" >chrome extension</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/buttons/" >buttons</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/widget/" >widget</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title"><3</li><li ><a href="http://www.reddit.com/gold/about/" class="buygold" >reddit gold</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/store/" >store</a></li><li ><span class="separator"></span><a href="http://redditgifts.com" >redditgifts</a></li><li ><span class="separator"></span><a href="http://reddit.tv" >reddit.tv</a></li><li ><span class="separator"></span><a href="http://radioreddit.com" >radio reddit</a></li></ul></div></div><p class="bottommenu">Use of this site constitutes acceptance of our <a href="http://www.reddit.com/help/useragreement" >User Agreement</a> and <a href="http://www.reddit.com/help/privacypolicy" >Privacy Policy</a>. © 2013 reddit inc. All rights reserved.</p><p class="bottommenu">REDDIT and the ALIEN Logo are registered trademarks of reddit inc.</p></div><p class="bottommenu debuginfo"><span class="icon">π</span> <span class="content">Rendered by PID 5160 on  app-239  at 2013-11-10 22:21:04.606027+00:00 running 8db0160.</span></p><script type="text/javascript" src="http://www.redditstatic.com/reddit.en.B7-6nuCauJ4.js"></script></body></html>
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 10 Nov 2013 22:21:03 GMT
|
51
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.reddit.com/api/unread_message
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: id=12345
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 400
|
25
|
+
message: Bad Request
|
26
|
+
headers:
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Type:
|
32
|
+
- text/html; charset=UTF-8
|
33
|
+
Vary:
|
34
|
+
- accept-encoding
|
35
|
+
Content-Length:
|
36
|
+
- '3394'
|
37
|
+
Server:
|
38
|
+
- "'; DROP TABLE servertypes; --"
|
39
|
+
Date:
|
40
|
+
- Sun, 10 Nov 2013 22:21:06 GMT
|
41
|
+
Connection:
|
42
|
+
- close
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" ><head><title>reddit.com: page not found</title><meta name="keywords" content=" reddit, reddit.com, vote, comment, submit " /><meta name="description" content="reddit: the front page of the internet" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=1024"><link rel='icon' href="http://www.redditstatic.com/icon.png" sizes="256x256" type="image/png" /><link rel='shortcut icon' href="http://www.redditstatic.com/favicon.ico" type="image/x-icon" /><link rel='apple-touch-icon-precomposed' href="http://www.redditstatic.com/icon-touch.png" /><link rel="stylesheet" type="text/css" href="http://www.redditstatic.com/reddit.w4AwPfYceDM.css" media="all"><!--[if lt IE 7]><link rel="stylesheet" href="http://www.redditstatic.com/reddit-ie6-hax.nzvIdaFFlC8.css" type="text/css" /><![endif]--><!--[if lt IE 8]><link rel="stylesheet" href="http://www.redditstatic.com/reddit-ie7-hax.OVwpXEcnYDU.css" type="text/css" /><![endif]--><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript" src="http://www.redditstatic.com/reddit-init.en.L72QTlnZmMY.js"></script><!--[if lt IE 9]><script type="text/javascript" src="http://www.redditstatic.com/html5shiv.n0ysDxgy3AI.js"></script><![endif]--><script type="text/javascript" id="config">r.setup({"ajax_domain": "www.reddit.com", "server_time": 1384122066.0, "post_site": "", "clicktracker_url": "//pixel.redditmedia.com/click", "logged": "<REDDIT_USERNAME>", "cur_domain": "reddit.com", "cnameframe": false, "is_fake": true, "renderstyle": "html", "over_18": true, "vote_hash": "", "adtracker_url": "//pixel.redditmedia.com/pixel/of_doom.png", "uitracker_url": "//pixel.redditmedia.com/pixel/of_discovery.png", "fetch_trackers_url": "//tracker.redditmedia.com/fetch-trackers", "modhash": "kz5i5r3oo9bc357069797e706210f9d46cf3f5554976a4a814", "store_visits": false, "send_logs": true, "https_endpoint": "https://ssl.reddit.com", "extension": "", "static_root": "http://www.redditstatic.com", "status_msg": {"fetching": "fetching title...", "loading": "loading...", "submitting": "submitting..."}, "debug": false})</script><script type="text/javascript">reddit.cur_site = "t5_6";</script><style type="text/css">/* Custom css: use this block to insert special translation-dependent css in the page header */</style></head><body class="loggedin" ><div id="header" role="banner"><a tabindex="1" href="#content" id="jumpToContent">jump to content</a><div id="sr-header-area"><div class="width-clip"><div class="dropdown srdrop " onclick="open_menu(this)" onmouseover="hover_open_menu(this)"><span class="selected title">my subreddits</span></div><div class="drop-choices srdrop "><a href="http://www.reddit.com/r/AdviceAnimals/" class="choice " >AdviceAnimals</a><a href="http://www.reddit.com/r/announcements/" class="choice " >announcements</a><a href="http://www.reddit.com/r/AskReddit/" class="choice " >AskReddit</a><a href="http://www.reddit.com/r/askscience/" class="choice " >askscience</a><a href="http://www.reddit.com/r/aww/" class="choice " >aww</a><a href="http://www.reddit.com/r/bestof/" class="choice " >bestof</a><a href="http://www.reddit.com/r/blog/" class="choice " >blog</a><a href="http://www.reddit.com/r/books/" class="choice " >books</a><a href="http://www.reddit.com/r/EarthPorn/" class="choice " >EarthPorn</a><a href="http://www.reddit.com/r/explainlikeimfive/" class="choice " >explainlikeimfive</a><a href="http://www.reddit.com/r/funny/" class="choice " >funny</a><a href="http://www.reddit.com/r/gaming/" class="choice " >gaming</a><a href="http://www.reddit.com/r/gifs/" class="choice " >gifs</a><a href="http://www.reddit.com/r/IAmA/" class="choice " >IAmA</a><a href="http://www.reddit.com/r/movies/" class="choice " >movies</a><a href="http://www.reddit.com/r/Music/" class="choice " >Music</a><a href="http://www.reddit.com/r/news/" class="choice " >news</a><a href="http://www.reddit.com/r/pics/" class="choice " >pics</a><a href="http://www.reddit.com/r/science/" class="choice " >science</a><a href="http://www.reddit.com/r/technology/" class="choice " >technology</a><a href="http://www.reddit.com/r/television/" class="choice " >television</a><a href="http://www.reddit.com/r/todayilearned/" class="choice " >todayilearned</a><a href="http://www.reddit.com/r/videos/" class="choice " >videos</a><a href="http://www.reddit.com/r/worldnews/" class="choice " >worldnews</a><a href="http://www.reddit.com/r/WTF/" class="choice " >WTF</a><a href="http://www.reddit.com/subreddits/" class="choice bottom-option" >edit subscriptions</a></div><div class="sr-list"><ul class="flat-list sr-bar hover" ><li class='selected'><a href="http://www.reddit.com/" >front</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/all/" >all</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/random/" class="random" >random</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/friends/" >friends</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/mod" >mod</a></li></ul><span class="separator"> | </span><ul class="flat-list sr-bar hover" ><li ><a href="http://www.reddit.com/r/pics/" >pics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/funny/" >funny</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gaming/" >gaming</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AskReddit/" >AskReddit</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/worldnews/" >worldnews</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/news/" >news</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/videos/" >videos</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/IAmA/" >IAmA</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/todayilearned/" >todayilearned</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/WTF/" >WTF</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/aww/" >aww</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/technology/" >technology</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AdviceAnimals/" >AdviceAnimals</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/science/" >science</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Music/" >Music</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/movies/" >movies</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/bestof/" >bestof</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/books/" >books</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/EarthPorn/" >EarthPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/explainlikeimfive/" >explainlikeimfive</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gifs/" >gifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/television/" >television</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/askscience/" >askscience</a></li></ul><span class="separator"> – </span><ul class="flat-list sr-bar hover" id='sr-bar'><li ><a href="http://www.reddit.com/r/pics/" >pics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/funny/" >funny</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gaming/" >gaming</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AskReddit/" >AskReddit</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/worldnews/" >worldnews</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/news/" >news</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/videos/" >videos</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/IAmA/" >IAmA</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/todayilearned/" >todayilearned</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/WTF/" >WTF</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/aww/" >aww</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/technology/" >technology</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/AdviceAnimals/" >AdviceAnimals</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/science/" >science</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Music/" >Music</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/movies/" >movies</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/bestof/" >bestof</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/books/" >books</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/EarthPorn/" >EarthPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/explainlikeimfive/" >explainlikeimfive</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gifs/" >gifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/television/" >television</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/askscience/" >askscience</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/LifeProTips/" >LifeProTips</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/woahdude/" >woahdude</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Unexpected/" >Unexpected</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/reactiongifs/" >reactiongifs</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Showerthoughts/" >Showerthoughts</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/food/" >food</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Jokes/" >Jokes</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/photoshopbattles/" >photoshopbattles</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/firstworldanarchists/" >firstworldanarchists</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/FoodPorn/" >FoodPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/HistoryPorn/" >HistoryPorn</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/leagueoflegends/" >leagueoflegends</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/pokemon/" >pokemon</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/cringepics/" >cringepics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/4chan/" >4chan</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/politics/" >politics</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/starcraft/" >starcraft</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/TheLastAirbender/" >TheLastAirbender</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/MakeupAddiction/" >MakeupAddiction</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/wow/" >wow</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/DotA2/" >DotA2</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/gentlemanboners/" >gentlemanboners</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/Minecraft/" >Minecraft</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/atheism/" >atheism</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/GrandTheftAutoV/" >GrandTheftAutoV</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/soccer/" >soccer</a></li><li ><span class="separator">-</span><a href="http://www.reddit.com/r/nba/" >nba</a></li></ul></div><a href="http://www.reddit.com/subreddits/" id="sr-more-link" >edit »</a></div></div><div id="header-bottom-left"><a href="/" id="header-img" class="default-header" title="">reddit.com</a> <span class="pagename selected">page not found</span></div><div id="header-bottom-right"><span class="user"><a href="http://www.reddit.com/user/<REDDIT_USERNAME>/" ><REDDIT_USERNAME></a> (<span class="userkarma" title="link karma">1</span>)</span><span class="separator">|</span><a title="no new mail" href="http://www.reddit.com/message/inbox/" class="nohavemail" id="mail" >messages</a><span class="separator">|</span><a title="new mod mail!" href="http://www.reddit.com/message/moderator/" class="havemail" id="modmail" >mod messages</a><span class="separator">|</span><ul class="flat-list hover" ><li ><a href="http://www.reddit.com/prefs/" class="pref-lang" >preferences</a></li></ul><span class="separator">|</span><form method="post" action="http://www.reddit.com/logout" class="logout hover" ><input type="hidden" name="uh" value="kz5i5r3oo9bc357069797e706210f9d46cf3f5554976a4a814"/><input type="hidden" name="top" value="off"/><input type="hidden" name="dest" value="/api/unread_message"/><a href="javascript:void(0)" onclick="$(this).parent().submit()" >logout</a></form></div></div><a name="content"></a><div class="content" role="main"><div id="classy-error" class="content"><img src="http://www.redditstatic.com/reddit404b.png" alt="" /><h1>page not found</h1><div class="errorpage-message"><p>the page you requested does not exist</p>
|
47
|
+
|
48
|
+
</div></div></div><div class="footer-parent"><div by-zero class="footer rounded"><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">about</li><li ><a href="http://www.reddit.com/blog/" >blog</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/about/" >about</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/about/team/" >team</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/code/" >source code</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/ad_inq/" >advertise</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">help</li><li ><a href="http://www.reddit.com/wiki/" >wiki</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/wiki/faq" >FAQ</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/wiki/reddiquette" >reddiquette</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/rules/" >rules</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/contact/" >contact us</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title">tools</li><li ><a href="http://i.reddit.com" >mobile</a></li><li ><span class="separator"></span><a href="https://addons.mozilla.org/firefox/addon/socialite/" >firefox extension</a></li><li ><span class="separator"></span><a href="https://chrome.google.com/webstore/detail/algjnflpgoopkdijmkalfcifomdhmcbe" >chrome extension</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/buttons/" >buttons</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/widget/" >widget</a></li></ul></div><div class="col"><ul class="flat-vert hover" ><li class="flat-vert title"><3</li><li ><a href="http://www.reddit.com/gold/about/" class="buygold" >reddit gold</a></li><li ><span class="separator"></span><a href="http://www.reddit.com/store/" >store</a></li><li ><span class="separator"></span><a href="http://redditgifts.com" >redditgifts</a></li><li ><span class="separator"></span><a href="http://reddit.tv" >reddit.tv</a></li><li ><span class="separator"></span><a href="http://radioreddit.com" >radio reddit</a></li></ul></div></div><p class="bottommenu">Use of this site constitutes acceptance of our <a href="http://www.reddit.com/help/useragreement" >User Agreement</a> and <a href="http://www.reddit.com/help/privacypolicy" >Privacy Policy</a>. © 2013 reddit inc. All rights reserved.</p><p class="bottommenu">REDDIT and the ALIEN Logo are registered trademarks of reddit inc.</p></div><p class="bottommenu debuginfo"><span class="icon">π</span> <span class="content">Rendered by PID 5372 on  app-102  at 2013-11-10 22:21:06.059380+00:00 running 8db0160.</span></p><script type="text/javascript" src="http://www.redditstatic.com/reddit.en.B7-6nuCauJ4.js"></script></body></html>
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 10 Nov 2013 22:21:04 GMT
|
51
|
+
recorded_with: VCR 2.6.0
|
data/spec/cassettes/RedditKit_Client_PrivateMessages/_messages/requests_the_correct_resource.yml
ADDED
@@ -0,0 +1,187 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.reddit.com/message/inbox.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Cookie:
|
13
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
14
|
+
X-Modhash:
|
15
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Server:
|
32
|
+
- "'; DROP TABLE servertypes; --"
|
33
|
+
Vary:
|
34
|
+
- accept-encoding
|
35
|
+
Date:
|
36
|
+
- Sun, 10 Nov 2013 22:21:06 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '10645'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"iklkxlqvpa2f4b8822c7297223f041fea20d2d52782a14f5d1\",
|
44
|
+
\"children\": [{\"kind\": \"t4\", \"data\": {\"body\": \"Reply\", \"was_comment\":
|
45
|
+
false, \"first_message\": 71518455, \"name\": \"t4_17th4w\", \"first_message_name\":
|
46
|
+
\"t4_16kvzr\", \"created\": 1383080987.0, \"dest\": \"<REDDIT_USERNAME>\",
|
47
|
+
\"author\": \"samsymons\", \"created_utc\": 1383077387.0, \"body_html\": \"<!--
|
48
|
+
SC_OFF --><div class=\\\"md\\\"><p>Reply</p>\\n</div><!--
|
49
|
+
SC_ON -->\", \"subreddit\": null, \"parent_id\": \"t4_16kvzr\", \"context\":
|
50
|
+
\"\", \"replies\": \"\", \"new\": false, \"id\": \"17th4w\", \"subject\":
|
51
|
+
\"re: Test\"}}, {\"kind\": \"t1\", \"data\": {\"body\": \"Hello!\", \"link_title\":
|
52
|
+
\"Sticky post\", \"was_comment\": true, \"first_message\": null, \"name\":
|
53
|
+
\"t1_cccb4gz\", \"first_message_name\": null, \"created\": 1379716336.0, \"dest\":
|
54
|
+
\"<REDDIT_USERNAME>\", \"author\": \"samsymons\", \"created_utc\": 1379712736.0,
|
55
|
+
\"body_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Hello!</p>\\n</div><!--
|
56
|
+
SC_ON -->\", \"subreddit\": \"RedditKit\", \"parent_id\": \"t3_1mjtjl\",
|
57
|
+
\"likes\": null, \"context\": \"/r/RedditKit/comments/1mjtjl/sticky_post/cccb4gz?context=3\",
|
58
|
+
\"replies\": null, \"new\": false, \"id\": \"cccb4gz\", \"subject\": \"post
|
59
|
+
reply\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"you have been added as
|
60
|
+
an approved submitter to [/r/RedditKit: RedditKit](/r/RedditKit).\", \"was_comment\":
|
61
|
+
false, \"first_message\": null, \"name\": \"t4_14eh4f\", \"first_message_name\":
|
62
|
+
null, \"created\": 1379453676.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
63
|
+
\"samsymons\", \"created_utc\": 1379450076.0, \"body_html\": \"<!-- SC_OFF
|
64
|
+
--><div class=\\\"md\\\"><p>you have been added as an approved
|
65
|
+
submitter to <a href=\\\"/r/RedditKit\\\">/r/RedditKit: RedditKit</a>.</p>\\n</div><!--
|
66
|
+
SC_ON -->\", \"subreddit\": null, \"parent_id\": null, \"context\": \"\",
|
67
|
+
\"replies\": \"\", \"new\": false, \"id\": \"14eh4f\", \"subject\": \"you
|
68
|
+
are an approved submitter\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"you
|
69
|
+
have been added as an approved submitter to [/r/RedditKit: RedditKit](/r/RedditKit).\",
|
70
|
+
\"was_comment\": false, \"first_message\": null, \"name\": \"t4_14egqc\",
|
71
|
+
\"first_message_name\": null, \"created\": 1379453405.0, \"dest\": \"<REDDIT_USERNAME>\",
|
72
|
+
\"author\": \"samsymons\", \"created_utc\": 1379449805.0, \"body_html\": \"<!--
|
73
|
+
SC_OFF --><div class=\\\"md\\\"><p>you have been added as an
|
74
|
+
approved submitter to <a href=\\\"/r/RedditKit\\\">/r/RedditKit: RedditKit</a>.</p>\\n</div><!--
|
75
|
+
SC_ON -->\", \"subreddit\": null, \"parent_id\": null, \"context\": \"\",
|
76
|
+
\"replies\": \"\", \"new\": false, \"id\": \"14egqc\", \"subject\": \"you
|
77
|
+
are an approved submitter\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"**gadzooks!
|
78
|
+
you are invited to become a moderator of [/r/RedditKit: RedditKit](/r/RedditKit)!**\\n\\n*to
|
79
|
+
accept*, visit the [moderators page for /r/RedditKit](/r/RedditKit/about/moderators)
|
80
|
+
and click \\\"accept\\\".\\n\\n*otherwise,* if you did not expect to receive
|
81
|
+
this, you can simply ignore this invitation or report it.\", \"was_comment\":
|
82
|
+
false, \"first_message\": null, \"name\": \"t4_14eg1g\", \"first_message_name\":
|
83
|
+
null, \"created\": 1379452945.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
84
|
+
\"samsymons\", \"created_utc\": 1379449345.0, \"body_html\": \"<!-- SC_OFF
|
85
|
+
--><div class=\\\"md\\\"><p><strong>gadzooks! you are
|
86
|
+
invited to become a moderator of <a href=\\\"/r/RedditKit\\\">/r/RedditKit:
|
87
|
+
RedditKit</a>!</strong></p>\\n\\n<p><em>to accept</em>,
|
88
|
+
visit the <a href=\\\"/r/RedditKit/about/moderators\\\">moderators page
|
89
|
+
for /r/RedditKit</a> and click &quot;accept&quot;.</p>\\n\\n<p><em>otherwise,</em>
|
90
|
+
if you did not expect to receive this, you can simply ignore this invitation
|
91
|
+
or report it.</p>\\n</div><!-- SC_ON -->\", \"subreddit\":
|
92
|
+
\"RedditKit\", \"parent_id\": null, \"context\": \"\", \"replies\": \"\",
|
93
|
+
\"new\": false, \"id\": \"14eg1g\", \"subject\": \"invitation to moderate
|
94
|
+
/r/RedditKit\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"**gadzooks! you
|
95
|
+
are invited to become a moderator of [/r/RedditKit: RedditKit](/r/RedditKit)!**\\n\\n*to
|
96
|
+
accept*, visit the [moderators page for /r/RedditKit](/r/RedditKit/about/moderators)
|
97
|
+
and click \\\"accept\\\".\\n\\n*otherwise,* if you did not expect to receive
|
98
|
+
this, you can simply ignore this invitation or report it.\", \"was_comment\":
|
99
|
+
false, \"first_message\": null, \"name\": \"t4_14efl9\", \"first_message_name\":
|
100
|
+
null, \"created\": 1379452603.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
101
|
+
\"samsymons\", \"created_utc\": 1379449003.0, \"body_html\": \"<!-- SC_OFF
|
102
|
+
--><div class=\\\"md\\\"><p><strong>gadzooks! you are
|
103
|
+
invited to become a moderator of <a href=\\\"/r/RedditKit\\\">/r/RedditKit:
|
104
|
+
RedditKit</a>!</strong></p>\\n\\n<p><em>to accept</em>,
|
105
|
+
visit the <a href=\\\"/r/RedditKit/about/moderators\\\">moderators page
|
106
|
+
for /r/RedditKit</a> and click &quot;accept&quot;.</p>\\n\\n<p><em>otherwise,</em>
|
107
|
+
if you did not expect to receive this, you can simply ignore this invitation
|
108
|
+
or report it.</p>\\n</div><!-- SC_ON -->\", \"subreddit\":
|
109
|
+
\"RedditKit\", \"parent_id\": null, \"context\": \"\", \"replies\": \"\",
|
110
|
+
\"new\": false, \"id\": \"14efl9\", \"subject\": \"invitation to moderate
|
111
|
+
/r/RedditKit\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"**gadzooks! you
|
112
|
+
are invited to become a moderator of [/r/RedditKit: RedditKit](/r/RedditKit)!**\\n\\n*to
|
113
|
+
accept*, visit the [moderators page for /r/RedditKit](/r/RedditKit/about/moderators)
|
114
|
+
and click \\\"accept\\\".\\n\\n*otherwise,* if you did not expect to receive
|
115
|
+
this, you can simply ignore this invitation or report it.\", \"was_comment\":
|
116
|
+
false, \"first_message\": null, \"name\": \"t4_14eeq3\", \"first_message_name\":
|
117
|
+
null, \"created\": 1379452024.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
118
|
+
\"samsymons\", \"created_utc\": 1379448424.0, \"body_html\": \"<!-- SC_OFF
|
119
|
+
--><div class=\\\"md\\\"><p><strong>gadzooks! you are
|
120
|
+
invited to become a moderator of <a href=\\\"/r/RedditKit\\\">/r/RedditKit:
|
121
|
+
RedditKit</a>!</strong></p>\\n\\n<p><em>to accept</em>,
|
122
|
+
visit the <a href=\\\"/r/RedditKit/about/moderators\\\">moderators page
|
123
|
+
for /r/RedditKit</a> and click &quot;accept&quot;.</p>\\n\\n<p><em>otherwise,</em>
|
124
|
+
if you did not expect to receive this, you can simply ignore this invitation
|
125
|
+
or report it.</p>\\n</div><!-- SC_ON -->\", \"subreddit\":
|
126
|
+
\"RedditKit\", \"parent_id\": null, \"context\": \"\", \"replies\": \"\",
|
127
|
+
\"new\": false, \"id\": \"14eeq3\", \"subject\": \"invitation to moderate
|
128
|
+
/r/RedditKit\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"**gadzooks! you
|
129
|
+
are invited to become a moderator of [/r/RedditKit: RedditKit](/r/RedditKit)!**\\n\\n*to
|
130
|
+
accept*, visit the [moderators page for /r/RedditKit](/r/RedditKit/about/moderators)
|
131
|
+
and click \\\"accept\\\".\\n\\n*otherwise,* if you did not expect to receive
|
132
|
+
this, you can simply ignore this invitation or report it.\", \"was_comment\":
|
133
|
+
false, \"first_message\": null, \"name\": \"t4_13jn6w\", \"first_message_name\":
|
134
|
+
null, \"created\": 1378494889.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
135
|
+
\"samsymons\", \"created_utc\": 1378491289.0, \"body_html\": \"<!-- SC_OFF
|
136
|
+
--><div class=\\\"md\\\"><p><strong>gadzooks! you are
|
137
|
+
invited to become a moderator of <a href=\\\"/r/RedditKit\\\">/r/RedditKit:
|
138
|
+
RedditKit</a>!</strong></p>\\n\\n<p><em>to accept</em>,
|
139
|
+
visit the <a href=\\\"/r/RedditKit/about/moderators\\\">moderators page
|
140
|
+
for /r/RedditKit</a> and click &quot;accept&quot;.</p>\\n\\n<p><em>otherwise,</em>
|
141
|
+
if you did not expect to receive this, you can simply ignore this invitation
|
142
|
+
or report it.</p>\\n</div><!-- SC_ON -->\", \"subreddit\":
|
143
|
+
\"RedditKit\", \"parent_id\": null, \"context\": \"\", \"replies\": \"\",
|
144
|
+
\"new\": false, \"id\": \"13jn6w\", \"subject\": \"invitation to moderate
|
145
|
+
/r/RedditKit\"}}, {\"kind\": \"t1\", \"data\": {\"body\": \"Test comment to
|
146
|
+
distinguish\", \"link_title\": \"Practice post\", \"was_comment\": true, \"first_message\":
|
147
|
+
null, \"name\": \"t1_canujul\", \"first_message_name\": null, \"created\":
|
148
|
+
1371876849.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\": \"samsymons\",
|
149
|
+
\"created_utc\": 1371873249.0, \"body_html\": \"<!-- SC_OFF --><div
|
150
|
+
class=\\\"md\\\"><p>Test comment to distinguish</p>\\n</div><!--
|
151
|
+
SC_ON -->\", \"subreddit\": \"RedditKit\", \"parent_id\": \"t3_1gt4y3\",
|
152
|
+
\"likes\": null, \"context\": \"/r/RedditKit/comments/1gt4y3/practice_post/canujul?context=3\",
|
153
|
+
\"replies\": null, \"new\": false, \"id\": \"canujul\", \"subject\": \"post
|
154
|
+
reply\"}}, {\"kind\": \"t4\", \"data\": {\"body\": \"Hello\", \"was_comment\":
|
155
|
+
false, \"first_message\": null, \"name\": \"t4_xe2mc\", \"first_message_name\":
|
156
|
+
null, \"created\": 1371857657.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\":
|
157
|
+
\"samsymons\", \"created_utc\": 1371854057.0, \"body_html\": \"<!-- SC_OFF
|
158
|
+
--><div class=\\\"md\\\"><p>Hello</p>\\n</div><!--
|
159
|
+
SC_ON -->\", \"subreddit\": null, \"parent_id\": null, \"context\": \"\",
|
160
|
+
\"replies\": \"\", \"new\": false, \"id\": \"xe2mc\", \"subject\": \"blah\"}},
|
161
|
+
{\"kind\": \"t4\", \"data\": {\"body\": \"Hello!\", \"was_comment\": false,
|
162
|
+
\"first_message\": null, \"name\": \"t4_xdyvf\", \"first_message_name\": null,
|
163
|
+
\"created\": 1371854895.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\": \"samsymons\",
|
164
|
+
\"created_utc\": 1371851295.0, \"body_html\": \"<!-- SC_OFF --><div
|
165
|
+
class=\\\"md\\\"><p>Hello!</p>\\n</div><!-- SC_ON
|
166
|
+
-->\", \"subreddit\": null, \"parent_id\": null, \"context\": \"\", \"replies\":
|
167
|
+
\"\", \"new\": false, \"id\": \"xdyvf\", \"subject\": \"test\"}}, {\"kind\":
|
168
|
+
\"t4\", \"data\": {\"body\": \"Test!\", \"was_comment\": false, \"first_message\":
|
169
|
+
55978742, \"name\": \"t4_xddeb\", \"first_message_name\": \"t4_xbth2\", \"created\":
|
170
|
+
1371839394.0, \"dest\": \"<REDDIT_USERNAME>\", \"author\": \"samsymons\",
|
171
|
+
\"created_utc\": 1371835794.0, \"body_html\": \"<!-- SC_OFF --><div
|
172
|
+
class=\\\"md\\\"><p>Test!</p>\\n</div><!-- SC_ON -->\",
|
173
|
+
\"subreddit\": null, \"parent_id\": \"t4_xbth2\", \"context\": \"\", \"replies\":
|
174
|
+
\"\", \"new\": false, \"id\": \"xddeb\", \"subject\": \"re: Test\"}}, {\"kind\":
|
175
|
+
\"t4\", \"data\": {\"body\": \"you have been added as an approved submitter
|
176
|
+
to [/r/RedditKit: RedditKit](/r/RedditKit).\", \"was_comment\": false, \"first_message\":
|
177
|
+
null, \"name\": \"t4_xarx0\", \"first_message_name\": null, \"created\": 1371758783.0,
|
178
|
+
\"dest\": \"<REDDIT_USERNAME>\", \"author\": \"samsymons\", \"created_utc\":
|
179
|
+
1371755183.0, \"body_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>you
|
180
|
+
have been added as an approved submitter to <a href=\\\"/r/RedditKit\\\">/r/RedditKit:
|
181
|
+
RedditKit</a>.</p>\\n</div><!-- SC_ON -->\", \"subreddit\":
|
182
|
+
null, \"parent_id\": null, \"context\": \"\", \"replies\": \"\", \"new\":
|
183
|
+
false, \"id\": \"xarx0\", \"subject\": \"you are an approved submitter\"}}],
|
184
|
+
\"after\": null, \"before\": null}}"
|
185
|
+
http_version:
|
186
|
+
recorded_at: Sun, 10 Nov 2013 22:21:05 GMT
|
187
|
+
recorded_with: VCR 2.6.0
|