discourse_api 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/examples/invite_users.rb +3 -0
- data/examples/sso.rb +14 -0
- data/examples/topic_lists.rb +4 -0
- data/lib/discourse_api/api/categories.rb +1 -1
- data/lib/discourse_api/api/invite.rb +4 -0
- data/lib/discourse_api/api/notifications.rb +10 -0
- data/lib/discourse_api/api/private_messages.rb +10 -0
- data/lib/discourse_api/api/sso.rb +17 -0
- data/lib/discourse_api/api/topics.rb +12 -0
- data/lib/discourse_api/api/users.rb +3 -3
- data/lib/discourse_api/client.rb +6 -0
- data/lib/discourse_api/version.rb +1 -1
- data/lib/single_sign_on.rb +98 -0
- data/spec/discourse_api/api/categories_spec.rb +2 -8
- data/spec/discourse_api/api/notifications_spec.rb +24 -0
- data/spec/discourse_api/api/private_messages_spec.rb +22 -0
- data/spec/discourse_api/api/search_spec.rb +1 -5
- data/spec/discourse_api/api/topics_spec.rb +30 -17
- data/spec/discourse_api/api/users_spec.rb +48 -12
- data/spec/discourse_api/client_spec.rb +4 -0
- data/spec/fixtures/categories.json +72 -1
- data/spec/fixtures/category_latest_topics.json +92 -1
- data/spec/fixtures/hot.json +113 -1
- data/spec/fixtures/latest.json +115 -1
- data/spec/fixtures/new.json +113 -1
- data/spec/fixtures/notifications.json +16 -0
- data/spec/fixtures/private_messages.json +69 -0
- data/spec/fixtures/search.json +24 -1
- data/spec/fixtures/topic.json +739 -1
- data/spec/fixtures/topic_invite_user.json +3 -0
- data/spec/fixtures/topics_created_by.json +49 -1
- data/spec/fixtures/user.json +65 -1
- data/spec/fixtures/user_update_user.json +3 -0
- data/spec/fixtures/user_update_username.json +3 -0
- metadata +21 -2
data/spec/fixtures/new.json
CHANGED
@@ -1 +1,113 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"users": [
|
3
|
+
{
|
4
|
+
"id": 1,
|
5
|
+
"username": "test_user",
|
6
|
+
"avatar_template": "//www.gravatar.com/avatar/test.png?s={size}&r=pg&d=identicon"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"topic_list": {
|
10
|
+
"can_create_topic": true,
|
11
|
+
"draft": null,
|
12
|
+
"draft_key": "new_topic",
|
13
|
+
"draft_sequence": 0,
|
14
|
+
"topics": [
|
15
|
+
{
|
16
|
+
"id": 1,
|
17
|
+
"title": "Test topic #1",
|
18
|
+
"fancy_title": "Test topic #1",
|
19
|
+
"slug": "test-topic-1",
|
20
|
+
"posts_count": 1,
|
21
|
+
"reply_count": 0,
|
22
|
+
"highest_post_number": 1,
|
23
|
+
"image_url": null,
|
24
|
+
"created_at": "2013-11-07T03:02:03.615-05:00",
|
25
|
+
"last_posted_at": "2013-11-07T09:42:57.094-05:00",
|
26
|
+
"bumped": true,
|
27
|
+
"bumped_at": "2013-11-07T09:42:57.094-05:00",
|
28
|
+
"unseen": true,
|
29
|
+
"pinned": false,
|
30
|
+
"visible": true,
|
31
|
+
"closed": false,
|
32
|
+
"archived": false,
|
33
|
+
"views": 20,
|
34
|
+
"like_count": 1,
|
35
|
+
"has_best_of": false,
|
36
|
+
"archetype": "regular",
|
37
|
+
"last_poster_username": "test_user",
|
38
|
+
"category_id": 1,
|
39
|
+
"posters": [
|
40
|
+
{
|
41
|
+
"extras": null,
|
42
|
+
"description": "Original Poster, Most Recent Poster",
|
43
|
+
"user_id": 1
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"id": 2,
|
49
|
+
"title": "Test topic #2",
|
50
|
+
"fancy_title": "Test topic #2",
|
51
|
+
"slug": "test-topic-2",
|
52
|
+
"posts_count": 1,
|
53
|
+
"reply_count": 0,
|
54
|
+
"highest_post_number": 1,
|
55
|
+
"image_url": null,
|
56
|
+
"created_at": "2013-11-06T12:21:37.811-05:00",
|
57
|
+
"last_posted_at": "2013-11-07T05:41:55.171-05:00",
|
58
|
+
"bumped": true,
|
59
|
+
"bumped_at": "2013-11-07T05:41:55.171-05:00",
|
60
|
+
"unseen": true,
|
61
|
+
"pinned": false,
|
62
|
+
"visible": true,
|
63
|
+
"closed": false,
|
64
|
+
"archived": false,
|
65
|
+
"views": 50,
|
66
|
+
"like_count": 0,
|
67
|
+
"has_best_of": false,
|
68
|
+
"archetype": "regular",
|
69
|
+
"last_poster_username": "cowboytomash",
|
70
|
+
"category_id": 1,
|
71
|
+
"posters": [
|
72
|
+
{
|
73
|
+
"extras": null,
|
74
|
+
"description": "Original Poster, Most Recent Poster",
|
75
|
+
"user_id": 1
|
76
|
+
}
|
77
|
+
]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"id": 3,
|
81
|
+
"title": "Test topic #3",
|
82
|
+
"fancy_title": "Test topic #3",
|
83
|
+
"slug": "test-topic-3",
|
84
|
+
"posts_count": 1,
|
85
|
+
"reply_count": 0,
|
86
|
+
"highest_post_number": 1,
|
87
|
+
"image_url": null,
|
88
|
+
"created_at": "2013-11-07T02:43:19.243-05:00",
|
89
|
+
"last_posted_at": "2013-11-07T02:43:19.389-05:00",
|
90
|
+
"bumped": true,
|
91
|
+
"bumped_at": "2013-11-07T02:43:19.389-05:00",
|
92
|
+
"unseen": true,
|
93
|
+
"pinned": false,
|
94
|
+
"visible": true,
|
95
|
+
"closed": false,
|
96
|
+
"archived": false,
|
97
|
+
"views": 14,
|
98
|
+
"like_count": 0,
|
99
|
+
"has_best_of": false,
|
100
|
+
"archetype": "regular",
|
101
|
+
"last_poster_username": "akshar",
|
102
|
+
"category_id": 1,
|
103
|
+
"posters": [
|
104
|
+
{
|
105
|
+
"extras": null,
|
106
|
+
"description": "Original Poster, Most Recent Poster",
|
107
|
+
"user_id": 1
|
108
|
+
}
|
109
|
+
]
|
110
|
+
}
|
111
|
+
]
|
112
|
+
}
|
113
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"notification_type": 9,
|
4
|
+
"read": false,
|
5
|
+
"created_at": "2014-04-02T11:58:00.670-04:00",
|
6
|
+
"post_number": 2,
|
7
|
+
"topic_id": 14404,
|
8
|
+
"slug": "json-feed-for-notifications",
|
9
|
+
"data": {
|
10
|
+
"topic_title": ".json feed for notifications",
|
11
|
+
"original_post_id": 47600,
|
12
|
+
"original_username": "riking",
|
13
|
+
"display_username": "riking"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
]
|
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"users": [
|
3
|
+
{
|
4
|
+
"id": 1,
|
5
|
+
"username": "test_user",
|
6
|
+
"uploaded_avatar_id": null,
|
7
|
+
"avatar_template": "/letter_avatar/test_user/{size}/2.png"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"id": 2,
|
11
|
+
"username": "batman",
|
12
|
+
"uploaded_avatar_id": 3,
|
13
|
+
"avatar_template": "/user_avatar/localhost/batman/{size}/3.png"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"topic_list": {
|
17
|
+
"can_create_topic": true,
|
18
|
+
"draft": null,
|
19
|
+
"draft_key": "new_topic",
|
20
|
+
"draft_sequence": 1,
|
21
|
+
"topics": [
|
22
|
+
{
|
23
|
+
"id": 11,
|
24
|
+
"title": "Welcome to Discourse!",
|
25
|
+
"fancy_title": "Welcome to Discourse!",
|
26
|
+
"slug": "welcome-to-discourse",
|
27
|
+
"posts_count": 1,
|
28
|
+
"reply_count": 0,
|
29
|
+
"highest_post_number": 1,
|
30
|
+
"image_url": "http://www.discourse.org/images/welcome/progress-bar.png",
|
31
|
+
"created_at": "2014-09-13T10:27:19.714-04:00",
|
32
|
+
"last_posted_at": "2014-09-13T10:27:20.140-04:00",
|
33
|
+
"bumped": true,
|
34
|
+
"bumped_at": "2014-09-13T10:27:20.140-04:00",
|
35
|
+
"unseen": false,
|
36
|
+
"last_read_post_number": 1,
|
37
|
+
"unread": 0,
|
38
|
+
"new_posts": 0,
|
39
|
+
"pinned": false,
|
40
|
+
"unpinned": null,
|
41
|
+
"visible": true,
|
42
|
+
"closed": false,
|
43
|
+
"archived": false,
|
44
|
+
"notification_level": 3,
|
45
|
+
"views": 1,
|
46
|
+
"like_count": 0,
|
47
|
+
"starred": false,
|
48
|
+
"has_summary": false,
|
49
|
+
"archetype": "private_message",
|
50
|
+
"last_poster_username": "test_user",
|
51
|
+
"category_id": null,
|
52
|
+
"posters": [
|
53
|
+
{
|
54
|
+
"extras": null,
|
55
|
+
"description": "Original Poster, Most Recent Poster",
|
56
|
+
"user_id": 1
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"participants": [
|
60
|
+
{
|
61
|
+
"extras": null,
|
62
|
+
"description": null,
|
63
|
+
"user_id": 2
|
64
|
+
}
|
65
|
+
]
|
66
|
+
}
|
67
|
+
]
|
68
|
+
}
|
69
|
+
}
|
data/spec/fixtures/search.json
CHANGED
@@ -1 +1,24 @@
|
|
1
|
-
[
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"type": "topic",
|
4
|
+
"name": "Topics",
|
5
|
+
"more": true,
|
6
|
+
"results": [
|
7
|
+
{
|
8
|
+
"id": 1,
|
9
|
+
"title": "Test topic #1",
|
10
|
+
"url": "/t/test-topic-1/1"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"id": 2,
|
14
|
+
"title": "Test topic #2",
|
15
|
+
"url": "/t/test-topic-2/2"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"id": 3,
|
19
|
+
"title": "Test topic #3",
|
20
|
+
"url": "/t/test-topic-3/3"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
]
|
data/spec/fixtures/topic.json
CHANGED
@@ -1 +1,739 @@
|
|
1
|
-
{"post_stream":{"posts":[{"id":83,"name":"Sam Saffron","username":"samsaffron","avatar_template":"//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon","created_at":"2013-02-04T15:26:26.278-05:00","cooked":"<p>Welcome!</p>\n\n<h3>Try is a sandbox, a safe place to play with Discourse and its features.</h3>\n\n<p>This site is reset every day (or even more often). <strong>Any accounts or posts you create here will not exist tomorrow!</strong></p>\n\n<p>Feel free to experiment here in the sandbox, but always be civil and respectful -- <em>and don't post anything here you wouldn't want lost forever!</em></p>\n\n<p>If you see anything here that is out of bounds, <strong>please flag it</strong>. Help keep our community clean. We monitor the flags regularly.</p>\n\n<ul>\n<li><p>For more information on the Discourse project and its goals, visit <a href=\"http://www.discourse.org\" rel=\"nofollow\">http://www.discourse.org</a></p></li>\n<li><p>If you wish to participate in the Discourse development process, visit <a href=\"http://meta.discourse.org\" rel=\"nofollow\">http://meta.discourse.org</a></p></li>\n<li><p>If you want to check out the open source Discourse code, or set up a Discourse forum, visit <a href=\"https://github.com/discourse/discourse\" rel=\"nofollow\">https://github.com/discourse/discourse</a></p></li>\n</ul>","post_number":1,"post_type":1,"updated_at":"2013-04-30T14:33:37.273-04:00","reply_count":1,"reply_to_post_number":null,"quote_count":0,"avg_time":17,"incoming_link_count":0,"reads":34,"score":12.65,"yours":false,"topic_slug":"this-site-is-a-sandbox-it-is-reset-every-day","topic_id":57,"display_username":"Sam Saffron","version":5,"can_edit":null,"can_delete":null,"can_recover":false,"link_counts":[{"url":"http://meta.discourse.org","internal":false,"reflection":false,"clicks":7},{"url":"http://www.discourse.org","internal":false,"reflection":false,"clicks":4},{"url":"https://github.com/discourse/discourse","internal":false,"reflection":false,"clicks":0}],"read":false,"user_title":null,"actions_summary":[{"id":2,"count":0,"hidden":false,"can_act":null},{"id":3,"count":0,"hidden":false,"can_act":null},{"id":4,"count":0,"hidden":false,"can_act":null},{"id":5,"count":0,"hidden":true,"can_act":null},{"id":6,"count":0,"hidden":false,"can_act":null},{"id":7,"count":0,"hidden":false,"can_act":null},{"id":8,"count":0,"hidden":false,"can_act":null}],"moderator":false,"staff":true,"user_id":15,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false},{"id":84,"name":"Sam Saffron","username":"samsaffron","avatar_template":"//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon","created_at":"2013-02-04T15:26:32.362-05:00","cooked":"<p>This topic is now pinned. It will appear at the top of its category.</p>","post_number":2,"post_type":2,"updated_at":"2013-02-04T15:26:32.362-05:00","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":18,"incoming_link_count":0,"reads":34,"score":7.7,"yours":false,"topic_slug":"this-site-is-a-sandbox-it-is-reset-every-day","topic_id":57,"display_username":"Sam Saffron","version":1,"can_edit":null,"can_delete":null,"can_recover":false,"read":false,"user_title":null,"actions_summary":[{"id":2,"count":0,"hidden":false,"can_act":null},{"id":3,"count":0,"hidden":false,"can_act":null},{"id":4,"count":0,"hidden":false,"can_act":null},{"id":5,"count":0,"hidden":true,"can_act":null},{"id":6,"count":0,"hidden":false,"can_act":null},{"id":7,"count":0,"hidden":false,"can_act":null},{"id":8,"count":0,"hidden":false,"can_act":null}],"moderator":false,"staff":true,"user_id":15,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false},{"id":86,"name":"Adam Davis","username":"stienman","avatar_template":"//www.gravatar.com/avatar/281486f2a20201375414760dd347951d.png?s={size}&r=pg&d=identicon","created_at":"2013-02-04T15:29:00.843-05:00","cooked":"<p><img src=\"http://i288.photobucket.com/albums/ll164/stienman/ahh.gif\" alt=\"image\" title=\"\" width=\"36\" height=\"22\"></p>","post_number":3,"post_type":1,"updated_at":"2013-02-04T15:29:00.843-05:00","reply_count":0,"reply_to_post_number":null,"quote_count":0,"avg_time":19,"incoming_link_count":2,"reads":34,"score":152.75,"yours":false,"topic_slug":"this-site-is-a-sandbox-it-is-reset-every-day","topic_id":57,"display_username":"Adam Davis","version":1,"can_edit":null,"can_delete":null,"can_recover":false,"read":false,"user_title":null,"actions_summary":[{"id":2,"count":5,"hidden":false,"can_act":null},{"id":3,"count":0,"hidden":false,"can_act":null},{"id":4,"count":0,"hidden":false,"can_act":null},{"id":5,"count":0,"hidden":true,"can_act":null},{"id":6,"count":0,"hidden":false,"can_act":null},{"id":7,"count":0,"hidden":false,"can_act":null},{"id":8,"count":0,"hidden":false,"can_act":null}],"moderator":false,"staff":true,"user_id":23,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false},{"id":226,"name":"Stefan Plattner","username":"splattne","avatar_template":"//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon","created_at":"2013-02-05T12:14:17.364-05:00","cooked":"<p>What? So I have to post this every day? <br><img src=\"http://q101.com/wp-content/uploads/2012/02/GroundhogDay.gif\" alt=\"image\" title=\"\" width=\"650\" height=\"824\"></p>","post_number":14,"post_type":1,"updated_at":"2013-02-05T12:14:17.364-05:00","reply_count":0,"reply_to_post_number":1,"quote_count":0,"avg_time":16,"incoming_link_count":0,"reads":22,"score":170.2,"yours":false,"topic_slug":"this-site-is-a-sandbox-it-is-reset-every-day","topic_id":57,"display_username":"Stefan Plattner","version":1,"can_edit":null,"can_delete":null,"can_recover":false,"read":false,"user_title":null,"reply_to_user":{"username":"samsaffron","avatar_template":"//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon"},"actions_summary":[{"id":2,"count":5,"hidden":false,"can_act":null},{"id":3,"count":0,"hidden":false,"can_act":null},{"id":4,"count":0,"hidden":false,"can_act":null},{"id":5,"count":0,"hidden":true,"can_act":null},{"id":6,"count":0,"hidden":false,"can_act":null},{"id":7,"count":0,"hidden":false,"can_act":null},{"id":8,"count":0,"hidden":false,"can_act":null}],"moderator":false,"staff":true,"user_id":50,"hidden":false,"hidden_reason_id":null,"trust_level":1,"deleted_at":null,"user_deleted":false}],"stream":[83,84,86,226]},"draft":null,"draft_key":"topic_57","draft_sequence":null,"pinned":true,"details":{"auto_close_at":null,"created_by":{"id":15,"username":"samsaffron","avatar_template":"//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon"},"last_poster":{"id":50,"username":"splattne","avatar_template":"//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon"},"participants":[{"id":15,"username":"samsaffron","avatar_template":"//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon","post_count":2},{"id":23,"username":"stienman","avatar_template":"//www.gravatar.com/avatar/281486f2a20201375414760dd347951d.png?s={size}&r=pg&d=identicon","post_count":1},{"id":50,"username":"splattne","avatar_template":"//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon","post_count":1}],"suggested_topics":[{"id":62,"title":"Funny pictures (Keep 'em clean, folks!)","fancy_title":"Funny pictures (Keep ‘em clean, folks!)","slug":"funny-pictures-keep-em-clean-folks","posts_count":39,"reply_count":3,"highest_post_number":39,"image_url":"http://cdn.discourse.org/uploads/try2_discourse/27/nt3b8.jpeg","created_at":"2013-02-04T15:42:30.290-05:00","last_posted_at":"2013-11-06T02:47:27.135-05:00","bumped":true,"bumped_at":"2013-11-06T03:02:06.494-05:00","unseen":false,"pinned":false,"visible":true,"closed":false,"archived":false,"archetype":"regular","like_count":10,"views":186,"category":{"id":13,"name":"uncategPorized","color":"AB9364","text_color":"FFFFFF","slug":"uncategorized","topic_count":21,"description":"","topic_url":null,"hotness":5.0,"read_restricted":false,"permission":null,"available_groups":["admins","everyone","moderators","staff","trust_level_1","trust_level_2","trust_level_3","trust_level_4","trust_level_5"],"auto_close_days":null,"group_permissions":[{"permission_type":1,"group_name":"everyone"}],"position":1}},{"id":152,"title":"What are good resolutions to the enviroment?","fancy_title":"What are good resolutions to the enviroment?","slug":"what-are-good-resolutions-to-the-enviroment","posts_count":3,"reply_count":0,"highest_post_number":3,"image_url":null,"created_at":"2013-11-05T02:12:37.113-05:00","last_posted_at":"2013-11-05T11:32:31.259-05:00","bumped":true,"bumped_at":"2013-11-05T11:32:31.259-05:00","unseen":false,"pinned":false,"visible":true,"closed":false,"archived":false,"archetype":"regular","like_count":0,"views":50,"category":{"id":13,"name":"uncategorized","color":"AB9364","text_color":"FFFFFF","slug":"uncategorized","topic_count":21,"description":"","topic_url":null,"hotness":5.0,"read_restricted":false,"permission":null,"available_groups":["admins","everyone","moderators","staff","trust_level_1","trust_level_2","trust_level_3","trust_level_4","trust_level_5"],"auto_close_days":null,"group_permissions":[{"permission_type":1,"group_name":"everyone"}],"position":1}},{"id":87,"title":"Hilarious Picture Dump (Image Heavy)","fancy_title":"Hilarious Picture Dump (Image Heavy)","slug":"hilarious-picture-dump-image-heavy","posts_count":4,"reply_count":0,"highest_post_number":4,"image_url":"http://cdn.discourse.org/uploads/try2_discourse/33/1208514086be7cd9d27c00836da43ab15d00ec7be_4c256628scaled.jpeg","created_at":"2013-02-04T21:07:51.246-05:00","last_posted_at":"2013-02-05T12:52:47.243-05:00","bumped":true,"bumped_at":"2013-06-26T01:45:24.590-04:00","unseen":false,"pinned":false,"visible":true,"closed":false,"archived":false,"archetype":"regular","like_count":0,"views":69,"category":{"id":13,"name":"uncategorized","color":"AB9364","text_color":"FFFFFF","slug":"uncategorized","topic_count":21,"description":"","topic_url":null,"hotness":5.0,"read_restricted":false,"permission":null,"available_groups":["admins","everyone","moderators","staff","trust_level_1","trust_level_2","trust_level_3","trust_level_4","trust_level_5"],"auto_close_days":null,"group_permissions":[{"permission_type":1,"group_name":"everyone"}],"position":1}},{"id":197,"title":"Replying as a new topic","fancy_title":"Replying as a new topic","slug":"replying-as-a-new-topic","posts_count":1,"reply_count":0,"highest_post_number":1,"image_url":null,"created_at":"2013-11-06T00:57:00.177-05:00","last_posted_at":"2013-11-06T00:57:00.326-05:00","bumped":true,"bumped_at":"2013-11-06T00:57:00.326-05:00","unseen":false,"pinned":false,"visible":true,"closed":false,"archived":false,"archetype":"regular","like_count":0,"views":23,"category":{"id":13,"name":"uncategorized","color":"AB9364","text_color":"FFFFFF","slug":"uncategorized","topic_count":21,"description":"","topic_url":null,"hotness":5.0,"read_restricted":false,"permission":null,"available_groups":["admins","everyone","moderators","staff","trust_level_1","trust_level_2","trust_level_3","trust_level_4","trust_level_5"],"auto_close_days":null,"group_permissions":[{"permission_type":1,"group_name":"everyone"}],"position":1}},{"id":157,"title":"What is your opinion on the movie hunger game?","fancy_title":"What is your opinion on the movie hunger game?","slug":"what-is-your-opinion-on-the-movie-hunger-game","posts_count":1,"reply_count":0,"highest_post_number":1,"image_url":null,"created_at":"2013-11-05T03:59:13.194-05:00","last_posted_at":"2013-11-05T03:59:13.343-05:00","bumped":true,"bumped_at":"2013-11-05T03:59:13.343-05:00","unseen":false,"pinned":false,"visible":true,"closed":false,"archived":false,"archetype":"regular","like_count":1,"views":23,"category":{"id":13,"name":"uncategorized","color":"AB9364","text_color":"FFFFFF","slug":"uncategorized","topic_count":21,"description":"","topic_url":null,"hotness":5.0,"read_restricted":false,"permission":null,"available_groups":["admins","everyone","moderators","staff","trust_level_1","trust_level_2","trust_level_3","trust_level_4","trust_level_5"],"auto_close_days":null,"group_permissions":[{"permission_type":1,"group_name":"everyone"}],"position":1}}],"links":[{"url":"http://meta.discourse.org","title":null,"fancy_title":null,"internal":false,"reflection":false,"clicks":"7","user_id":15},{"url":"http://www.discourse.org","title":null,"fancy_title":null,"internal":false,"reflection":false,"clicks":"4","user_id":15},{"url":"https://github.com/discourse/discourse","title":null,"fancy_title":null,"internal":false,"reflection":false,"clicks":"0","user_id":15},{"url":"/users/pekka.gaiser","title":null,"fancy_title":null,"internal":true,"reflection":false,"clicks":"0","user_id":9},{"url":"http://dev.discourse.org/t/general-bugs-list/92/365)","title":null,"fancy_title":null,"internal":false,"reflection":false,"clicks":"0","user_id":9},{"url":"/users/pekka","title":null,"fancy_title":null,"internal":true,"reflection":false,"clicks":"0","user_id":9}]},"highest_post_number":14,"deleted_by":null,"id":57,"title":"THIS SITE IS A SANDBOX -- it is reset every day","fancy_title":"THIS SITE IS A SANDBOX – it is reset every day","posts_count":4,"created_at":"2013-02-04T15:26:25.977-05:00","views":268,"reply_count":9,"last_posted_at":"2013-02-05T12:14:17.364-05:00","visible":true,"closed":false,"archived":false,"has_best_of":false,"archetype":"regular","slug":"this-site-is-a-sandbox-it-is-reset-every-day","category_id":13,"deleted_at":null}
|
1
|
+
{
|
2
|
+
"post_stream": {
|
3
|
+
"posts": [
|
4
|
+
{
|
5
|
+
"id": 83,
|
6
|
+
"name": "Sam Saffron",
|
7
|
+
"username": "samsaffron",
|
8
|
+
"avatar_template": "//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon",
|
9
|
+
"created_at": "2013-02-04T15:26:26.278-05:00",
|
10
|
+
"cooked": "<p>Welcome!</p>\n\n<h3>Try is a sandbox, a safe place to play with Discourse and its features.</h3>\n\n<p>This site is reset every day (or even more often). <strong>Any accounts or posts you create here will not exist tomorrow!</strong></p>\n\n<p>Feel free to experiment here in the sandbox, but always be civil and respectful -- <em>and don't post anything here you wouldn't want lost forever!</em></p>\n\n<p>If you see anything here that is out of bounds, <strong>please flag it</strong>. Help keep our community clean. We monitor the flags regularly.</p>\n\n<ul>\n<li><p>For more information on the Discourse project and its goals, visit <a href=\"http://www.discourse.org\" rel=\"nofollow\">http://www.discourse.org</a></p></li>\n<li><p>If you wish to participate in the Discourse development process, visit <a href=\"http://meta.discourse.org\" rel=\"nofollow\">http://meta.discourse.org</a></p></li>\n<li><p>If you want to check out the open source Discourse code, or set up a Discourse forum, visit <a href=\"https://github.com/discourse/discourse\" rel=\"nofollow\">https://github.com/discourse/discourse</a></p></li>\n</ul>",
|
11
|
+
"post_number": 1,
|
12
|
+
"post_type": 1,
|
13
|
+
"updated_at": "2013-04-30T14:33:37.273-04:00",
|
14
|
+
"reply_count": 1,
|
15
|
+
"reply_to_post_number": null,
|
16
|
+
"quote_count": 0,
|
17
|
+
"avg_time": 17,
|
18
|
+
"incoming_link_count": 0,
|
19
|
+
"reads": 34,
|
20
|
+
"score": 12.65,
|
21
|
+
"yours": false,
|
22
|
+
"topic_slug": "this-site-is-a-sandbox-it-is-reset-every-day",
|
23
|
+
"topic_id": 57,
|
24
|
+
"display_username": "Sam Saffron",
|
25
|
+
"version": 5,
|
26
|
+
"can_edit": null,
|
27
|
+
"can_delete": null,
|
28
|
+
"can_recover": false,
|
29
|
+
"link_counts": [
|
30
|
+
{
|
31
|
+
"url": "http://meta.discourse.org",
|
32
|
+
"internal": false,
|
33
|
+
"reflection": false,
|
34
|
+
"clicks": 7
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"url": "http://www.discourse.org",
|
38
|
+
"internal": false,
|
39
|
+
"reflection": false,
|
40
|
+
"clicks": 4
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"url": "https://github.com/discourse/discourse",
|
44
|
+
"internal": false,
|
45
|
+
"reflection": false,
|
46
|
+
"clicks": 0
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"read": false,
|
50
|
+
"user_title": null,
|
51
|
+
"actions_summary": [
|
52
|
+
{
|
53
|
+
"id": 2,
|
54
|
+
"count": 0,
|
55
|
+
"hidden": false,
|
56
|
+
"can_act": null
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"id": 3,
|
60
|
+
"count": 0,
|
61
|
+
"hidden": false,
|
62
|
+
"can_act": null
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"id": 4,
|
66
|
+
"count": 0,
|
67
|
+
"hidden": false,
|
68
|
+
"can_act": null
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"id": 5,
|
72
|
+
"count": 0,
|
73
|
+
"hidden": true,
|
74
|
+
"can_act": null
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"id": 6,
|
78
|
+
"count": 0,
|
79
|
+
"hidden": false,
|
80
|
+
"can_act": null
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"id": 7,
|
84
|
+
"count": 0,
|
85
|
+
"hidden": false,
|
86
|
+
"can_act": null
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"id": 8,
|
90
|
+
"count": 0,
|
91
|
+
"hidden": false,
|
92
|
+
"can_act": null
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"moderator": false,
|
96
|
+
"staff": true,
|
97
|
+
"user_id": 15,
|
98
|
+
"hidden": false,
|
99
|
+
"hidden_reason_id": null,
|
100
|
+
"trust_level": 1,
|
101
|
+
"deleted_at": null,
|
102
|
+
"user_deleted": false
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"id": 84,
|
106
|
+
"name": "Sam Saffron",
|
107
|
+
"username": "samsaffron",
|
108
|
+
"avatar_template": "//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon",
|
109
|
+
"created_at": "2013-02-04T15:26:32.362-05:00",
|
110
|
+
"cooked": "<p>This topic is now pinned. It will appear at the top of its category.</p>",
|
111
|
+
"post_number": 2,
|
112
|
+
"post_type": 2,
|
113
|
+
"updated_at": "2013-02-04T15:26:32.362-05:00",
|
114
|
+
"reply_count": 0,
|
115
|
+
"reply_to_post_number": null,
|
116
|
+
"quote_count": 0,
|
117
|
+
"avg_time": 18,
|
118
|
+
"incoming_link_count": 0,
|
119
|
+
"reads": 34,
|
120
|
+
"score": 7.7,
|
121
|
+
"yours": false,
|
122
|
+
"topic_slug": "this-site-is-a-sandbox-it-is-reset-every-day",
|
123
|
+
"topic_id": 57,
|
124
|
+
"display_username": "Sam Saffron",
|
125
|
+
"version": 1,
|
126
|
+
"can_edit": null,
|
127
|
+
"can_delete": null,
|
128
|
+
"can_recover": false,
|
129
|
+
"read": false,
|
130
|
+
"user_title": null,
|
131
|
+
"actions_summary": [
|
132
|
+
{
|
133
|
+
"id": 2,
|
134
|
+
"count": 0,
|
135
|
+
"hidden": false,
|
136
|
+
"can_act": null
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"id": 3,
|
140
|
+
"count": 0,
|
141
|
+
"hidden": false,
|
142
|
+
"can_act": null
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"id": 4,
|
146
|
+
"count": 0,
|
147
|
+
"hidden": false,
|
148
|
+
"can_act": null
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"id": 5,
|
152
|
+
"count": 0,
|
153
|
+
"hidden": true,
|
154
|
+
"can_act": null
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"id": 6,
|
158
|
+
"count": 0,
|
159
|
+
"hidden": false,
|
160
|
+
"can_act": null
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"id": 7,
|
164
|
+
"count": 0,
|
165
|
+
"hidden": false,
|
166
|
+
"can_act": null
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"id": 8,
|
170
|
+
"count": 0,
|
171
|
+
"hidden": false,
|
172
|
+
"can_act": null
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"moderator": false,
|
176
|
+
"staff": true,
|
177
|
+
"user_id": 15,
|
178
|
+
"hidden": false,
|
179
|
+
"hidden_reason_id": null,
|
180
|
+
"trust_level": 1,
|
181
|
+
"deleted_at": null,
|
182
|
+
"user_deleted": false
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"id": 86,
|
186
|
+
"name": "Adam Davis",
|
187
|
+
"username": "stienman",
|
188
|
+
"avatar_template": "//www.gravatar.com/avatar/281486f2a20201375414760dd347951d.png?s={size}&r=pg&d=identicon",
|
189
|
+
"created_at": "2013-02-04T15:29:00.843-05:00",
|
190
|
+
"cooked": "<p><img src=\"http://i288.photobucket.com/albums/ll164/stienman/ahh.gif\" alt=\"image\" title=\"\" width=\"36\" height=\"22\"></p>",
|
191
|
+
"post_number": 3,
|
192
|
+
"post_type": 1,
|
193
|
+
"updated_at": "2013-02-04T15:29:00.843-05:00",
|
194
|
+
"reply_count": 0,
|
195
|
+
"reply_to_post_number": null,
|
196
|
+
"quote_count": 0,
|
197
|
+
"avg_time": 19,
|
198
|
+
"incoming_link_count": 2,
|
199
|
+
"reads": 34,
|
200
|
+
"score": 152.75,
|
201
|
+
"yours": false,
|
202
|
+
"topic_slug": "this-site-is-a-sandbox-it-is-reset-every-day",
|
203
|
+
"topic_id": 57,
|
204
|
+
"display_username": "Adam Davis",
|
205
|
+
"version": 1,
|
206
|
+
"can_edit": null,
|
207
|
+
"can_delete": null,
|
208
|
+
"can_recover": false,
|
209
|
+
"read": false,
|
210
|
+
"user_title": null,
|
211
|
+
"actions_summary": [
|
212
|
+
{
|
213
|
+
"id": 2,
|
214
|
+
"count": 5,
|
215
|
+
"hidden": false,
|
216
|
+
"can_act": null
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"id": 3,
|
220
|
+
"count": 0,
|
221
|
+
"hidden": false,
|
222
|
+
"can_act": null
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"id": 4,
|
226
|
+
"count": 0,
|
227
|
+
"hidden": false,
|
228
|
+
"can_act": null
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"id": 5,
|
232
|
+
"count": 0,
|
233
|
+
"hidden": true,
|
234
|
+
"can_act": null
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"id": 6,
|
238
|
+
"count": 0,
|
239
|
+
"hidden": false,
|
240
|
+
"can_act": null
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"id": 7,
|
244
|
+
"count": 0,
|
245
|
+
"hidden": false,
|
246
|
+
"can_act": null
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"id": 8,
|
250
|
+
"count": 0,
|
251
|
+
"hidden": false,
|
252
|
+
"can_act": null
|
253
|
+
}
|
254
|
+
],
|
255
|
+
"moderator": false,
|
256
|
+
"staff": true,
|
257
|
+
"user_id": 23,
|
258
|
+
"hidden": false,
|
259
|
+
"hidden_reason_id": null,
|
260
|
+
"trust_level": 1,
|
261
|
+
"deleted_at": null,
|
262
|
+
"user_deleted": false
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"id": 226,
|
266
|
+
"name": "Stefan Plattner",
|
267
|
+
"username": "splattne",
|
268
|
+
"avatar_template": "//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon",
|
269
|
+
"created_at": "2013-02-05T12:14:17.364-05:00",
|
270
|
+
"cooked": "<p>What? So I have to post this every day? <br><img src=\"http://q101.com/wp-content/uploads/2012/02/GroundhogDay.gif\" alt=\"image\" title=\"\" width=\"650\" height=\"824\"></p>",
|
271
|
+
"post_number": 14,
|
272
|
+
"post_type": 1,
|
273
|
+
"updated_at": "2013-02-05T12:14:17.364-05:00",
|
274
|
+
"reply_count": 0,
|
275
|
+
"reply_to_post_number": 1,
|
276
|
+
"quote_count": 0,
|
277
|
+
"avg_time": 16,
|
278
|
+
"incoming_link_count": 0,
|
279
|
+
"reads": 22,
|
280
|
+
"score": 170.2,
|
281
|
+
"yours": false,
|
282
|
+
"topic_slug": "this-site-is-a-sandbox-it-is-reset-every-day",
|
283
|
+
"topic_id": 57,
|
284
|
+
"display_username": "Stefan Plattner",
|
285
|
+
"version": 1,
|
286
|
+
"can_edit": null,
|
287
|
+
"can_delete": null,
|
288
|
+
"can_recover": false,
|
289
|
+
"read": false,
|
290
|
+
"user_title": null,
|
291
|
+
"reply_to_user": {
|
292
|
+
"username": "samsaffron",
|
293
|
+
"avatar_template": "//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon"
|
294
|
+
},
|
295
|
+
"actions_summary": [
|
296
|
+
{
|
297
|
+
"id": 2,
|
298
|
+
"count": 5,
|
299
|
+
"hidden": false,
|
300
|
+
"can_act": null
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"id": 3,
|
304
|
+
"count": 0,
|
305
|
+
"hidden": false,
|
306
|
+
"can_act": null
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"id": 4,
|
310
|
+
"count": 0,
|
311
|
+
"hidden": false,
|
312
|
+
"can_act": null
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"id": 5,
|
316
|
+
"count": 0,
|
317
|
+
"hidden": true,
|
318
|
+
"can_act": null
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"id": 6,
|
322
|
+
"count": 0,
|
323
|
+
"hidden": false,
|
324
|
+
"can_act": null
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"id": 7,
|
328
|
+
"count": 0,
|
329
|
+
"hidden": false,
|
330
|
+
"can_act": null
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"id": 8,
|
334
|
+
"count": 0,
|
335
|
+
"hidden": false,
|
336
|
+
"can_act": null
|
337
|
+
}
|
338
|
+
],
|
339
|
+
"moderator": false,
|
340
|
+
"staff": true,
|
341
|
+
"user_id": 50,
|
342
|
+
"hidden": false,
|
343
|
+
"hidden_reason_id": null,
|
344
|
+
"trust_level": 1,
|
345
|
+
"deleted_at": null,
|
346
|
+
"user_deleted": false
|
347
|
+
}
|
348
|
+
],
|
349
|
+
"stream": [
|
350
|
+
83,
|
351
|
+
84,
|
352
|
+
86,
|
353
|
+
226
|
354
|
+
]
|
355
|
+
},
|
356
|
+
"draft": null,
|
357
|
+
"draft_key": "topic_57",
|
358
|
+
"draft_sequence": null,
|
359
|
+
"pinned": true,
|
360
|
+
"details": {
|
361
|
+
"auto_close_at": null,
|
362
|
+
"created_by": {
|
363
|
+
"id": 15,
|
364
|
+
"username": "samsaffron",
|
365
|
+
"avatar_template": "//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon"
|
366
|
+
},
|
367
|
+
"last_poster": {
|
368
|
+
"id": 50,
|
369
|
+
"username": "splattne",
|
370
|
+
"avatar_template": "//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon"
|
371
|
+
},
|
372
|
+
"participants": [
|
373
|
+
{
|
374
|
+
"id": 15,
|
375
|
+
"username": "samsaffron",
|
376
|
+
"avatar_template": "//www.gravatar.com/avatar/3dcae8378d46c244172a115c28ca49ce.png?s={size}&r=pg&d=identicon",
|
377
|
+
"post_count": 2
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"id": 23,
|
381
|
+
"username": "stienman",
|
382
|
+
"avatar_template": "//www.gravatar.com/avatar/281486f2a20201375414760dd347951d.png?s={size}&r=pg&d=identicon",
|
383
|
+
"post_count": 1
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"id": 50,
|
387
|
+
"username": "splattne",
|
388
|
+
"avatar_template": "//www.gravatar.com/avatar/7847006dbf49f1722b07c8da396f1275.png?s={size}&r=pg&d=identicon",
|
389
|
+
"post_count": 1
|
390
|
+
}
|
391
|
+
],
|
392
|
+
"suggested_topics": [
|
393
|
+
{
|
394
|
+
"id": 62,
|
395
|
+
"title": "Funny pictures (Keep 'em clean, folks!)",
|
396
|
+
"fancy_title": "Funny pictures (Keep ‘em clean, folks!)",
|
397
|
+
"slug": "funny-pictures-keep-em-clean-folks",
|
398
|
+
"posts_count": 39,
|
399
|
+
"reply_count": 3,
|
400
|
+
"highest_post_number": 39,
|
401
|
+
"image_url": "http://cdn.discourse.org/uploads/try2_discourse/27/nt3b8.jpeg",
|
402
|
+
"created_at": "2013-02-04T15:42:30.290-05:00",
|
403
|
+
"last_posted_at": "2013-11-06T02:47:27.135-05:00",
|
404
|
+
"bumped": true,
|
405
|
+
"bumped_at": "2013-11-06T03:02:06.494-05:00",
|
406
|
+
"unseen": false,
|
407
|
+
"pinned": false,
|
408
|
+
"visible": true,
|
409
|
+
"closed": false,
|
410
|
+
"archived": false,
|
411
|
+
"archetype": "regular",
|
412
|
+
"like_count": 10,
|
413
|
+
"views": 186,
|
414
|
+
"category": {
|
415
|
+
"id": 13,
|
416
|
+
"name": "uncategPorized",
|
417
|
+
"color": "AB9364",
|
418
|
+
"text_color": "FFFFFF",
|
419
|
+
"slug": "uncategorized",
|
420
|
+
"topic_count": 21,
|
421
|
+
"description": "",
|
422
|
+
"topic_url": null,
|
423
|
+
"hotness": 5,
|
424
|
+
"read_restricted": false,
|
425
|
+
"permission": null,
|
426
|
+
"available_groups": [
|
427
|
+
"admins",
|
428
|
+
"everyone",
|
429
|
+
"moderators",
|
430
|
+
"staff",
|
431
|
+
"trust_level_1",
|
432
|
+
"trust_level_2",
|
433
|
+
"trust_level_3",
|
434
|
+
"trust_level_4",
|
435
|
+
"trust_level_5"
|
436
|
+
],
|
437
|
+
"auto_close_days": null,
|
438
|
+
"group_permissions": [
|
439
|
+
{
|
440
|
+
"permission_type": 1,
|
441
|
+
"group_name": "everyone"
|
442
|
+
}
|
443
|
+
],
|
444
|
+
"position": 1
|
445
|
+
}
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"id": 152,
|
449
|
+
"title": "What are good resolutions to the enviroment?",
|
450
|
+
"fancy_title": "What are good resolutions to the enviroment?",
|
451
|
+
"slug": "what-are-good-resolutions-to-the-enviroment",
|
452
|
+
"posts_count": 3,
|
453
|
+
"reply_count": 0,
|
454
|
+
"highest_post_number": 3,
|
455
|
+
"image_url": null,
|
456
|
+
"created_at": "2013-11-05T02:12:37.113-05:00",
|
457
|
+
"last_posted_at": "2013-11-05T11:32:31.259-05:00",
|
458
|
+
"bumped": true,
|
459
|
+
"bumped_at": "2013-11-05T11:32:31.259-05:00",
|
460
|
+
"unseen": false,
|
461
|
+
"pinned": false,
|
462
|
+
"visible": true,
|
463
|
+
"closed": false,
|
464
|
+
"archived": false,
|
465
|
+
"archetype": "regular",
|
466
|
+
"like_count": 0,
|
467
|
+
"views": 50,
|
468
|
+
"category": {
|
469
|
+
"id": 13,
|
470
|
+
"name": "uncategorized",
|
471
|
+
"color": "AB9364",
|
472
|
+
"text_color": "FFFFFF",
|
473
|
+
"slug": "uncategorized",
|
474
|
+
"topic_count": 21,
|
475
|
+
"description": "",
|
476
|
+
"topic_url": null,
|
477
|
+
"hotness": 5,
|
478
|
+
"read_restricted": false,
|
479
|
+
"permission": null,
|
480
|
+
"available_groups": [
|
481
|
+
"admins",
|
482
|
+
"everyone",
|
483
|
+
"moderators",
|
484
|
+
"staff",
|
485
|
+
"trust_level_1",
|
486
|
+
"trust_level_2",
|
487
|
+
"trust_level_3",
|
488
|
+
"trust_level_4",
|
489
|
+
"trust_level_5"
|
490
|
+
],
|
491
|
+
"auto_close_days": null,
|
492
|
+
"group_permissions": [
|
493
|
+
{
|
494
|
+
"permission_type": 1,
|
495
|
+
"group_name": "everyone"
|
496
|
+
}
|
497
|
+
],
|
498
|
+
"position": 1
|
499
|
+
}
|
500
|
+
},
|
501
|
+
{
|
502
|
+
"id": 87,
|
503
|
+
"title": "Hilarious Picture Dump (Image Heavy)",
|
504
|
+
"fancy_title": "Hilarious Picture Dump (Image Heavy)",
|
505
|
+
"slug": "hilarious-picture-dump-image-heavy",
|
506
|
+
"posts_count": 4,
|
507
|
+
"reply_count": 0,
|
508
|
+
"highest_post_number": 4,
|
509
|
+
"image_url": "http://cdn.discourse.org/uploads/try2_discourse/33/1208514086be7cd9d27c00836da43ab15d00ec7be_4c256628scaled.jpeg",
|
510
|
+
"created_at": "2013-02-04T21:07:51.246-05:00",
|
511
|
+
"last_posted_at": "2013-02-05T12:52:47.243-05:00",
|
512
|
+
"bumped": true,
|
513
|
+
"bumped_at": "2013-06-26T01:45:24.590-04:00",
|
514
|
+
"unseen": false,
|
515
|
+
"pinned": false,
|
516
|
+
"visible": true,
|
517
|
+
"closed": false,
|
518
|
+
"archived": false,
|
519
|
+
"archetype": "regular",
|
520
|
+
"like_count": 0,
|
521
|
+
"views": 69,
|
522
|
+
"category": {
|
523
|
+
"id": 13,
|
524
|
+
"name": "uncategorized",
|
525
|
+
"color": "AB9364",
|
526
|
+
"text_color": "FFFFFF",
|
527
|
+
"slug": "uncategorized",
|
528
|
+
"topic_count": 21,
|
529
|
+
"description": "",
|
530
|
+
"topic_url": null,
|
531
|
+
"hotness": 5,
|
532
|
+
"read_restricted": false,
|
533
|
+
"permission": null,
|
534
|
+
"available_groups": [
|
535
|
+
"admins",
|
536
|
+
"everyone",
|
537
|
+
"moderators",
|
538
|
+
"staff",
|
539
|
+
"trust_level_1",
|
540
|
+
"trust_level_2",
|
541
|
+
"trust_level_3",
|
542
|
+
"trust_level_4",
|
543
|
+
"trust_level_5"
|
544
|
+
],
|
545
|
+
"auto_close_days": null,
|
546
|
+
"group_permissions": [
|
547
|
+
{
|
548
|
+
"permission_type": 1,
|
549
|
+
"group_name": "everyone"
|
550
|
+
}
|
551
|
+
],
|
552
|
+
"position": 1
|
553
|
+
}
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"id": 197,
|
557
|
+
"title": "Replying as a new topic",
|
558
|
+
"fancy_title": "Replying as a new topic",
|
559
|
+
"slug": "replying-as-a-new-topic",
|
560
|
+
"posts_count": 1,
|
561
|
+
"reply_count": 0,
|
562
|
+
"highest_post_number": 1,
|
563
|
+
"image_url": null,
|
564
|
+
"created_at": "2013-11-06T00:57:00.177-05:00",
|
565
|
+
"last_posted_at": "2013-11-06T00:57:00.326-05:00",
|
566
|
+
"bumped": true,
|
567
|
+
"bumped_at": "2013-11-06T00:57:00.326-05:00",
|
568
|
+
"unseen": false,
|
569
|
+
"pinned": false,
|
570
|
+
"visible": true,
|
571
|
+
"closed": false,
|
572
|
+
"archived": false,
|
573
|
+
"archetype": "regular",
|
574
|
+
"like_count": 0,
|
575
|
+
"views": 23,
|
576
|
+
"category": {
|
577
|
+
"id": 13,
|
578
|
+
"name": "uncategorized",
|
579
|
+
"color": "AB9364",
|
580
|
+
"text_color": "FFFFFF",
|
581
|
+
"slug": "uncategorized",
|
582
|
+
"topic_count": 21,
|
583
|
+
"description": "",
|
584
|
+
"topic_url": null,
|
585
|
+
"hotness": 5,
|
586
|
+
"read_restricted": false,
|
587
|
+
"permission": null,
|
588
|
+
"available_groups": [
|
589
|
+
"admins",
|
590
|
+
"everyone",
|
591
|
+
"moderators",
|
592
|
+
"staff",
|
593
|
+
"trust_level_1",
|
594
|
+
"trust_level_2",
|
595
|
+
"trust_level_3",
|
596
|
+
"trust_level_4",
|
597
|
+
"trust_level_5"
|
598
|
+
],
|
599
|
+
"auto_close_days": null,
|
600
|
+
"group_permissions": [
|
601
|
+
{
|
602
|
+
"permission_type": 1,
|
603
|
+
"group_name": "everyone"
|
604
|
+
}
|
605
|
+
],
|
606
|
+
"position": 1
|
607
|
+
}
|
608
|
+
},
|
609
|
+
{
|
610
|
+
"id": 157,
|
611
|
+
"title": "What is your opinion on the movie hunger game?",
|
612
|
+
"fancy_title": "What is your opinion on the movie hunger game?",
|
613
|
+
"slug": "what-is-your-opinion-on-the-movie-hunger-game",
|
614
|
+
"posts_count": 1,
|
615
|
+
"reply_count": 0,
|
616
|
+
"highest_post_number": 1,
|
617
|
+
"image_url": null,
|
618
|
+
"created_at": "2013-11-05T03:59:13.194-05:00",
|
619
|
+
"last_posted_at": "2013-11-05T03:59:13.343-05:00",
|
620
|
+
"bumped": true,
|
621
|
+
"bumped_at": "2013-11-05T03:59:13.343-05:00",
|
622
|
+
"unseen": false,
|
623
|
+
"pinned": false,
|
624
|
+
"visible": true,
|
625
|
+
"closed": false,
|
626
|
+
"archived": false,
|
627
|
+
"archetype": "regular",
|
628
|
+
"like_count": 1,
|
629
|
+
"views": 23,
|
630
|
+
"category": {
|
631
|
+
"id": 13,
|
632
|
+
"name": "uncategorized",
|
633
|
+
"color": "AB9364",
|
634
|
+
"text_color": "FFFFFF",
|
635
|
+
"slug": "uncategorized",
|
636
|
+
"topic_count": 21,
|
637
|
+
"description": "",
|
638
|
+
"topic_url": null,
|
639
|
+
"hotness": 5,
|
640
|
+
"read_restricted": false,
|
641
|
+
"permission": null,
|
642
|
+
"available_groups": [
|
643
|
+
"admins",
|
644
|
+
"everyone",
|
645
|
+
"moderators",
|
646
|
+
"staff",
|
647
|
+
"trust_level_1",
|
648
|
+
"trust_level_2",
|
649
|
+
"trust_level_3",
|
650
|
+
"trust_level_4",
|
651
|
+
"trust_level_5"
|
652
|
+
],
|
653
|
+
"auto_close_days": null,
|
654
|
+
"group_permissions": [
|
655
|
+
{
|
656
|
+
"permission_type": 1,
|
657
|
+
"group_name": "everyone"
|
658
|
+
}
|
659
|
+
],
|
660
|
+
"position": 1
|
661
|
+
}
|
662
|
+
}
|
663
|
+
],
|
664
|
+
"links": [
|
665
|
+
{
|
666
|
+
"url": "http://meta.discourse.org",
|
667
|
+
"title": null,
|
668
|
+
"fancy_title": null,
|
669
|
+
"internal": false,
|
670
|
+
"reflection": false,
|
671
|
+
"clicks": "7",
|
672
|
+
"user_id": 15
|
673
|
+
},
|
674
|
+
{
|
675
|
+
"url": "http://www.discourse.org",
|
676
|
+
"title": null,
|
677
|
+
"fancy_title": null,
|
678
|
+
"internal": false,
|
679
|
+
"reflection": false,
|
680
|
+
"clicks": "4",
|
681
|
+
"user_id": 15
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"url": "https://github.com/discourse/discourse",
|
685
|
+
"title": null,
|
686
|
+
"fancy_title": null,
|
687
|
+
"internal": false,
|
688
|
+
"reflection": false,
|
689
|
+
"clicks": "0",
|
690
|
+
"user_id": 15
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"url": "/users/pekka.gaiser",
|
694
|
+
"title": null,
|
695
|
+
"fancy_title": null,
|
696
|
+
"internal": true,
|
697
|
+
"reflection": false,
|
698
|
+
"clicks": "0",
|
699
|
+
"user_id": 9
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"url": "http://dev.discourse.org/t/general-bugs-list/92/365)",
|
703
|
+
"title": null,
|
704
|
+
"fancy_title": null,
|
705
|
+
"internal": false,
|
706
|
+
"reflection": false,
|
707
|
+
"clicks": "0",
|
708
|
+
"user_id": 9
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"url": "/users/pekka",
|
712
|
+
"title": null,
|
713
|
+
"fancy_title": null,
|
714
|
+
"internal": true,
|
715
|
+
"reflection": false,
|
716
|
+
"clicks": "0",
|
717
|
+
"user_id": 9
|
718
|
+
}
|
719
|
+
]
|
720
|
+
},
|
721
|
+
"highest_post_number": 14,
|
722
|
+
"deleted_by": null,
|
723
|
+
"id": 57,
|
724
|
+
"title": "THIS SITE IS A SANDBOX -- it is reset every day",
|
725
|
+
"fancy_title": "THIS SITE IS A SANDBOX – it is reset every day",
|
726
|
+
"posts_count": 4,
|
727
|
+
"created_at": "2013-02-04T15:26:25.977-05:00",
|
728
|
+
"views": 268,
|
729
|
+
"reply_count": 9,
|
730
|
+
"last_posted_at": "2013-02-05T12:14:17.364-05:00",
|
731
|
+
"visible": true,
|
732
|
+
"closed": false,
|
733
|
+
"archived": false,
|
734
|
+
"has_best_of": false,
|
735
|
+
"archetype": "regular",
|
736
|
+
"slug": "this-site-is-a-sandbox-it-is-reset-every-day",
|
737
|
+
"category_id": 13,
|
738
|
+
"deleted_at": null
|
739
|
+
}
|