disqussion 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +17 -17
- data/README.mkd +29 -5
- data/disqussion.gemspec +1 -1
- data/lib/disqussion/client/forums.rb +39 -1
- data/lib/disqussion/client/posts.rb +69 -0
- data/lib/disqussion/client/reactions.rb +46 -0
- data/lib/disqussion/client/threads.rb +116 -0
- data/lib/disqussion/client/users.rb +63 -5
- data/lib/disqussion/version.rb +2 -2
- data/spec/disqussion/client/forums_spec.rb +40 -1
- data/spec/disqussion/client/posts_spec.rb +34 -3
- data/spec/disqussion/client/reactions_spec.rb +26 -0
- data/spec/disqussion/client/threads_spec.rb +68 -4
- data/spec/disqussion/client/users_spec.rb +36 -4
- data/spec/fixtures/forums/listModerators.json +39 -0
- data/spec/fixtures/forums/listMostActiveUsers.json +70 -0
- data/spec/fixtures/posts/getContext.json +81 -0
- data/spec/fixtures/posts/listPopular.json +114 -0
- data/spec/fixtures/posts/update.json +41 -0
- data/spec/fixtures/reactions/list.json +13 -0
- data/spec/fixtures/threads/create.json +19 -18
- data/spec/fixtures/threads/listHot.json +28 -0
- data/spec/fixtures/threads/listPopular.json +27 -0
- data/spec/fixtures/threads/set.json +26 -0
- data/spec/fixtures/threads/update.json +25 -0
- data/spec/fixtures/users/checkUsername.json +4 -0
- data/spec/fixtures/users/listFollowers.json +42 -0
- data/spec/fixtures/users/listFollowing.json +42 -0
- data/spec/fixtures/users/listMostActiveForums.json +24 -0
- metadata +39 -26
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"cursor": {
|
3
|
+
"prev": null,
|
4
|
+
"hasNext": true,
|
5
|
+
"next": "7639420:0:0",
|
6
|
+
"hasPrev": false,
|
7
|
+
"total": null,
|
8
|
+
"id": "7639420:0:0",
|
9
|
+
"more": true
|
10
|
+
},
|
11
|
+
"code": 0,
|
12
|
+
"response": [
|
13
|
+
{
|
14
|
+
"username": "google-9538b2827dc7c95eaac156af309352c8",
|
15
|
+
"about": "",
|
16
|
+
"remote": {
|
17
|
+
"domain": "google",
|
18
|
+
"identifier": "9538b2827dc7c95eaac156af309352c8"
|
19
|
+
},
|
20
|
+
"name": "Yejin Baek",
|
21
|
+
"url": "http://profiles.google.com/baekyejin",
|
22
|
+
"isFollowing": false,
|
23
|
+
"isFollowedBy": false,
|
24
|
+
"profileUrl": "http://disqus.com/google-9538b2827dc7c95eaac156af309352c8/",
|
25
|
+
"emailHash": "9538b2827dc7c95eaac156af309352c8",
|
26
|
+
"avatar": {
|
27
|
+
"permalink": "http://disqus.com/api/users/avatars/google-9538b2827dc7c95eaac156af309352c8.jpg",
|
28
|
+
"cache": "http://mediacdn.disqus.com/1305667412/images/noavatar92.png"
|
29
|
+
},
|
30
|
+
"isAnonymous": false,
|
31
|
+
"id": "9570778"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"username": "openid-75262",
|
35
|
+
"about": "",
|
36
|
+
"remote": {
|
37
|
+
"domain": "openid",
|
38
|
+
"identifier": "http://fashion-to-f.blogspot.com/"
|
39
|
+
},
|
40
|
+
"name": "annA",
|
41
|
+
"url": "http://fashion-to-f.blogspot.com/",
|
42
|
+
"isFollowing": false,
|
43
|
+
"isFollowedBy": false,
|
44
|
+
"profileUrl": "http://disqus.com/openid-75262/",
|
45
|
+
"emailHash": "d41d8cd98f00b204e9800998ecf8427e",
|
46
|
+
"avatar": {
|
47
|
+
"permalink": "http://disqus.com/api/users/avatars/openid-75262.jpg",
|
48
|
+
"cache": "http://mediacdn.disqus.com/uploads/users/842/772/avatar92.jpg?1281549414"
|
49
|
+
},
|
50
|
+
"isAnonymous": false,
|
51
|
+
"id": "8420772"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"username": "le21eme",
|
55
|
+
"about": "We Are The Eyes Of New York",
|
56
|
+
"name": "Le 21\u00e8me Arrondissement",
|
57
|
+
"url": "http://www.21arrondissement.com/",
|
58
|
+
"isFollowing": false,
|
59
|
+
"isFollowedBy": false,
|
60
|
+
"profileUrl": "http://disqus.com/le21eme/",
|
61
|
+
"emailHash": "89c7fe1dcecfea33e25dbc312b5ad290",
|
62
|
+
"avatar": {
|
63
|
+
"permalink": "http://disqus.com/api/users/avatars/le21eme.jpg",
|
64
|
+
"cache": "http://mediacdn.disqus.com/uploads/users/112/411/avatar92.jpg?1281549414"
|
65
|
+
},
|
66
|
+
"isAnonymous": false,
|
67
|
+
"id": "1120411"
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": [
|
4
|
+
{
|
5
|
+
"isJuliaFlagged": true,
|
6
|
+
"isFlagged": false,
|
7
|
+
"forum": "bobross",
|
8
|
+
"parent": null,
|
9
|
+
"author": {
|
10
|
+
"username": "disqus_api",
|
11
|
+
"about": "",
|
12
|
+
"name": "disqus_api",
|
13
|
+
"url": "",
|
14
|
+
"isFollowing": false,
|
15
|
+
"isFollowedBy": false,
|
16
|
+
"profileUrl": "http://disqus.com/disqus_api/",
|
17
|
+
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
|
18
|
+
"avatar": {
|
19
|
+
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
|
20
|
+
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
|
21
|
+
},
|
22
|
+
"id": "1",
|
23
|
+
"isAnonymous": false,
|
24
|
+
"email": "example@disqus.com"
|
25
|
+
},
|
26
|
+
"media": [],
|
27
|
+
"isApproved": true,
|
28
|
+
"dislikes": 0,
|
29
|
+
"raw_message": "\"We want happy paintings. Happy paintings. If you want sad things, watch the news.\"",
|
30
|
+
"id": "1",
|
31
|
+
"thread": "1",
|
32
|
+
"points": 1,
|
33
|
+
"createdAt": "2008-06-10T01:32:08",
|
34
|
+
"isEdited": false,
|
35
|
+
"message": "\"We want happy paintings. Happy paintings. If you want sad things, watch the news.\"",
|
36
|
+
"isHighlighted": false,
|
37
|
+
"ipAddress": "127.0.0.1",
|
38
|
+
"isSpam": false,
|
39
|
+
"isDeleted": false,
|
40
|
+
"likes": 1
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"isJuliaFlagged": true,
|
44
|
+
"isFlagged": false,
|
45
|
+
"forum": "bobross",
|
46
|
+
"parent": 1,
|
47
|
+
"author": {
|
48
|
+
"username": "disqus_api",
|
49
|
+
"about": "",
|
50
|
+
"name": "disqus_api",
|
51
|
+
"url": "",
|
52
|
+
"isFollowing": false,
|
53
|
+
"isFollowedBy": false,
|
54
|
+
"profileUrl": "http://disqus.com/disqus_api/",
|
55
|
+
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
|
56
|
+
"avatar": {
|
57
|
+
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
|
58
|
+
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
|
59
|
+
},
|
60
|
+
"id": "1",
|
61
|
+
"isAnonymous": false,
|
62
|
+
"email": "example@disqus.com"
|
63
|
+
},
|
64
|
+
"media": [],
|
65
|
+
"isApproved": true,
|
66
|
+
"dislikes": 0,
|
67
|
+
"raw_message": "\"Happy little bush.\"",
|
68
|
+
"id": "3",
|
69
|
+
"thread": "1",
|
70
|
+
"points": 0,
|
71
|
+
"createdAt": "2008-06-10T01:45:27",
|
72
|
+
"isEdited": false,
|
73
|
+
"message": "\"Happy little bush.\"",
|
74
|
+
"isHighlighted": false,
|
75
|
+
"ipAddress": "127.0.0.1",
|
76
|
+
"isSpam": false,
|
77
|
+
"isDeleted": false,
|
78
|
+
"likes": 0
|
79
|
+
}
|
80
|
+
]
|
81
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": [
|
4
|
+
{
|
5
|
+
"isJuliaFlagged": true,
|
6
|
+
"isFlagged": false,
|
7
|
+
"forum": "bobross",
|
8
|
+
"parent": null,
|
9
|
+
"author": {
|
10
|
+
"username": "disqus_api",
|
11
|
+
"about": "",
|
12
|
+
"name": "disqus_api",
|
13
|
+
"url": "",
|
14
|
+
"isFollowing": false,
|
15
|
+
"isFollowedBy": false,
|
16
|
+
"profileUrl": "http://disqus.com/disqus_api/",
|
17
|
+
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
|
18
|
+
"avatar": {
|
19
|
+
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
|
20
|
+
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
|
21
|
+
},
|
22
|
+
"id": "1",
|
23
|
+
"isAnonymous": false,
|
24
|
+
"email": "example@disqus.com"
|
25
|
+
},
|
26
|
+
"media": [],
|
27
|
+
"isApproved": true,
|
28
|
+
"dislikes": 0,
|
29
|
+
"raw_message": "\"We want happy paintings. Happy paintings. If you want sad things, watch the news.\"",
|
30
|
+
"id": "1",
|
31
|
+
"thread": "1",
|
32
|
+
"points": 1,
|
33
|
+
"createdAt": "2008-06-10T01:32:08",
|
34
|
+
"isEdited": false,
|
35
|
+
"message": "\"We want happy paintings. Happy paintings. If you want sad things, watch the news.\"",
|
36
|
+
"isHighlighted": false,
|
37
|
+
"ipAddress": "127.0.0.1",
|
38
|
+
"isSpam": false,
|
39
|
+
"isDeleted": false,
|
40
|
+
"likes": 1
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"isJuliaFlagged": true,
|
44
|
+
"isFlagged": false,
|
45
|
+
"forum": "bobross",
|
46
|
+
"parent": 1,
|
47
|
+
"author": {
|
48
|
+
"username": "disqus_api",
|
49
|
+
"about": "",
|
50
|
+
"name": "disqus_api",
|
51
|
+
"url": "",
|
52
|
+
"isFollowing": false,
|
53
|
+
"isFollowedBy": false,
|
54
|
+
"profileUrl": "http://disqus.com/disqus_api/",
|
55
|
+
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
|
56
|
+
"avatar": {
|
57
|
+
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
|
58
|
+
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
|
59
|
+
},
|
60
|
+
"id": "1",
|
61
|
+
"isAnonymous": false,
|
62
|
+
"email": "example@disqus.com"
|
63
|
+
},
|
64
|
+
"media": [],
|
65
|
+
"isApproved": true,
|
66
|
+
"dislikes": 0,
|
67
|
+
"raw_message": "\"Happy little bush.\"",
|
68
|
+
"id": "3",
|
69
|
+
"thread": "1",
|
70
|
+
"points": 0,
|
71
|
+
"createdAt": "2008-06-10T01:45:27",
|
72
|
+
"isEdited": false,
|
73
|
+
"message": "\"Happy little bush.\"",
|
74
|
+
"isHighlighted": false,
|
75
|
+
"ipAddress": "127.0.0.1",
|
76
|
+
"isSpam": false,
|
77
|
+
"isDeleted": false,
|
78
|
+
"likes": 0
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"isJuliaFlagged": true,
|
82
|
+
"isFlagged": false,
|
83
|
+
"forum": "bobross",
|
84
|
+
"parent": null,
|
85
|
+
"author": {
|
86
|
+
"name": null,
|
87
|
+
"url": null,
|
88
|
+
"profileUrl": "http://disqus.com/guest/575007c5f1370d7cf76cbd79e5a81584/",
|
89
|
+
"emailHash": "575007c5f1370d7cf76cbd79e5a81584",
|
90
|
+
"avatar": {
|
91
|
+
"permalink": "http://www.gravatar.com/avatar.php?gravatar_id=575007c5f1370d7cf76cbd79e5a81584&size=32&default=http://mediacdn.disqus.com/1091/images/noavatar32.png",
|
92
|
+
"cache": "http://www.gravatar.com/avatar.php?gravatar_id=575007c5f1370d7cf76cbd79e5a81584&size=32&default=http://mediacdn.disqus.com/1091/images/noavatar32.png"
|
93
|
+
},
|
94
|
+
"isAnonymous": true,
|
95
|
+
"email": "richard.nixon@example.com"
|
96
|
+
},
|
97
|
+
"media": [],
|
98
|
+
"isApproved": true,
|
99
|
+
"dislikes": 0,
|
100
|
+
"raw_message": "\"Happy little tree limb.\"",
|
101
|
+
"id": "2",
|
102
|
+
"thread": "1",
|
103
|
+
"points": 0,
|
104
|
+
"createdAt": "2008-06-10T01:45:04",
|
105
|
+
"isEdited": false,
|
106
|
+
"message": "\"Happy little tree limb.\"",
|
107
|
+
"isHighlighted": false,
|
108
|
+
"ipAddress": "127.0.0.1",
|
109
|
+
"isSpam": false,
|
110
|
+
"isDeleted": false,
|
111
|
+
"likes": 0
|
112
|
+
}
|
113
|
+
]
|
114
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": {
|
4
|
+
"isJuliaFlagged": true,
|
5
|
+
"isFlagged": false,
|
6
|
+
"forum": "bobross",
|
7
|
+
"parent": null,
|
8
|
+
"author": {
|
9
|
+
"username": "disqus_api",
|
10
|
+
"about": "",
|
11
|
+
"name": "disqus_api",
|
12
|
+
"url": "",
|
13
|
+
"isFollowing": false,
|
14
|
+
"isFollowedBy": false,
|
15
|
+
"profileUrl": "http://disqus.com/disqus_api/",
|
16
|
+
"emailHash": "67f79ed8e10b74abf07a8dfe101bbab2",
|
17
|
+
"avatar": {
|
18
|
+
"permalink": "http://disqus.com/api/users/avatars/disqus_api.jpg",
|
19
|
+
"cache": "http://mediacdn.disqus.com/1091/images/noavatar92.png"
|
20
|
+
},
|
21
|
+
"id": "1",
|
22
|
+
"isAnonymous": false,
|
23
|
+
"email": "example@disqus.com"
|
24
|
+
},
|
25
|
+
"media": [],
|
26
|
+
"isApproved": true,
|
27
|
+
"dislikes": 0,
|
28
|
+
"raw_message": "Hello There",
|
29
|
+
"id": "1",
|
30
|
+
"thread": "1",
|
31
|
+
"points": 1,
|
32
|
+
"createdAt": "2008-06-10T01:32:08",
|
33
|
+
"isEdited": false,
|
34
|
+
"message": "Hello There",
|
35
|
+
"isHighlighted": false,
|
36
|
+
"ipAddress": "127.0.0.1",
|
37
|
+
"isSpam": false,
|
38
|
+
"isDeleted": false,
|
39
|
+
"likes": 1
|
40
|
+
}
|
41
|
+
}
|
@@ -1,22 +1,23 @@
|
|
1
1
|
{
|
2
|
-
"code": 0,
|
2
|
+
"code": 0,
|
3
3
|
"response": {
|
4
|
-
"category": "
|
5
|
-
"reactions": 0,
|
6
|
-
"identifiers": [],
|
7
|
-
"forum": "
|
8
|
-
"title": "
|
9
|
-
"dislikes": 0,
|
10
|
-
"isDeleted": false,
|
11
|
-
"author": "
|
12
|
-
"userScore": 0,
|
13
|
-
"id": "
|
14
|
-
"isClosed": false,
|
15
|
-
"posts": 0,
|
16
|
-
"link": null,
|
17
|
-
"likes": 0,
|
18
|
-
"message": "",
|
19
|
-
"
|
20
|
-
"
|
4
|
+
"category": "1",
|
5
|
+
"reactions": 0,
|
6
|
+
"identifiers": [],
|
7
|
+
"forum": "bobross",
|
8
|
+
"title": "Hello World",
|
9
|
+
"dislikes": 0,
|
10
|
+
"isDeleted": false,
|
11
|
+
"author": "1",
|
12
|
+
"userScore": 0,
|
13
|
+
"id": "3",
|
14
|
+
"isClosed": false,
|
15
|
+
"posts": 0,
|
16
|
+
"link": null,
|
17
|
+
"likes": 0,
|
18
|
+
"message": "",
|
19
|
+
"ipAddress": "127.0.0.1",
|
20
|
+
"slug": "hello_world",
|
21
|
+
"createdAt": "2011-11-02T02:22:41"
|
21
22
|
}
|
22
23
|
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": [
|
4
|
+
{
|
5
|
+
"feed": "http://cnn.disqus.com/sarah_palins_fall_from_media_stardom/latest.rss",
|
6
|
+
"reactions": 0,
|
7
|
+
"identifiers": [
|
8
|
+
"/2013/01/28/opinion/kurtz-palin-commentator/index.html"
|
9
|
+
],
|
10
|
+
"forum": "cnn",
|
11
|
+
"title": "Sarah Palin's fall from media stardom",
|
12
|
+
"dislikes": 0,
|
13
|
+
"isDeleted": false,
|
14
|
+
"author": "335648",
|
15
|
+
"userScore": 0,
|
16
|
+
"id": "1051008353",
|
17
|
+
"isClosed": false,
|
18
|
+
"posts": 2262,
|
19
|
+
"userSubscription": false,
|
20
|
+
"link": "http://www.cnn.com/2013/01/28/opinion/kurtz-palin-commentator/index.html",
|
21
|
+
"likes": 8,
|
22
|
+
"message": "",
|
23
|
+
"category": "198834",
|
24
|
+
"slug": "sarah_palins_fall_from_media_stardom",
|
25
|
+
"createdAt": "2013-01-28T11:19:39"
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": [
|
4
|
+
{
|
5
|
+
"feed": "http://facebook.disqus.com/httpmariannaribeiro575tumblrcompost43269621322/latest.rss",
|
6
|
+
"reactions": 0,
|
7
|
+
"identifiers": [],
|
8
|
+
"postsInInterval": 1,
|
9
|
+
"forum": "facebook",
|
10
|
+
"title": "~Eu Te Amo Seu Idiota*-* - Acredite, corra atr\u00e1s, a \u00fanica coisa que existe...",
|
11
|
+
"dislikes": 0,
|
12
|
+
"isDeleted": false,
|
13
|
+
"author": "184",
|
14
|
+
"userScore": 0,
|
15
|
+
"id": "1088812462",
|
16
|
+
"isClosed": false,
|
17
|
+
"posts": 1,
|
18
|
+
"userSubscription": false,
|
19
|
+
"link": "http://mariannaribeiro575.tumblr.com/post/43269621322",
|
20
|
+
"likes": 1,
|
21
|
+
"message": "",
|
22
|
+
"category": "79",
|
23
|
+
"slug": "httpmariannaribeiro575tumblrcompost43269621322",
|
24
|
+
"createdAt": "2013-02-17T14:29:32"
|
25
|
+
}
|
26
|
+
]
|
27
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"code": 0,
|
3
|
+
"response": [
|
4
|
+
{
|
5
|
+
"feed": "http://thepostpunktumblr.disqus.com/oh_hey_there_319/latest.rss",
|
6
|
+
"reactions": 0,
|
7
|
+
"identifiers": [],
|
8
|
+
"forum": "thepostpunktumblr",
|
9
|
+
"title": "Oh Hey There",
|
10
|
+
"dislikes": 0,
|
11
|
+
"isDeleted": false,
|
12
|
+
"author": "46381",
|
13
|
+
"userScore": 0,
|
14
|
+
"id": "12345678",
|
15
|
+
"isClosed": false,
|
16
|
+
"posts": 0,
|
17
|
+
"userSubscription": false,
|
18
|
+
"link": "http://tjmahr.com/post/80538447",
|
19
|
+
"likes": 0,
|
20
|
+
"message": "",
|
21
|
+
"category": "39382",
|
22
|
+
"slug": "oh_hey_there_319",
|
23
|
+
"createdAt": "2009-02-22T20:13:07"
|
24
|
+
}
|
25
|
+
]
|
26
|
+
}
|