qiita 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/qiita/resource_based_methods.rb +194 -187
- data/lib/qiita/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 431cb1a1e712d5bb51c7c7a1a6c4602057bdb518
|
4
|
+
data.tar.gz: 4ab2b183e3a7731b39f992048e933d57a13afd63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf3cc38f3c1a6e64c8902584148c61a0d0371f2f33ecbe775906432af8db555879ef3815a37ca6d6848c05adde00736790a9994a797dba03690ee83d288e5ff
|
7
|
+
data.tar.gz: cc03517cc9d9296375852c1768f3923dcaa5cf06821090c47d401866e0ba59f620237ca4886fc3d46df990b550e85add94471d17dde2315bb388ac0b9f424dda
|
data/CHANGELOG.md
CHANGED
@@ -1,367 +1,374 @@
|
|
1
1
|
module Qiita
|
2
2
|
module ResourceBasedMethods
|
3
3
|
# ### Qiita::Client#create_access_token(params = nil, headers = nil)
|
4
|
-
#
|
4
|
+
# Create a new access token.
|
5
5
|
#
|
6
6
|
def create_access_token(params = nil, headers = nil)
|
7
7
|
post("/api/v2/access_tokens", params, headers)
|
8
8
|
end
|
9
9
|
|
10
|
-
# ### Qiita::Client#delete_access_token(
|
11
|
-
#
|
10
|
+
# ### Qiita::Client#delete_access_token(params = nil, headers = nil)
|
11
|
+
# Deactivate an access token.
|
12
12
|
#
|
13
|
-
def delete_access_token(
|
14
|
-
delete("/api/v2/access_tokens
|
13
|
+
def delete_access_token(params = nil, headers = nil)
|
14
|
+
delete("/api/v2/access_tokens/:access_token", params, headers)
|
15
15
|
end
|
16
16
|
|
17
|
-
# ### Qiita::Client#
|
18
|
-
#
|
17
|
+
# ### Qiita::Client#get_authenticated_user(params = nil, headers = nil)
|
18
|
+
# Get a user associated to the current access token.
|
19
19
|
#
|
20
|
-
def
|
21
|
-
get("/api/v2/
|
20
|
+
def get_authenticated_user(params = nil, headers = nil)
|
21
|
+
get("/api/v2/authenticated_user", params, headers)
|
22
22
|
end
|
23
23
|
|
24
|
-
# ### Qiita::Client#delete_comment(
|
25
|
-
#
|
24
|
+
# ### Qiita::Client#delete_comment(params = nil, headers = nil)
|
25
|
+
# Delete a comment.
|
26
26
|
#
|
27
|
-
def delete_comment(
|
28
|
-
delete("/api/v2/comments
|
27
|
+
def delete_comment(params = nil, headers = nil)
|
28
|
+
delete("/api/v2/comments/:comment_id", params, headers)
|
29
29
|
end
|
30
30
|
|
31
|
-
# ### Qiita::Client#
|
32
|
-
#
|
31
|
+
# ### Qiita::Client#get_comment(params = nil, headers = nil)
|
32
|
+
# Get a comment.
|
33
33
|
#
|
34
|
-
def
|
35
|
-
|
34
|
+
def get_comment(params = nil, headers = nil)
|
35
|
+
get("/api/v2/comments/:comment_id", params, headers)
|
36
36
|
end
|
37
37
|
|
38
|
-
# ### Qiita::Client#
|
39
|
-
#
|
38
|
+
# ### Qiita::Client#update_comment(params = nil, headers = nil)
|
39
|
+
# Update a comment.
|
40
40
|
#
|
41
|
-
def
|
42
|
-
|
41
|
+
def update_comment(params = nil, headers = nil)
|
42
|
+
patch("/api/v2/comments/:comment_id", params, headers)
|
43
43
|
end
|
44
44
|
|
45
|
-
# ### Qiita::Client#
|
46
|
-
#
|
45
|
+
# ### Qiita::Client#unthank_comment(params = nil, headers = nil)
|
46
|
+
# Delete a thank from a comment.
|
47
47
|
#
|
48
|
-
def
|
49
|
-
|
48
|
+
def unthank_comment(params = nil, headers = nil)
|
49
|
+
delete("/api/v2/comments/:comment_id/thank", params, headers)
|
50
50
|
end
|
51
51
|
|
52
|
-
# ### Qiita::Client#thank_comment(
|
53
|
-
#
|
52
|
+
# ### Qiita::Client#thank_comment(params = nil, headers = nil)
|
53
|
+
# Send a thank to a comment.
|
54
54
|
#
|
55
|
-
def thank_comment(
|
56
|
-
put("/api/v2/comments
|
55
|
+
def thank_comment(params = nil, headers = nil)
|
56
|
+
put("/api/v2/comments/:comment_id/thank", params, headers)
|
57
57
|
end
|
58
58
|
|
59
|
-
# ### Qiita::Client#
|
60
|
-
#
|
59
|
+
# ### Qiita::Client#list_item_comments(params = nil, headers = nil)
|
60
|
+
# List comments on an item in newest order.
|
61
61
|
#
|
62
|
-
def
|
63
|
-
|
62
|
+
def list_item_comments(params = nil, headers = nil)
|
63
|
+
post("/api/v2/items/:item_id/comments", params, headers)
|
64
64
|
end
|
65
65
|
|
66
|
-
# ### Qiita::Client#
|
67
|
-
#
|
66
|
+
# ### Qiita::Client#create_item_comment(params = nil, headers = nil)
|
67
|
+
# Post a comment on an item.
|
68
68
|
#
|
69
|
-
def
|
70
|
-
|
69
|
+
def create_item_comment(params = nil, headers = nil)
|
70
|
+
post("/api/v2/items/:item_id/comments", params, headers)
|
71
|
+
end
|
72
|
+
|
73
|
+
# ### Qiita::Client#create_expanded_template(params = nil, headers = nil)
|
74
|
+
# Get a template where its variables are expanded.
|
75
|
+
#
|
76
|
+
def create_expanded_template(params = nil, headers = nil)
|
77
|
+
post("/api/v2/expanded_templates", params, headers)
|
71
78
|
end
|
72
79
|
|
73
80
|
# ### Qiita::Client#list_authenticated_user_items(params = nil, headers = nil)
|
74
|
-
#
|
81
|
+
# List the authenticated user's items in newest order
|
75
82
|
#
|
76
83
|
def list_authenticated_user_items(params = nil, headers = nil)
|
77
84
|
get("/api/v2/authenticated_user/items", params, headers)
|
78
85
|
end
|
79
86
|
|
87
|
+
# ### Qiita::Client#list_items(params = nil, headers = nil)
|
88
|
+
# List items.
|
89
|
+
#
|
90
|
+
def list_items(params = nil, headers = nil)
|
91
|
+
get("/api/v2/items", params, headers)
|
92
|
+
end
|
93
|
+
|
80
94
|
# ### Qiita::Client#create_item(params = nil, headers = nil)
|
81
|
-
#
|
95
|
+
# Create an item.
|
82
96
|
#
|
83
97
|
def create_item(params = nil, headers = nil)
|
84
98
|
post("/api/v2/items", params, headers)
|
85
99
|
end
|
86
100
|
|
87
|
-
# ### Qiita::Client#
|
88
|
-
#
|
101
|
+
# ### Qiita::Client#delete_item(params = nil, headers = nil)
|
102
|
+
# Delete an item.
|
89
103
|
#
|
90
|
-
def
|
91
|
-
get("/api/v2/items
|
104
|
+
def delete_item(params = nil, headers = nil)
|
105
|
+
get("/api/v2/items/:item_id", params, headers)
|
92
106
|
end
|
93
107
|
|
94
|
-
# ### Qiita::Client#
|
95
|
-
#
|
108
|
+
# ### Qiita::Client#get_item(params = nil, headers = nil)
|
109
|
+
# Get an item.
|
96
110
|
#
|
97
|
-
def
|
98
|
-
|
111
|
+
def get_item(params = nil, headers = nil)
|
112
|
+
get("/api/v2/items/:item_id", params, headers)
|
99
113
|
end
|
100
114
|
|
101
|
-
# ### Qiita::Client#
|
102
|
-
#
|
115
|
+
# ### Qiita::Client#update_item(params = nil, headers = nil)
|
116
|
+
# Update an item.
|
103
117
|
#
|
104
|
-
def
|
105
|
-
|
118
|
+
def update_item(params = nil, headers = nil)
|
119
|
+
patch("/api/v2/items/:item_id", params, headers)
|
106
120
|
end
|
107
121
|
|
108
|
-
# ### Qiita::Client#
|
109
|
-
#
|
122
|
+
# ### Qiita::Client#unlike_item(params = nil, headers = nil)
|
123
|
+
# Unlike an item (only available on Qiita:Team).
|
110
124
|
#
|
111
|
-
def
|
112
|
-
|
125
|
+
def unlike_item(params = nil, headers = nil)
|
126
|
+
delete("/api/v2/items/:item_id/like", params, headers)
|
113
127
|
end
|
114
128
|
|
115
|
-
# ### Qiita::Client#
|
116
|
-
#
|
129
|
+
# ### Qiita::Client#like_item(params = nil, headers = nil)
|
130
|
+
# Like an item (only available on Qiita:Team).
|
117
131
|
#
|
118
|
-
def
|
119
|
-
|
132
|
+
def like_item(params = nil, headers = nil)
|
133
|
+
put("/api/v2/items/:item_id/like", params, headers)
|
120
134
|
end
|
121
135
|
|
122
|
-
# ### Qiita::Client#
|
123
|
-
#
|
136
|
+
# ### Qiita::Client#unstock_item(params = nil, headers = nil)
|
137
|
+
# Unstock an item.
|
124
138
|
#
|
125
|
-
def
|
126
|
-
|
139
|
+
def unstock_item(params = nil, headers = nil)
|
140
|
+
delete("/api/v2/items/:item_id/stock", params, headers)
|
127
141
|
end
|
128
142
|
|
129
|
-
# ### Qiita::Client#get_item_stock(
|
130
|
-
#
|
143
|
+
# ### Qiita::Client#get_item_stock(params = nil, headers = nil)
|
144
|
+
# Check if you stocked an item.
|
131
145
|
#
|
132
|
-
def get_item_stock(
|
133
|
-
get("/api/v2/items
|
146
|
+
def get_item_stock(params = nil, headers = nil)
|
147
|
+
get("/api/v2/items/:item_id/stock", params, headers)
|
134
148
|
end
|
135
149
|
|
136
|
-
# ### Qiita::Client#stock_item(
|
137
|
-
#
|
150
|
+
# ### Qiita::Client#stock_item(params = nil, headers = nil)
|
151
|
+
# Stock an item.
|
138
152
|
#
|
139
|
-
def stock_item(
|
140
|
-
put("/api/v2/items
|
153
|
+
def stock_item(params = nil, headers = nil)
|
154
|
+
put("/api/v2/items/:item_id/stock", params, headers)
|
141
155
|
end
|
142
156
|
|
143
|
-
# ### Qiita::Client#
|
144
|
-
#
|
157
|
+
# ### Qiita::Client#stock_item(params = nil, headers = nil)
|
158
|
+
# Stock an item.
|
145
159
|
#
|
146
|
-
def
|
147
|
-
|
160
|
+
def stock_item(params = nil, headers = nil)
|
161
|
+
put("/api/v2/items/:item_id/stock", params, headers)
|
148
162
|
end
|
149
163
|
|
150
|
-
# ### Qiita::Client#
|
151
|
-
#
|
164
|
+
# ### Qiita::Client#list_tag_items(params = nil, headers = nil)
|
165
|
+
# List tagged items in recently-tagged order.
|
152
166
|
#
|
153
|
-
def
|
154
|
-
|
167
|
+
def list_tag_items(params = nil, headers = nil)
|
168
|
+
get("/api/v2/tags/:tag_id/items", params, headers)
|
155
169
|
end
|
156
170
|
|
157
|
-
# ### Qiita::Client#
|
158
|
-
#
|
171
|
+
# ### Qiita::Client#list_user_items(params = nil, headers = nil)
|
172
|
+
# List a user's items in newest order.
|
159
173
|
#
|
160
|
-
def
|
161
|
-
|
174
|
+
def list_user_items(params = nil, headers = nil)
|
175
|
+
get("/api/v2/users/:user_id/items", params, headers)
|
162
176
|
end
|
163
177
|
|
164
|
-
# ### Qiita::Client#
|
165
|
-
#
|
178
|
+
# ### Qiita::Client#list_user_stocks(params = nil, headers = nil)
|
179
|
+
# List a user's stocked items in recently-stocked order.
|
166
180
|
#
|
167
|
-
def
|
168
|
-
get("/api/v2/
|
181
|
+
def list_user_stocks(params = nil, headers = nil)
|
182
|
+
get("/api/v2/users/:user_id/stocks", params, headers)
|
169
183
|
end
|
170
184
|
|
171
|
-
# ### Qiita::Client#
|
172
|
-
#
|
185
|
+
# ### Qiita::Client#list_projects(params = nil, headers = nil)
|
186
|
+
# List projects in newest order.
|
173
187
|
#
|
174
|
-
def
|
175
|
-
get("/api/v2/projects
|
188
|
+
def list_projects(params = nil, headers = nil)
|
189
|
+
get("/api/v2/projects", params, headers)
|
176
190
|
end
|
177
191
|
|
178
192
|
# ### Qiita::Client#create_project(params = nil, headers = nil)
|
179
|
-
#
|
193
|
+
# Create a new project.
|
180
194
|
#
|
181
195
|
def create_project(params = nil, headers = nil)
|
182
196
|
post("/api/v2/projects", params, headers)
|
183
197
|
end
|
184
198
|
|
185
|
-
# ### Qiita::Client#delete_project(
|
186
|
-
#
|
199
|
+
# ### Qiita::Client#delete_project(params = nil, headers = nil)
|
200
|
+
# Delete a project.
|
187
201
|
#
|
188
|
-
def delete_project(
|
189
|
-
delete("/api/v2/projects
|
202
|
+
def delete_project(params = nil, headers = nil)
|
203
|
+
delete("/api/v2/projects/:project_id", params, headers)
|
190
204
|
end
|
191
205
|
|
192
|
-
# ### Qiita::Client#
|
193
|
-
#
|
206
|
+
# ### Qiita::Client#get_project(params = nil, headers = nil)
|
207
|
+
# Get a project.
|
194
208
|
#
|
195
|
-
def
|
196
|
-
|
209
|
+
def get_project(params = nil, headers = nil)
|
210
|
+
get("/api/v2/projects/:project_id", params, headers)
|
197
211
|
end
|
198
212
|
|
199
|
-
# ### Qiita::Client#
|
200
|
-
#
|
213
|
+
# ### Qiita::Client#patch_project(params = nil, headers = nil)
|
214
|
+
# Update a project
|
201
215
|
#
|
202
|
-
def
|
203
|
-
|
216
|
+
def patch_project(params = nil, headers = nil)
|
217
|
+
patch("/api/v2/projects/:project_id", params, headers)
|
204
218
|
end
|
205
219
|
|
206
220
|
# ### Qiita::Client#list_tags(params = nil, headers = nil)
|
207
|
-
#
|
221
|
+
# List tags in newest order.
|
208
222
|
#
|
209
223
|
def list_tags(params = nil, headers = nil)
|
210
224
|
get("/api/v2/tags", params, headers)
|
211
225
|
end
|
212
226
|
|
213
|
-
# ### Qiita::Client#get_tag(
|
214
|
-
#
|
227
|
+
# ### Qiita::Client#get_tag(params = nil, headers = nil)
|
228
|
+
# Get a tag.
|
215
229
|
#
|
216
|
-
def get_tag(
|
217
|
-
get("/api/v2/tags
|
230
|
+
def get_tag(params = nil, headers = nil)
|
231
|
+
get("/api/v2/tags/:tag_id", params, headers)
|
218
232
|
end
|
219
233
|
|
220
|
-
# ### Qiita::Client#list_user_following_tags(
|
221
|
-
#
|
234
|
+
# ### Qiita::Client#list_user_following_tags(params = nil, headers = nil)
|
235
|
+
# List tags a user is following to in recently-tagged order.
|
222
236
|
#
|
223
|
-
def list_user_following_tags(
|
224
|
-
get("/api/v2/users
|
237
|
+
def list_user_following_tags(params = nil, headers = nil)
|
238
|
+
get("/api/v2/users/:user_id/following_tags", params, headers)
|
225
239
|
end
|
226
240
|
|
227
|
-
# ### Qiita::Client#
|
228
|
-
#
|
241
|
+
# ### Qiita::Client#unfollow_tag(params = nil, headers = nil)
|
242
|
+
# Unfollow a tag.
|
229
243
|
#
|
230
|
-
def
|
231
|
-
|
244
|
+
def unfollow_tag(params = nil, headers = nil)
|
245
|
+
delete("/api/v2/tags/:tag_id/following", params, headers)
|
232
246
|
end
|
233
247
|
|
234
|
-
# ### Qiita::Client#
|
235
|
-
#
|
248
|
+
# ### Qiita::Client#get_tag_following(params = nil, headers = nil)
|
249
|
+
# Check if you are following a tag or not.
|
236
250
|
#
|
237
|
-
def
|
238
|
-
|
251
|
+
def get_tag_following(params = nil, headers = nil)
|
252
|
+
get("/api/v2/tags/:tag_id/following", params, headers)
|
239
253
|
end
|
240
254
|
|
241
|
-
# ### Qiita::Client#
|
242
|
-
#
|
255
|
+
# ### Qiita::Client#follow_tag(params = nil, headers = nil)
|
256
|
+
# Follow a tag.
|
243
257
|
#
|
244
|
-
def
|
245
|
-
|
258
|
+
def follow_tag(params = nil, headers = nil)
|
259
|
+
put("/api/v2/tags/:tag_id/following", params, headers)
|
246
260
|
end
|
247
261
|
|
248
|
-
# ### Qiita::Client#create_tagging(
|
249
|
-
#
|
262
|
+
# ### Qiita::Client#create_tagging(params = nil, headers = nil)
|
263
|
+
# Add a tag to an item (only available on Qiita:Team)
|
250
264
|
#
|
251
|
-
def create_tagging(
|
252
|
-
post("/api/v2/items
|
265
|
+
def create_tagging(params = nil, headers = nil)
|
266
|
+
post("/api/v2/items/:item_id/taggings", params, headers)
|
253
267
|
end
|
254
268
|
|
255
|
-
# ### Qiita::Client#delete_tagging(
|
256
|
-
#
|
269
|
+
# ### Qiita::Client#delete_tagging(params = nil, headers = nil)
|
270
|
+
# Remove a tag from an item (only available on Qiita:Team)
|
257
271
|
#
|
258
|
-
def delete_tagging(
|
259
|
-
delete("/api/v2/items
|
272
|
+
def delete_tagging(params = nil, headers = nil)
|
273
|
+
delete("/api/v2/items/:item_id/taggings/:tagging_id", params, headers)
|
260
274
|
end
|
261
275
|
|
262
276
|
# ### Qiita::Client#list_teams(params = nil, headers = nil)
|
263
|
-
#
|
277
|
+
# List teams the user belongs to in newest order.
|
264
278
|
#
|
265
279
|
def list_teams(params = nil, headers = nil)
|
266
280
|
get("/api/v2/teams", params, headers)
|
267
281
|
end
|
268
282
|
|
269
283
|
# ### Qiita::Client#list_templates(params = nil, headers = nil)
|
270
|
-
#
|
284
|
+
# List templates in a team.
|
271
285
|
#
|
272
286
|
def list_templates(params = nil, headers = nil)
|
273
287
|
get("/api/v2/templates", params, headers)
|
274
288
|
end
|
275
289
|
|
276
|
-
# ### Qiita::Client#
|
277
|
-
#
|
290
|
+
# ### Qiita::Client#delete_template(params = nil, headers = nil)
|
291
|
+
# Delete a template.
|
278
292
|
#
|
279
|
-
def
|
280
|
-
|
293
|
+
def delete_template(params = nil, headers = nil)
|
294
|
+
delete("/api/v2/templates/:template_id", params, headers)
|
281
295
|
end
|
282
296
|
|
283
|
-
# ### Qiita::Client#
|
284
|
-
#
|
297
|
+
# ### Qiita::Client#get_template(params = nil, headers = nil)
|
298
|
+
# Get a template.
|
285
299
|
#
|
286
|
-
def
|
287
|
-
|
300
|
+
def get_template(params = nil, headers = nil)
|
301
|
+
get("/api/v2/templates/:template_id", params, headers)
|
288
302
|
end
|
289
303
|
|
290
304
|
# ### Qiita::Client#create_template(params = nil, headers = nil)
|
291
|
-
#
|
305
|
+
# Create a new template.
|
292
306
|
#
|
293
307
|
def create_template(params = nil, headers = nil)
|
294
308
|
post("/api/v2/templates", params, headers)
|
295
309
|
end
|
296
310
|
|
297
|
-
# ### Qiita::Client#update_template(
|
298
|
-
#
|
311
|
+
# ### Qiita::Client#update_template(params = nil, headers = nil)
|
312
|
+
# Update a template.
|
299
313
|
#
|
300
|
-
def update_template(
|
301
|
-
patch("/api/v2/templates
|
314
|
+
def update_template(params = nil, headers = nil)
|
315
|
+
patch("/api/v2/templates/:template_id", params, headers)
|
302
316
|
end
|
303
317
|
|
304
|
-
# ### Qiita::Client#
|
305
|
-
#
|
318
|
+
# ### Qiita::Client#list_item_stockers(params = nil, headers = nil)
|
319
|
+
# List users who stocked an item in recent-stocked order.
|
306
320
|
#
|
307
|
-
def
|
308
|
-
get("/api/v2/
|
321
|
+
def list_item_stockers(params = nil, headers = nil)
|
322
|
+
get("/api/v2/items/:item_id/stockers", params, headers)
|
309
323
|
end
|
310
324
|
|
311
|
-
# ### Qiita::Client#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
def get_user(id, params = nil, headers = nil)
|
315
|
-
get("/api/v2/users/#{id}", params, headers)
|
316
|
-
end
|
317
|
-
|
318
|
-
# ### Qiita::Client#get_authenticated_user(params = nil, headers = nil)
|
319
|
-
# アクセストークンに紐付いたユーザを返します。
|
325
|
+
# ### Qiita::Client#list_users(params = nil, headers = nil)
|
326
|
+
# List users in newest order.
|
320
327
|
#
|
321
|
-
def
|
322
|
-
get("/api/v2/
|
328
|
+
def list_users(params = nil, headers = nil)
|
329
|
+
get("/api/v2/users", params, headers)
|
323
330
|
end
|
324
331
|
|
325
|
-
# ### Qiita::Client#
|
326
|
-
#
|
332
|
+
# ### Qiita::Client#get_user(params = nil, headers = nil)
|
333
|
+
# Get a user.
|
327
334
|
#
|
328
|
-
def
|
329
|
-
get("/api/v2/users
|
335
|
+
def get_user(params = nil, headers = nil)
|
336
|
+
get("/api/v2/users/:user_id", params, headers)
|
330
337
|
end
|
331
338
|
|
332
|
-
# ### Qiita::Client#
|
333
|
-
#
|
339
|
+
# ### Qiita::Client#list_user_followees(params = nil, headers = nil)
|
340
|
+
# List users a user is following.
|
334
341
|
#
|
335
|
-
def
|
336
|
-
get("/api/v2/users
|
342
|
+
def list_user_followees(params = nil, headers = nil)
|
343
|
+
get("/api/v2/users/:user_id/followees", params, headers)
|
337
344
|
end
|
338
345
|
|
339
|
-
# ### Qiita::Client#
|
340
|
-
#
|
346
|
+
# ### Qiita::Client#list_user_followers(params = nil, headers = nil)
|
347
|
+
# List users who are following a user.
|
341
348
|
#
|
342
|
-
def
|
343
|
-
get("/api/v2/
|
349
|
+
def list_user_followers(params = nil, headers = nil)
|
350
|
+
get("/api/v2/users/:user_id/followers", params, headers)
|
344
351
|
end
|
345
352
|
|
346
|
-
# ### Qiita::Client#
|
347
|
-
#
|
353
|
+
# ### Qiita::Client#unfollow_user(params = nil, headers = nil)
|
354
|
+
# Unfollow a user.
|
348
355
|
#
|
349
|
-
def
|
350
|
-
|
356
|
+
def unfollow_user(params = nil, headers = nil)
|
357
|
+
delete("/api/v2/users/:user_id/following", params, headers)
|
351
358
|
end
|
352
359
|
|
353
|
-
# ### Qiita::Client#
|
354
|
-
#
|
360
|
+
# ### Qiita::Client#get_user_following(params = nil, headers = nil)
|
361
|
+
# Check if the current user is following a user.
|
355
362
|
#
|
356
|
-
def
|
357
|
-
|
363
|
+
def get_user_following(params = nil, headers = nil)
|
364
|
+
get("/api/v2/users/:user_id/following", params, headers)
|
358
365
|
end
|
359
366
|
|
360
|
-
# ### Qiita::Client#
|
361
|
-
#
|
367
|
+
# ### Qiita::Client#follow_user(params = nil, headers = nil)
|
368
|
+
# Follow a user.
|
362
369
|
#
|
363
|
-
def
|
364
|
-
|
370
|
+
def follow_user(params = nil, headers = nil)
|
371
|
+
put("/api/v2/users/:user_id/following", params, headers)
|
365
372
|
end
|
366
373
|
end
|
367
374
|
end
|
data/lib/qiita/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qiita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -253,3 +253,4 @@ summary: A client library for Qiita API v2 written in Ruby.
|
|
253
253
|
test_files:
|
254
254
|
- spec/qiita/client_spec.rb
|
255
255
|
- spec/spec_helper.rb
|
256
|
+
has_rdoc:
|