Skip to content

Commit e45bef9

Browse files
committed
Re-generated all the sources with updated routes.json API definition
1 parent 92ec651 commit e45bef9

12 files changed

Lines changed: 197 additions & 194 deletions

File tree

api/v3.0.0/authorization.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var authorization = module.exports = {
4949
ret = {};
5050
if (!ret.meta)
5151
ret.meta = {};
52-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
52+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
5353
if (res.headers[header])
5454
ret.meta[header] = res.headers[header];
5555
});
@@ -88,7 +88,7 @@ var authorization = module.exports = {
8888
ret = {};
8989
if (!ret.meta)
9090
ret.meta = {};
91-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
91+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
9292
if (res.headers[header])
9393
ret.meta[header] = res.headers[header];
9494
});
@@ -129,7 +129,7 @@ var authorization = module.exports = {
129129
ret = {};
130130
if (!ret.meta)
131131
ret.meta = {};
132-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
132+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
133133
if (res.headers[header])
134134
ret.meta[header] = res.headers[header];
135135
});
@@ -173,7 +173,7 @@ var authorization = module.exports = {
173173
ret = {};
174174
if (!ret.meta)
175175
ret.meta = {};
176-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
176+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
177177
if (res.headers[header])
178178
ret.meta[header] = res.headers[header];
179179
});
@@ -212,7 +212,7 @@ var authorization = module.exports = {
212212
ret = {};
213213
if (!ret.meta)
214214
ret.meta = {};
215-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
215+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
216216
if (res.headers[header])
217217
ret.meta[header] = res.headers[header];
218218
});

api/v3.0.0/events.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var events = module.exports = {
4949
ret = {};
5050
if (!ret.meta)
5151
ret.meta = {};
52-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
52+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
5353
if (res.headers[header])
5454
ret.meta[header] = res.headers[header];
5555
});
@@ -91,7 +91,7 @@ var events = module.exports = {
9191
ret = {};
9292
if (!ret.meta)
9393
ret.meta = {};
94-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
94+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
9595
if (res.headers[header])
9696
ret.meta[header] = res.headers[header];
9797
});
@@ -133,7 +133,7 @@ var events = module.exports = {
133133
ret = {};
134134
if (!ret.meta)
135135
ret.meta = {};
136-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
136+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
137137
if (res.headers[header])
138138
ret.meta[header] = res.headers[header];
139139
});
@@ -175,7 +175,7 @@ var events = module.exports = {
175175
ret = {};
176176
if (!ret.meta)
177177
ret.meta = {};
178-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
178+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
179179
if (res.headers[header])
180180
ret.meta[header] = res.headers[header];
181181
});
@@ -216,7 +216,7 @@ var events = module.exports = {
216216
ret = {};
217217
if (!ret.meta)
218218
ret.meta = {};
219-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
219+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
220220
if (res.headers[header])
221221
ret.meta[header] = res.headers[header];
222222
});
@@ -257,7 +257,7 @@ var events = module.exports = {
257257
ret = {};
258258
if (!ret.meta)
259259
ret.meta = {};
260-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
260+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
261261
if (res.headers[header])
262262
ret.meta[header] = res.headers[header];
263263
});
@@ -298,7 +298,7 @@ var events = module.exports = {
298298
ret = {};
299299
if (!ret.meta)
300300
ret.meta = {};
301-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
301+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
302302
if (res.headers[header])
303303
ret.meta[header] = res.headers[header];
304304
});
@@ -339,7 +339,7 @@ var events = module.exports = {
339339
ret = {};
340340
if (!ret.meta)
341341
ret.meta = {};
342-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
342+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
343343
if (res.headers[header])
344344
ret.meta[header] = res.headers[header];
345345
});
@@ -380,7 +380,7 @@ var events = module.exports = {
380380
ret = {};
381381
if (!ret.meta)
382382
ret.meta = {};
383-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
383+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
384384
if (res.headers[header])
385385
ret.meta[header] = res.headers[header];
386386
});
@@ -422,7 +422,7 @@ var events = module.exports = {
422422
ret = {};
423423
if (!ret.meta)
424424
ret.meta = {};
425-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
425+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
426426
if (res.headers[header])
427427
ret.meta[header] = res.headers[header];
428428
});

api/v3.0.0/gists.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var gists = module.exports = {
2828
*
2929
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `.
3030
* - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `.
31+
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
3132
**/
3233
this.getAll = function(msg, block, callback) {
3334
var self = this;
@@ -49,7 +50,7 @@ var gists = module.exports = {
4950
ret = {};
5051
if (!ret.meta)
5152
ret.meta = {};
52-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
53+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
5354
if (res.headers[header])
5455
ret.meta[header] = res.headers[header];
5556
});
@@ -69,6 +70,7 @@ var gists = module.exports = {
6970
* - user (String): Required.
7071
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `.
7172
* - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `.
73+
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
7274
**/
7375
this.getFromUser = function(msg, block, callback) {
7476
var self = this;
@@ -90,7 +92,7 @@ var gists = module.exports = {
9092
ret = {};
9193
if (!ret.meta)
9294
ret.meta = {};
93-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
95+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
9496
if (res.headers[header])
9597
ret.meta[header] = res.headers[header];
9698
});
@@ -131,7 +133,7 @@ var gists = module.exports = {
131133
ret = {};
132134
if (!ret.meta)
133135
ret.meta = {};
134-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
136+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
135137
if (res.headers[header])
136138
ret.meta[header] = res.headers[header];
137139
});
@@ -172,7 +174,7 @@ var gists = module.exports = {
172174
ret = {};
173175
if (!ret.meta)
174176
ret.meta = {};
175-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
177+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
176178
if (res.headers[header])
177179
ret.meta[header] = res.headers[header];
178180
});
@@ -189,7 +191,7 @@ var gists = module.exports = {
189191
*
190192
* ##### Params on the `msg` object:
191193
*
192-
* No params, simply pass an empty Object literal `{}`
194+
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
193195
**/
194196
this.public = function(msg, block, callback) {
195197
var self = this;
@@ -211,7 +213,7 @@ var gists = module.exports = {
211213
ret = {};
212214
if (!ret.meta)
213215
ret.meta = {};
214-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
216+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
215217
if (res.headers[header])
216218
ret.meta[header] = res.headers[header];
217219
});
@@ -228,7 +230,7 @@ var gists = module.exports = {
228230
*
229231
* ##### Params on the `msg` object:
230232
*
231-
* No params, simply pass an empty Object literal `{}`
233+
* - since (Date): Optional. Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
232234
**/
233235
this.starred = function(msg, block, callback) {
234236
var self = this;
@@ -250,7 +252,7 @@ var gists = module.exports = {
250252
ret = {};
251253
if (!ret.meta)
252254
ret.meta = {};
253-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
255+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
254256
if (res.headers[header])
255257
ret.meta[header] = res.headers[header];
256258
});
@@ -289,7 +291,7 @@ var gists = module.exports = {
289291
ret = {};
290292
if (!ret.meta)
291293
ret.meta = {};
292-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
294+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
293295
if (res.headers[header])
294296
ret.meta[header] = res.headers[header];
295297
});
@@ -328,7 +330,7 @@ var gists = module.exports = {
328330
ret = {};
329331
if (!ret.meta)
330332
ret.meta = {};
331-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
333+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
332334
if (res.headers[header])
333335
ret.meta[header] = res.headers[header];
334336
});
@@ -367,7 +369,7 @@ var gists = module.exports = {
367369
ret = {};
368370
if (!ret.meta)
369371
ret.meta = {};
370-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
372+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
371373
if (res.headers[header])
372374
ret.meta[header] = res.headers[header];
373375
});
@@ -406,7 +408,7 @@ var gists = module.exports = {
406408
ret = {};
407409
if (!ret.meta)
408410
ret.meta = {};
409-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
411+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
410412
if (res.headers[header])
411413
ret.meta[header] = res.headers[header];
412414
});
@@ -445,7 +447,7 @@ var gists = module.exports = {
445447
ret = {};
446448
if (!ret.meta)
447449
ret.meta = {};
448-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
450+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
449451
if (res.headers[header])
450452
ret.meta[header] = res.headers[header];
451453
});
@@ -484,7 +486,7 @@ var gists = module.exports = {
484486
ret = {};
485487
if (!ret.meta)
486488
ret.meta = {};
487-
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link"].forEach(function(header) {
489+
["x-ratelimit-limit", "x-ratelimit-remaining", "x-oauth-scopes", "link", "location"].forEach(function(header) {
488490
if (res.headers[header])
489491
ret.meta[header] = res.headers[header];
490492
});

0 commit comments

Comments
 (0)