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,208 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.reddit.com/api/info.json?id=t1_cce66qf
|
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:28 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '853'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"rbhvamalxe47cec0cf33ec74a844d6e03339005cb44e60fe25\",
|
44
|
+
\"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2ylc5\",
|
45
|
+
\"banned_by\": null, \"subreddit\": \"RedditKitTesting\", \"likes\": null,
|
46
|
+
\"replies\": \"\", \"id\": \"cce66qf\", \"gilded\": 0, \"author\": \"samsymons\",
|
47
|
+
\"parent_id\": \"t3_1n002d\", \"approved_by\": null, \"body\": \"Here's a
|
48
|
+
test comment which will also never be deleted.\", \"edited\": false, \"author_flair_css_class\":
|
49
|
+
\"csvclass\", \"downs\": 0, \"body_html\": \"<div class=\\\"md\\\"><p>Here&#39;s
|
50
|
+
a test comment which will also never be deleted.</p>\\n</div>\",
|
51
|
+
\"link_id\": \"t3_1n002d\", \"score_hidden\": false, \"name\": \"t1_cce66qf\",
|
52
|
+
\"created\": 1379988702.0, \"author_flair_text\": \"Test CSV\", \"created_utc\":
|
53
|
+
1379985102.0, \"ups\": 1, \"num_reports\": 0, \"distinguished\": null}}],
|
54
|
+
\"after\": null, \"before\": null}}"
|
55
|
+
http_version:
|
56
|
+
recorded_at: Sun, 10 Nov 2013 22:21:26 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: http://www.reddit.com/api/vote
|
60
|
+
body:
|
61
|
+
encoding: US-ASCII
|
62
|
+
string: id=t1_cce66qf&dir=0&api_type=json
|
63
|
+
headers:
|
64
|
+
User-Agent:
|
65
|
+
- Faraday v0.8.8
|
66
|
+
Cookie:
|
67
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
68
|
+
X-Modhash:
|
69
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
70
|
+
Content-Type:
|
71
|
+
- application/x-www-form-urlencoded
|
72
|
+
Accept-Encoding:
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
75
|
+
- "*/*"
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=UTF-8
|
83
|
+
Content-Length:
|
84
|
+
- '2'
|
85
|
+
Cache-Control:
|
86
|
+
- no-cache
|
87
|
+
Pragma:
|
88
|
+
- no-cache
|
89
|
+
Server:
|
90
|
+
- "'; DROP TABLE servertypes; --"
|
91
|
+
Date:
|
92
|
+
- Sun, 10 Nov 2013 22:21:28 GMT
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
body:
|
96
|
+
encoding: UTF-8
|
97
|
+
string: "{}"
|
98
|
+
http_version:
|
99
|
+
recorded_at: Sun, 10 Nov 2013 22:21:27 GMT
|
100
|
+
- request:
|
101
|
+
method: get
|
102
|
+
uri: http://www.reddit.com/api/info.json?id=t1_cce66qf
|
103
|
+
body:
|
104
|
+
encoding: US-ASCII
|
105
|
+
string: ''
|
106
|
+
headers:
|
107
|
+
User-Agent:
|
108
|
+
- Faraday v0.8.8
|
109
|
+
Cookie:
|
110
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
111
|
+
X-Modhash:
|
112
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
113
|
+
Accept-Encoding:
|
114
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
115
|
+
Accept:
|
116
|
+
- "*/*"
|
117
|
+
response:
|
118
|
+
status:
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
Content-Type:
|
123
|
+
- application/json; charset=UTF-8
|
124
|
+
Cache-Control:
|
125
|
+
- no-cache
|
126
|
+
Pragma:
|
127
|
+
- no-cache
|
128
|
+
Server:
|
129
|
+
- "'; DROP TABLE servertypes; --"
|
130
|
+
Vary:
|
131
|
+
- accept-encoding
|
132
|
+
Date:
|
133
|
+
- Sun, 10 Nov 2013 22:21:28 GMT
|
134
|
+
Content-Length:
|
135
|
+
- '853'
|
136
|
+
Connection:
|
137
|
+
- keep-alive
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"4vqk2qmws04287b9efb205a9c7574de6005fa78313d8bff0ab\",
|
141
|
+
\"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2ylc5\",
|
142
|
+
\"banned_by\": null, \"subreddit\": \"RedditKitTesting\", \"likes\": null,
|
143
|
+
\"replies\": \"\", \"id\": \"cce66qf\", \"gilded\": 0, \"author\": \"samsymons\",
|
144
|
+
\"parent_id\": \"t3_1n002d\", \"approved_by\": null, \"body\": \"Here's a
|
145
|
+
test comment which will also never be deleted.\", \"edited\": false, \"author_flair_css_class\":
|
146
|
+
\"csvclass\", \"downs\": 0, \"body_html\": \"<div class=\\\"md\\\"><p>Here&#39;s
|
147
|
+
a test comment which will also never be deleted.</p>\\n</div>\",
|
148
|
+
\"link_id\": \"t3_1n002d\", \"score_hidden\": false, \"name\": \"t1_cce66qf\",
|
149
|
+
\"created\": 1379988702.0, \"author_flair_text\": \"Test CSV\", \"created_utc\":
|
150
|
+
1379985102.0, \"ups\": 1, \"num_reports\": 0, \"distinguished\": null}}],
|
151
|
+
\"after\": null, \"before\": null}}"
|
152
|
+
http_version:
|
153
|
+
recorded_at: Sun, 10 Nov 2013 22:21:27 GMT
|
154
|
+
- request:
|
155
|
+
method: get
|
156
|
+
uri: http://www.reddit.com/api/info.json?id=t1_cce66qf
|
157
|
+
body:
|
158
|
+
encoding: US-ASCII
|
159
|
+
string: ''
|
160
|
+
headers:
|
161
|
+
User-Agent:
|
162
|
+
- Faraday v0.8.8
|
163
|
+
Cookie:
|
164
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
165
|
+
X-Modhash:
|
166
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
167
|
+
Accept-Encoding:
|
168
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
169
|
+
Accept:
|
170
|
+
- "*/*"
|
171
|
+
response:
|
172
|
+
status:
|
173
|
+
code: 200
|
174
|
+
message: OK
|
175
|
+
headers:
|
176
|
+
Content-Type:
|
177
|
+
- application/json; charset=UTF-8
|
178
|
+
Cache-Control:
|
179
|
+
- no-cache
|
180
|
+
Pragma:
|
181
|
+
- no-cache
|
182
|
+
Server:
|
183
|
+
- "'; DROP TABLE servertypes; --"
|
184
|
+
Vary:
|
185
|
+
- accept-encoding
|
186
|
+
Date:
|
187
|
+
- Sun, 10 Nov 2013 22:21:29 GMT
|
188
|
+
Content-Length:
|
189
|
+
- '853'
|
190
|
+
Connection:
|
191
|
+
- keep-alive
|
192
|
+
body:
|
193
|
+
encoding: UTF-8
|
194
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"swocdt2nho423e7df459cc489390769b3accf0565812f26dda\",
|
195
|
+
\"children\": [{\"kind\": \"t1\", \"data\": {\"subreddit_id\": \"t5_2ylc5\",
|
196
|
+
\"banned_by\": null, \"subreddit\": \"RedditKitTesting\", \"likes\": null,
|
197
|
+
\"replies\": \"\", \"id\": \"cce66qf\", \"gilded\": 0, \"author\": \"samsymons\",
|
198
|
+
\"parent_id\": \"t3_1n002d\", \"approved_by\": null, \"body\": \"Here's a
|
199
|
+
test comment which will also never be deleted.\", \"edited\": false, \"author_flair_css_class\":
|
200
|
+
\"csvclass\", \"downs\": 0, \"body_html\": \"<div class=\\\"md\\\"><p>Here&#39;s
|
201
|
+
a test comment which will also never be deleted.</p>\\n</div>\",
|
202
|
+
\"link_id\": \"t3_1n002d\", \"score_hidden\": false, \"name\": \"t1_cce66qf\",
|
203
|
+
\"created\": 1379988702.0, \"author_flair_text\": \"Test CSV\", \"created_utc\":
|
204
|
+
1379985102.0, \"ups\": 1, \"num_reports\": 0, \"distinguished\": null}}],
|
205
|
+
\"after\": null, \"before\": null}}"
|
206
|
+
http_version:
|
207
|
+
recorded_at: Sun, 10 Nov 2013 22:21:27 GMT
|
208
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,166 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.reddit.com/api/vote
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: id=t3_1n002d&dir=0&api_type=json
|
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:24 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:22 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: http://www.reddit.com/api/info.json?id=t3_1n002d
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.8.8
|
55
|
+
Cookie:
|
56
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
57
|
+
X-Modhash:
|
58
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
|
+
Accept:
|
62
|
+
- "*/*"
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Content-Type:
|
69
|
+
- application/json; charset=UTF-8
|
70
|
+
Cache-Control:
|
71
|
+
- no-cache
|
72
|
+
Pragma:
|
73
|
+
- no-cache
|
74
|
+
Server:
|
75
|
+
- "'; DROP TABLE servertypes; --"
|
76
|
+
Vary:
|
77
|
+
- accept-encoding
|
78
|
+
Date:
|
79
|
+
- Sun, 10 Nov 2013 22:21:24 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '1428'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"sy0cnp9yhj917712534358e7af9dcfbee42485f6ec8e765957\",
|
87
|
+
\"children\": [{\"kind\": \"t3\", \"data\": {\"domain\": \"self.RedditKitTesting\",
|
88
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"RedditKitTesting\",
|
89
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Here&#39;s
|
90
|
+
a test self post. This will never be deleted and can be used to test voting/saving/hiding.</p>\\n</div><!--
|
91
|
+
SC_ON -->\", \"selftext\": \"Here's a test self post. This will never be
|
92
|
+
deleted and can be used to test voting/saving/hiding.\", \"likes\": null,
|
93
|
+
\"secure_media\": null, \"link_flair_text\": \"Test flair\", \"id\": \"1n002d\",
|
94
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
95
|
+
\"samsymons\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\":
|
96
|
+
false, \"hidden\": true, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2ylc5\",
|
97
|
+
\"edited\": 1382729104.0, \"link_flair_css_class\": \"testclass\", \"author_flair_css_class\":
|
98
|
+
\"csvclass\", \"downs\": 0, \"saved\": true, \"is_self\": true, \"permalink\":
|
99
|
+
\"/r/RedditKitTesting/comments/1n002d/test_self_post/\", \"name\": \"t3_1n002d\",
|
100
|
+
\"created\": 1379988320.0, \"url\": \"http://www.reddit.com/r/RedditKitTesting/comments/1n002d/test_self_post/\",
|
101
|
+
\"author_flair_text\": \"Test CSV\", \"title\": \"Test self post\", \"created_utc\":
|
102
|
+
1379984720.0, \"ups\": 1, \"num_comments\": 3, \"visited\": false, \"num_reports\":
|
103
|
+
0, \"distinguished\": null}}], \"after\": null, \"before\": null}}"
|
104
|
+
http_version:
|
105
|
+
recorded_at: Sun, 10 Nov 2013 22:21:23 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: http://www.reddit.com/api/info.json?id=t3_1n002d
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
User-Agent:
|
114
|
+
- Faraday v0.8.8
|
115
|
+
Cookie:
|
116
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
117
|
+
X-Modhash:
|
118
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
119
|
+
Accept-Encoding:
|
120
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
121
|
+
Accept:
|
122
|
+
- "*/*"
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
129
|
+
- application/json; charset=UTF-8
|
130
|
+
Cache-Control:
|
131
|
+
- no-cache
|
132
|
+
Pragma:
|
133
|
+
- no-cache
|
134
|
+
Server:
|
135
|
+
- "'; DROP TABLE servertypes; --"
|
136
|
+
Vary:
|
137
|
+
- accept-encoding
|
138
|
+
Date:
|
139
|
+
- Sun, 10 Nov 2013 22:21:24 GMT
|
140
|
+
Content-Length:
|
141
|
+
- '1428'
|
142
|
+
Connection:
|
143
|
+
- keep-alive
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"wppek5w45se9a372b00717ef52e6e9950519f8b4a7edeea011\",
|
147
|
+
\"children\": [{\"kind\": \"t3\", \"data\": {\"domain\": \"self.RedditKitTesting\",
|
148
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"RedditKitTesting\",
|
149
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Here&#39;s
|
150
|
+
a test self post. This will never be deleted and can be used to test voting/saving/hiding.</p>\\n</div><!--
|
151
|
+
SC_ON -->\", \"selftext\": \"Here's a test self post. This will never be
|
152
|
+
deleted and can be used to test voting/saving/hiding.\", \"likes\": null,
|
153
|
+
\"secure_media\": null, \"link_flair_text\": \"Test flair\", \"id\": \"1n002d\",
|
154
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
155
|
+
\"samsymons\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\":
|
156
|
+
false, \"hidden\": true, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2ylc5\",
|
157
|
+
\"edited\": 1382729104.0, \"link_flair_css_class\": \"testclass\", \"author_flair_css_class\":
|
158
|
+
\"csvclass\", \"downs\": 0, \"saved\": true, \"is_self\": true, \"permalink\":
|
159
|
+
\"/r/RedditKitTesting/comments/1n002d/test_self_post/\", \"name\": \"t3_1n002d\",
|
160
|
+
\"created\": 1379988320.0, \"url\": \"http://www.reddit.com/r/RedditKitTesting/comments/1n002d/test_self_post/\",
|
161
|
+
\"author_flair_text\": \"Test CSV\", \"title\": \"Test self post\", \"created_utc\":
|
162
|
+
1379984720.0, \"distinguished\": null, \"num_comments\": 3, \"visited\": false,
|
163
|
+
\"num_reports\": 0, \"ups\": 1}}], \"after\": null, \"before\": null}}"
|
164
|
+
http_version:
|
165
|
+
recorded_at: Sun, 10 Nov 2013 22:21:23 GMT
|
166
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,226 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.reddit.com/api/info.json?id=t3_1n002d
|
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:26 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '1428'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"zpbanyuasza3d0cfff0c5ca1104bd4bdd3eaab64071b9f6333\",
|
44
|
+
\"children\": [{\"kind\": \"t3\", \"data\": {\"domain\": \"self.RedditKitTesting\",
|
45
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"RedditKitTesting\",
|
46
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Here&#39;s
|
47
|
+
a test self post. This will never be deleted and can be used to test voting/saving/hiding.</p>\\n</div><!--
|
48
|
+
SC_ON -->\", \"selftext\": \"Here's a test self post. This will never be
|
49
|
+
deleted and can be used to test voting/saving/hiding.\", \"likes\": null,
|
50
|
+
\"secure_media\": null, \"link_flair_text\": \"Test flair\", \"id\": \"1n002d\",
|
51
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
52
|
+
\"samsymons\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\":
|
53
|
+
false, \"hidden\": true, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2ylc5\",
|
54
|
+
\"edited\": 1382729104.0, \"link_flair_css_class\": \"testclass\", \"author_flair_css_class\":
|
55
|
+
\"csvclass\", \"downs\": 0, \"saved\": true, \"is_self\": true, \"permalink\":
|
56
|
+
\"/r/RedditKitTesting/comments/1n002d/test_self_post/\", \"name\": \"t3_1n002d\",
|
57
|
+
\"created\": 1379988320.0, \"url\": \"http://www.reddit.com/r/RedditKitTesting/comments/1n002d/test_self_post/\",
|
58
|
+
\"author_flair_text\": \"Test CSV\", \"title\": \"Test self post\", \"created_utc\":
|
59
|
+
1379984720.0, \"ups\": 1, \"num_comments\": 3, \"visited\": false, \"num_reports\":
|
60
|
+
0, \"distinguished\": null}}], \"after\": null, \"before\": null}}"
|
61
|
+
http_version:
|
62
|
+
recorded_at: Sun, 10 Nov 2013 22:21:25 GMT
|
63
|
+
- request:
|
64
|
+
method: post
|
65
|
+
uri: http://www.reddit.com/api/vote
|
66
|
+
body:
|
67
|
+
encoding: US-ASCII
|
68
|
+
string: id=t3_1n002d&dir=0&api_type=json
|
69
|
+
headers:
|
70
|
+
User-Agent:
|
71
|
+
- Faraday v0.8.8
|
72
|
+
Cookie:
|
73
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
74
|
+
X-Modhash:
|
75
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
76
|
+
Content-Type:
|
77
|
+
- application/x-www-form-urlencoded
|
78
|
+
Accept-Encoding:
|
79
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
80
|
+
Accept:
|
81
|
+
- "*/*"
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Content-Type:
|
88
|
+
- application/json; charset=UTF-8
|
89
|
+
Content-Length:
|
90
|
+
- '2'
|
91
|
+
Cache-Control:
|
92
|
+
- no-cache
|
93
|
+
Pragma:
|
94
|
+
- no-cache
|
95
|
+
Server:
|
96
|
+
- "'; DROP TABLE servertypes; --"
|
97
|
+
Date:
|
98
|
+
- Sun, 10 Nov 2013 22:21:26 GMT
|
99
|
+
Connection:
|
100
|
+
- keep-alive
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: "{}"
|
104
|
+
http_version:
|
105
|
+
recorded_at: Sun, 10 Nov 2013 22:21:25 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: http://www.reddit.com/api/info.json?id=t3_1n002d
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
User-Agent:
|
114
|
+
- Faraday v0.8.8
|
115
|
+
Cookie:
|
116
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
117
|
+
X-Modhash:
|
118
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
119
|
+
Accept-Encoding:
|
120
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
121
|
+
Accept:
|
122
|
+
- "*/*"
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
129
|
+
- application/json; charset=UTF-8
|
130
|
+
Cache-Control:
|
131
|
+
- no-cache
|
132
|
+
Pragma:
|
133
|
+
- no-cache
|
134
|
+
Server:
|
135
|
+
- "'; DROP TABLE servertypes; --"
|
136
|
+
Vary:
|
137
|
+
- accept-encoding
|
138
|
+
Date:
|
139
|
+
- Sun, 10 Nov 2013 22:21:27 GMT
|
140
|
+
Content-Length:
|
141
|
+
- '1428'
|
142
|
+
Connection:
|
143
|
+
- keep-alive
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"scodeb6r8220cb050ec6d20c1117b0ce80e64e0a641f0ff104\",
|
147
|
+
\"children\": [{\"kind\": \"t3\", \"data\": {\"domain\": \"self.RedditKitTesting\",
|
148
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"RedditKitTesting\",
|
149
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Here&#39;s
|
150
|
+
a test self post. This will never be deleted and can be used to test voting/saving/hiding.</p>\\n</div><!--
|
151
|
+
SC_ON -->\", \"selftext\": \"Here's a test self post. This will never be
|
152
|
+
deleted and can be used to test voting/saving/hiding.\", \"likes\": null,
|
153
|
+
\"secure_media\": null, \"link_flair_text\": \"Test flair\", \"id\": \"1n002d\",
|
154
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
155
|
+
\"samsymons\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\":
|
156
|
+
false, \"hidden\": true, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2ylc5\",
|
157
|
+
\"edited\": 1382729104.0, \"link_flair_css_class\": \"testclass\", \"author_flair_css_class\":
|
158
|
+
\"csvclass\", \"downs\": 0, \"saved\": true, \"is_self\": true, \"permalink\":
|
159
|
+
\"/r/RedditKitTesting/comments/1n002d/test_self_post/\", \"name\": \"t3_1n002d\",
|
160
|
+
\"created\": 1379988320.0, \"url\": \"http://www.reddit.com/r/RedditKitTesting/comments/1n002d/test_self_post/\",
|
161
|
+
\"author_flair_text\": \"Test CSV\", \"title\": \"Test self post\", \"created_utc\":
|
162
|
+
1379984720.0, \"ups\": 1, \"num_comments\": 3, \"visited\": false, \"num_reports\":
|
163
|
+
0, \"distinguished\": null}}], \"after\": null, \"before\": null}}"
|
164
|
+
http_version:
|
165
|
+
recorded_at: Sun, 10 Nov 2013 22:21:26 GMT
|
166
|
+
- request:
|
167
|
+
method: get
|
168
|
+
uri: http://www.reddit.com/api/info.json?id=t3_1n002d
|
169
|
+
body:
|
170
|
+
encoding: US-ASCII
|
171
|
+
string: ''
|
172
|
+
headers:
|
173
|
+
User-Agent:
|
174
|
+
- Faraday v0.8.8
|
175
|
+
Cookie:
|
176
|
+
- reddit_session=20332937,2013-11-10T11:35:59,2077074c26ccd8ec123c996b77eeb7afb6090af9
|
177
|
+
X-Modhash:
|
178
|
+
- 36zuxndsdf695692a68e32384990478663dadfc30f0a1dd959
|
179
|
+
Accept-Encoding:
|
180
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
181
|
+
Accept:
|
182
|
+
- "*/*"
|
183
|
+
response:
|
184
|
+
status:
|
185
|
+
code: 200
|
186
|
+
message: OK
|
187
|
+
headers:
|
188
|
+
Content-Type:
|
189
|
+
- application/json; charset=UTF-8
|
190
|
+
Cache-Control:
|
191
|
+
- no-cache
|
192
|
+
Pragma:
|
193
|
+
- no-cache
|
194
|
+
Server:
|
195
|
+
- "'; DROP TABLE servertypes; --"
|
196
|
+
Vary:
|
197
|
+
- accept-encoding
|
198
|
+
Date:
|
199
|
+
- Sun, 10 Nov 2013 22:21:27 GMT
|
200
|
+
Content-Length:
|
201
|
+
- '1428'
|
202
|
+
Connection:
|
203
|
+
- keep-alive
|
204
|
+
body:
|
205
|
+
encoding: UTF-8
|
206
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"gcg498vptx016d282a853a76806131ccd2f7dc3d0451c4ef63\",
|
207
|
+
\"children\": [{\"kind\": \"t3\", \"data\": {\"domain\": \"self.RedditKitTesting\",
|
208
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"RedditKitTesting\",
|
209
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Here&#39;s
|
210
|
+
a test self post. This will never be deleted and can be used to test voting/saving/hiding.</p>\\n</div><!--
|
211
|
+
SC_ON -->\", \"selftext\": \"Here's a test self post. This will never be
|
212
|
+
deleted and can be used to test voting/saving/hiding.\", \"likes\": null,
|
213
|
+
\"secure_media\": null, \"link_flair_text\": \"Test flair\", \"id\": \"1n002d\",
|
214
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
215
|
+
\"samsymons\", \"media\": null, \"score\": 1, \"approved_by\": null, \"over_18\":
|
216
|
+
false, \"hidden\": true, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2ylc5\",
|
217
|
+
\"edited\": 1382729104.0, \"link_flair_css_class\": \"testclass\", \"author_flair_css_class\":
|
218
|
+
\"csvclass\", \"downs\": 0, \"saved\": true, \"is_self\": true, \"permalink\":
|
219
|
+
\"/r/RedditKitTesting/comments/1n002d/test_self_post/\", \"name\": \"t3_1n002d\",
|
220
|
+
\"created\": 1379988320.0, \"url\": \"http://www.reddit.com/r/RedditKitTesting/comments/1n002d/test_self_post/\",
|
221
|
+
\"author_flair_text\": \"Test CSV\", \"title\": \"Test self post\", \"created_utc\":
|
222
|
+
1379984720.0, \"ups\": 1, \"num_comments\": 3, \"visited\": false, \"num_reports\":
|
223
|
+
0, \"distinguished\": null}}], \"after\": null, \"before\": null}}"
|
224
|
+
http_version:
|
225
|
+
recorded_at: Sun, 10 Nov 2013 22:21:26 GMT
|
226
|
+
recorded_with: VCR 2.6.0
|