hipchat_searcher 0.0.3 → 1.0.0

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.
@@ -0,0 +1,89 @@
1
+ require 'colorize'
2
+
3
+ module HipchatSearcher
4
+ class SearchProxy
5
+ class Simple
6
+ def initialize(pattern, result, options={})
7
+ @result = result
8
+ @options = options
9
+ @pattern = Regexp.new(pattern, Regexp::IGNORECASE)
10
+ end
11
+
12
+ attr_reader :pattern
13
+
14
+ def self.search(pattern, result, options)
15
+ new(pattern, result, options).search
16
+ end
17
+
18
+ def before?(date)
19
+ return false unless option_date? and date
20
+
21
+ target_date = Date.parse(date)
22
+ parsed_date > target_date
23
+ end
24
+
25
+ def items
26
+ @items ||= @result.items.reverse
27
+ end
28
+
29
+ def puts_search_result(item)
30
+ if option_user?
31
+ if @options[:user] == item.mention_name
32
+ puts_contents(item)
33
+ end
34
+ else
35
+ puts_contents(item)
36
+ end
37
+ end
38
+
39
+ def search
40
+ items.each do |item|
41
+ if before?(item.date)
42
+ @options[:end] = true
43
+ break
44
+ end
45
+
46
+ if @pattern =~ item.message
47
+ ext = item.extend(HipchatSearcher::ItemExtention)
48
+ ext.pattern = @pattern
49
+ puts_search_result(ext)
50
+ end
51
+ end
52
+
53
+ nil
54
+ end
55
+
56
+ private
57
+
58
+ def option_user?
59
+ !!@options[:user]
60
+ end
61
+
62
+ def option_date?
63
+ !!@options[:date]
64
+ end
65
+
66
+ def parsed_date
67
+ @parsed_date ||= Date.parse(@options[:date])
68
+ end
69
+
70
+ def print_room?
71
+ !!@print_room
72
+ end
73
+
74
+ def puts_room
75
+ @print_room = true
76
+ puts room.underline
77
+ end
78
+
79
+ def puts_contents(item)
80
+ print_room? ? nil : puts_room
81
+ puts item.contents
82
+ end
83
+
84
+ def room
85
+ @result.room
86
+ end
87
+ end
88
+ end
89
+ end
@@ -1,3 +1,3 @@
1
1
  module HipchatSearcher
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -0,0 +1,1409 @@
1
+ {
2
+ "startIndex": 0,
3
+ "maxResults": 100,
4
+ "links": {
5
+ "self": "https://api.hipchat.com/v2/room/593774/history"
6
+ },
7
+ "items": [
8
+ {
9
+ "message": "Yeah, about your article URL.",
10
+ "mentions": [],
11
+ "id": "abcdef",
12
+ "from": {
13
+ "name": "whoami",
14
+ "mention_name": "hoge",
15
+ "links": {
16
+ "self": "https://api.hipchat.com/v2/user/12345"
17
+ },
18
+ "id": 632698
19
+ },
20
+ "date": "2014-06-04T05:03:23.583044+00:00"
21
+ },
22
+ {
23
+ "message": "Yeah, about your article URL.",
24
+ "mentions": [],
25
+ "id": "abcdef",
26
+ "from": {
27
+ "name": "whoami",
28
+ "mention_name": "hoge",
29
+ "links": {
30
+ "self": "https://api.hipchat.com/v2/user/12345"
31
+ },
32
+ "id": 632698
33
+ },
34
+ "date": "2014-06-04T05:03:23.583044+00:00"
35
+ },
36
+ {
37
+ "message": "Yeah, about your article URL.",
38
+ "mentions": [],
39
+ "id": "abcdef",
40
+ "from": {
41
+ "name": "whoami",
42
+ "mention_name": "hoge",
43
+ "links": {
44
+ "self": "https://api.hipchat.com/v2/user/12345"
45
+ },
46
+ "id": 632698
47
+ },
48
+ "date": "2014-06-04T05:03:23.583044+00:00"
49
+ },
50
+ {
51
+ "message": "Yeah, about your article URL.",
52
+ "mentions": [],
53
+ "id": "abcdef",
54
+ "from": {
55
+ "name": "whoami",
56
+ "mention_name": "hoge",
57
+ "links": {
58
+ "self": "https://api.hipchat.com/v2/user/12345"
59
+ },
60
+ "id": 632698
61
+ },
62
+ "date": "2014-06-04T05:03:23.583044+00:00"
63
+ },
64
+ {
65
+ "message": "Yeah, about your article URL.",
66
+ "mentions": [],
67
+ "id": "abcdef",
68
+ "from": {
69
+ "name": "whoami",
70
+ "mention_name": "hoge",
71
+ "links": {
72
+ "self": "https://api.hipchat.com/v2/user/12345"
73
+ },
74
+ "id": 632698
75
+ },
76
+ "date": "2014-06-04T05:03:23.583044+00:00"
77
+ },
78
+ {
79
+ "message": "Yeah, about your article URL.",
80
+ "mentions": [],
81
+ "id": "abcdef",
82
+ "from": {
83
+ "name": "whoami",
84
+ "mention_name": "hoge",
85
+ "links": {
86
+ "self": "https://api.hipchat.com/v2/user/12345"
87
+ },
88
+ "id": 632698
89
+ },
90
+ "date": "2014-06-04T05:03:23.583044+00:00"
91
+ },
92
+ {
93
+ "message": "Yeah, about your article URL.",
94
+ "mentions": [],
95
+ "id": "abcdef",
96
+ "from": {
97
+ "name": "whoami",
98
+ "mention_name": "hoge",
99
+ "links": {
100
+ "self": "https://api.hipchat.com/v2/user/12345"
101
+ },
102
+ "id": 632698
103
+ },
104
+ "date": "2014-06-04T05:03:23.583044+00:00"
105
+ },
106
+ {
107
+ "message": "Yeah, about your article URL.",
108
+ "mentions": [],
109
+ "id": "abcdef",
110
+ "from": {
111
+ "name": "whoami",
112
+ "mention_name": "hoge",
113
+ "links": {
114
+ "self": "https://api.hipchat.com/v2/user/12345"
115
+ },
116
+ "id": 632698
117
+ },
118
+ "date": "2014-06-04T05:03:23.583044+00:00"
119
+ },
120
+ {
121
+ "message": "Yeah, about your article URL.",
122
+ "mentions": [],
123
+ "id": "abcdef",
124
+ "from": {
125
+ "name": "whoami",
126
+ "mention_name": "hoge",
127
+ "links": {
128
+ "self": "https://api.hipchat.com/v2/user/12345"
129
+ },
130
+ "id": 632698
131
+ },
132
+ "date": "2014-06-04T05:03:23.583044+00:00"
133
+ },
134
+ {
135
+ "message": "Yeah, about your article URL.",
136
+ "mentions": [],
137
+ "id": "abcdef",
138
+ "from": {
139
+ "name": "whoami",
140
+ "mention_name": "hoge",
141
+ "links": {
142
+ "self": "https://api.hipchat.com/v2/user/12345"
143
+ },
144
+ "id": 632698
145
+ },
146
+ "date": "2014-06-04T05:03:23.583044+00:00"
147
+ },
148
+ {
149
+ "message": "Yeah, about your article URL.",
150
+ "mentions": [],
151
+ "id": "abcdef",
152
+ "from": {
153
+ "name": "whoami",
154
+ "mention_name": "hoge",
155
+ "links": {
156
+ "self": "https://api.hipchat.com/v2/user/12345"
157
+ },
158
+ "id": 632698
159
+ },
160
+ "date": "2014-06-04T05:03:23.583044+00:00"
161
+ },
162
+ {
163
+ "message": "Yeah, about your article URL.",
164
+ "mentions": [],
165
+ "id": "abcdef",
166
+ "from": {
167
+ "name": "whoami",
168
+ "mention_name": "hoge",
169
+ "links": {
170
+ "self": "https://api.hipchat.com/v2/user/12345"
171
+ },
172
+ "id": 632698
173
+ },
174
+ "date": "2014-06-04T05:03:23.583044+00:00"
175
+ },
176
+ {
177
+ "message": "Yeah, about your article URL.",
178
+ "mentions": [],
179
+ "id": "abcdef",
180
+ "from": {
181
+ "name": "whoami",
182
+ "mention_name": "hoge",
183
+ "links": {
184
+ "self": "https://api.hipchat.com/v2/user/12345"
185
+ },
186
+ "id": 632698
187
+ },
188
+ "date": "2014-06-04T05:03:23.583044+00:00"
189
+ },
190
+ {
191
+ "message": "Yeah, about your article URL.",
192
+ "mentions": [],
193
+ "id": "abcdef",
194
+ "from": {
195
+ "name": "whoami",
196
+ "mention_name": "hoge",
197
+ "links": {
198
+ "self": "https://api.hipchat.com/v2/user/12345"
199
+ },
200
+ "id": 632698
201
+ },
202
+ "date": "2014-06-04T05:03:23.583044+00:00"
203
+ },
204
+ {
205
+ "message": "Yeah, about your article URL.",
206
+ "mentions": [],
207
+ "id": "abcdef",
208
+ "from": {
209
+ "name": "whoami",
210
+ "mention_name": "hoge",
211
+ "links": {
212
+ "self": "https://api.hipchat.com/v2/user/12345"
213
+ },
214
+ "id": 632698
215
+ },
216
+ "date": "2014-06-04T05:03:23.583044+00:00"
217
+ },
218
+ {
219
+ "message": "Yeah, about your article URL.",
220
+ "mentions": [],
221
+ "id": "abcdef",
222
+ "from": {
223
+ "name": "whoami",
224
+ "mention_name": "hoge",
225
+ "links": {
226
+ "self": "https://api.hipchat.com/v2/user/12345"
227
+ },
228
+ "id": 632698
229
+ },
230
+ "date": "2014-06-04T05:03:23.583044+00:00"
231
+ },
232
+ {
233
+ "message": "Yeah, about your article URL.",
234
+ "mentions": [],
235
+ "id": "abcdef",
236
+ "from": {
237
+ "name": "whoami",
238
+ "mention_name": "hoge",
239
+ "links": {
240
+ "self": "https://api.hipchat.com/v2/user/12345"
241
+ },
242
+ "id": 632698
243
+ },
244
+ "date": "2014-06-04T05:03:23.583044+00:00"
245
+ },
246
+ {
247
+ "message": "Yeah, about your article URL.",
248
+ "mentions": [],
249
+ "id": "abcdef",
250
+ "from": {
251
+ "name": "whoami",
252
+ "mention_name": "hoge",
253
+ "links": {
254
+ "self": "https://api.hipchat.com/v2/user/12345"
255
+ },
256
+ "id": 632698
257
+ },
258
+ "date": "2014-06-04T05:03:23.583044+00:00"
259
+ },
260
+ {
261
+ "message": "Yeah, about your article URL.",
262
+ "mentions": [],
263
+ "id": "abcdef",
264
+ "from": {
265
+ "name": "whoami",
266
+ "mention_name": "hoge",
267
+ "links": {
268
+ "self": "https://api.hipchat.com/v2/user/12345"
269
+ },
270
+ "id": 632698
271
+ },
272
+ "date": "2014-06-04T05:03:23.583044+00:00"
273
+ },
274
+ {
275
+ "message": "Yeah, about your article URL.",
276
+ "mentions": [],
277
+ "id": "abcdef",
278
+ "from": {
279
+ "name": "whoami",
280
+ "mention_name": "hoge",
281
+ "links": {
282
+ "self": "https://api.hipchat.com/v2/user/12345"
283
+ },
284
+ "id": 632698
285
+ },
286
+ "date": "2014-06-04T05:03:23.583044+00:00"
287
+ },
288
+ {
289
+ "message": "Yeah, about your article URL.",
290
+ "mentions": [],
291
+ "id": "abcdef",
292
+ "from": {
293
+ "name": "whoami",
294
+ "mention_name": "hoge",
295
+ "links": {
296
+ "self": "https://api.hipchat.com/v2/user/12345"
297
+ },
298
+ "id": 632698
299
+ },
300
+ "date": "2014-06-04T05:03:23.583044+00:00"
301
+ },
302
+ {
303
+ "message": "Yeah, about your article URL.",
304
+ "mentions": [],
305
+ "id": "abcdef",
306
+ "from": {
307
+ "name": "whoami",
308
+ "mention_name": "hoge",
309
+ "links": {
310
+ "self": "https://api.hipchat.com/v2/user/12345"
311
+ },
312
+ "id": 632698
313
+ },
314
+ "date": "2014-06-04T05:03:23.583044+00:00"
315
+ },
316
+ {
317
+ "message": "Yeah, about your article URL.",
318
+ "mentions": [],
319
+ "id": "abcdef",
320
+ "from": {
321
+ "name": "whoami",
322
+ "mention_name": "hoge",
323
+ "links": {
324
+ "self": "https://api.hipchat.com/v2/user/12345"
325
+ },
326
+ "id": 632698
327
+ },
328
+ "date": "2014-06-04T05:03:23.583044+00:00"
329
+ },
330
+ {
331
+ "message": "Yeah, about your article URL.",
332
+ "mentions": [],
333
+ "id": "abcdef",
334
+ "from": {
335
+ "name": "whoami",
336
+ "mention_name": "hoge",
337
+ "links": {
338
+ "self": "https://api.hipchat.com/v2/user/12345"
339
+ },
340
+ "id": 632698
341
+ },
342
+ "date": "2014-06-04T05:03:23.583044+00:00"
343
+ },
344
+ {
345
+ "message": "Yeah, about your article URL.",
346
+ "mentions": [],
347
+ "id": "abcdef",
348
+ "from": {
349
+ "name": "whoami",
350
+ "mention_name": "hoge",
351
+ "links": {
352
+ "self": "https://api.hipchat.com/v2/user/12345"
353
+ },
354
+ "id": 632698
355
+ },
356
+ "date": "2014-06-04T05:03:23.583044+00:00"
357
+ },
358
+ {
359
+ "message": "Yeah, about your article URL.",
360
+ "mentions": [],
361
+ "id": "abcdef",
362
+ "from": {
363
+ "name": "whoami",
364
+ "mention_name": "hoge",
365
+ "links": {
366
+ "self": "https://api.hipchat.com/v2/user/12345"
367
+ },
368
+ "id": 632698
369
+ },
370
+ "date": "2014-06-04T05:03:23.583044+00:00"
371
+ },
372
+ {
373
+ "message": "Yeah, about your article URL.",
374
+ "mentions": [],
375
+ "id": "abcdef",
376
+ "from": {
377
+ "name": "whoami",
378
+ "mention_name": "hoge",
379
+ "links": {
380
+ "self": "https://api.hipchat.com/v2/user/12345"
381
+ },
382
+ "id": 632698
383
+ },
384
+ "date": "2014-06-04T05:03:23.583044+00:00"
385
+ },
386
+ {
387
+ "message": "Yeah, about your article URL.",
388
+ "mentions": [],
389
+ "id": "abcdef",
390
+ "from": {
391
+ "name": "whoami",
392
+ "mention_name": "hoge",
393
+ "links": {
394
+ "self": "https://api.hipchat.com/v2/user/12345"
395
+ },
396
+ "id": 632698
397
+ },
398
+ "date": "2014-06-04T05:03:23.583044+00:00"
399
+ },
400
+ {
401
+ "message": "Yeah, about your article URL.",
402
+ "mentions": [],
403
+ "id": "abcdef",
404
+ "from": {
405
+ "name": "whoami",
406
+ "mention_name": "hoge",
407
+ "links": {
408
+ "self": "https://api.hipchat.com/v2/user/12345"
409
+ },
410
+ "id": 632698
411
+ },
412
+ "date": "2014-06-04T05:03:23.583044+00:00"
413
+ },
414
+ {
415
+ "message": "Yeah, about your article URL.",
416
+ "mentions": [],
417
+ "id": "abcdef",
418
+ "from": {
419
+ "name": "whoami",
420
+ "mention_name": "hoge",
421
+ "links": {
422
+ "self": "https://api.hipchat.com/v2/user/12345"
423
+ },
424
+ "id": 632698
425
+ },
426
+ "date": "2014-06-04T05:03:23.583044+00:00"
427
+ },
428
+ {
429
+ "message": "Yeah, about your article URL.",
430
+ "mentions": [],
431
+ "id": "abcdef",
432
+ "from": {
433
+ "name": "whoami",
434
+ "mention_name": "hoge",
435
+ "links": {
436
+ "self": "https://api.hipchat.com/v2/user/12345"
437
+ },
438
+ "id": 632698
439
+ },
440
+ "date": "2014-06-04T05:03:23.583044+00:00"
441
+ },
442
+ {
443
+ "message": "Yeah, about your article URL.",
444
+ "mentions": [],
445
+ "id": "abcdef",
446
+ "from": {
447
+ "name": "whoami",
448
+ "mention_name": "hoge",
449
+ "links": {
450
+ "self": "https://api.hipchat.com/v2/user/12345"
451
+ },
452
+ "id": 632698
453
+ },
454
+ "date": "2014-06-04T05:03:23.583044+00:00"
455
+ },
456
+ {
457
+ "message": "Yeah, about your article URL.",
458
+ "mentions": [],
459
+ "id": "abcdef",
460
+ "from": {
461
+ "name": "whoami",
462
+ "mention_name": "hoge",
463
+ "links": {
464
+ "self": "https://api.hipchat.com/v2/user/12345"
465
+ },
466
+ "id": 632698
467
+ },
468
+ "date": "2014-06-04T05:03:23.583044+00:00"
469
+ },
470
+ {
471
+ "message": "Yeah, about your article URL.",
472
+ "mentions": [],
473
+ "id": "abcdef",
474
+ "from": {
475
+ "name": "whoami",
476
+ "mention_name": "hoge",
477
+ "links": {
478
+ "self": "https://api.hipchat.com/v2/user/12345"
479
+ },
480
+ "id": 632698
481
+ },
482
+ "date": "2014-06-04T05:03:23.583044+00:00"
483
+ },
484
+ {
485
+ "message": "Yeah, about your article URL.",
486
+ "mentions": [],
487
+ "id": "abcdef",
488
+ "from": {
489
+ "name": "whoami",
490
+ "mention_name": "hoge",
491
+ "links": {
492
+ "self": "https://api.hipchat.com/v2/user/12345"
493
+ },
494
+ "id": 632698
495
+ },
496
+ "date": "2014-06-04T05:03:23.583044+00:00"
497
+ },
498
+ {
499
+ "message": "Yeah, about your article URL.",
500
+ "mentions": [],
501
+ "id": "abcdef",
502
+ "from": {
503
+ "name": "whoami",
504
+ "mention_name": "hoge",
505
+ "links": {
506
+ "self": "https://api.hipchat.com/v2/user/12345"
507
+ },
508
+ "id": 632698
509
+ },
510
+ "date": "2014-06-04T05:03:23.583044+00:00"
511
+ },
512
+ {
513
+ "message": "Yeah, about your article URL.",
514
+ "mentions": [],
515
+ "id": "abcdef",
516
+ "from": {
517
+ "name": "whoami",
518
+ "mention_name": "hoge",
519
+ "links": {
520
+ "self": "https://api.hipchat.com/v2/user/12345"
521
+ },
522
+ "id": 632698
523
+ },
524
+ "date": "2014-06-04T05:03:23.583044+00:00"
525
+ },
526
+ {
527
+ "message": "Yeah, about your article URL.",
528
+ "mentions": [],
529
+ "id": "abcdef",
530
+ "from": {
531
+ "name": "whoami",
532
+ "mention_name": "hoge",
533
+ "links": {
534
+ "self": "https://api.hipchat.com/v2/user/12345"
535
+ },
536
+ "id": 632698
537
+ },
538
+ "date": "2014-06-04T05:03:23.583044+00:00"
539
+ },
540
+ {
541
+ "message": "Yeah, about your article URL.",
542
+ "mentions": [],
543
+ "id": "abcdef",
544
+ "from": {
545
+ "name": "whoami",
546
+ "mention_name": "hoge",
547
+ "links": {
548
+ "self": "https://api.hipchat.com/v2/user/12345"
549
+ },
550
+ "id": 632698
551
+ },
552
+ "date": "2014-06-04T05:03:23.583044+00:00"
553
+ },
554
+ {
555
+ "message": "Yeah, about your article URL.",
556
+ "mentions": [],
557
+ "id": "abcdef",
558
+ "from": {
559
+ "name": "whoami",
560
+ "mention_name": "hoge",
561
+ "links": {
562
+ "self": "https://api.hipchat.com/v2/user/12345"
563
+ },
564
+ "id": 632698
565
+ },
566
+ "date": "2014-06-04T05:03:23.583044+00:00"
567
+ },
568
+ {
569
+ "message": "Yeah, about your article URL.",
570
+ "mentions": [],
571
+ "id": "abcdef",
572
+ "from": {
573
+ "name": "whoami",
574
+ "mention_name": "hoge",
575
+ "links": {
576
+ "self": "https://api.hipchat.com/v2/user/12345"
577
+ },
578
+ "id": 632698
579
+ },
580
+ "date": "2014-06-04T05:03:23.583044+00:00"
581
+ },
582
+ {
583
+ "message": "Yeah, about your article URL.",
584
+ "mentions": [],
585
+ "id": "abcdef",
586
+ "from": {
587
+ "name": "whoami",
588
+ "mention_name": "hoge",
589
+ "links": {
590
+ "self": "https://api.hipchat.com/v2/user/12345"
591
+ },
592
+ "id": 632698
593
+ },
594
+ "date": "2014-06-04T05:03:23.583044+00:00"
595
+ },
596
+ {
597
+ "message": "Yeah, about your article URL.",
598
+ "mentions": [],
599
+ "id": "abcdef",
600
+ "from": {
601
+ "name": "whoami",
602
+ "mention_name": "hoge",
603
+ "links": {
604
+ "self": "https://api.hipchat.com/v2/user/12345"
605
+ },
606
+ "id": 632698
607
+ },
608
+ "date": "2014-06-04T05:03:23.583044+00:00"
609
+ },
610
+ {
611
+ "message": "Yeah, about your article URL.",
612
+ "mentions": [],
613
+ "id": "abcdef",
614
+ "from": {
615
+ "name": "whoami",
616
+ "mention_name": "hoge",
617
+ "links": {
618
+ "self": "https://api.hipchat.com/v2/user/12345"
619
+ },
620
+ "id": 632698
621
+ },
622
+ "date": "2014-06-04T05:03:23.583044+00:00"
623
+ },
624
+ {
625
+ "message": "Yeah, about your article URL.",
626
+ "mentions": [],
627
+ "id": "abcdef",
628
+ "from": {
629
+ "name": "whoami",
630
+ "mention_name": "hoge",
631
+ "links": {
632
+ "self": "https://api.hipchat.com/v2/user/12345"
633
+ },
634
+ "id": 632698
635
+ },
636
+ "date": "2014-06-04T05:03:23.583044+00:00"
637
+ },
638
+ {
639
+ "message": "Yeah, about your article URL.",
640
+ "mentions": [],
641
+ "id": "abcdef",
642
+ "from": {
643
+ "name": "whoami",
644
+ "mention_name": "hoge",
645
+ "links": {
646
+ "self": "https://api.hipchat.com/v2/user/12345"
647
+ },
648
+ "id": 632698
649
+ },
650
+ "date": "2014-06-04T05:03:23.583044+00:00"
651
+ },
652
+ {
653
+ "message": "Yeah, about your article URL.",
654
+ "mentions": [],
655
+ "id": "abcdef",
656
+ "from": {
657
+ "name": "whoami",
658
+ "mention_name": "hoge",
659
+ "links": {
660
+ "self": "https://api.hipchat.com/v2/user/12345"
661
+ },
662
+ "id": 632698
663
+ },
664
+ "date": "2014-06-04T05:03:23.583044+00:00"
665
+ },
666
+ {
667
+ "message": "Yeah, about your article URL.",
668
+ "mentions": [],
669
+ "id": "abcdef",
670
+ "from": {
671
+ "name": "whoami",
672
+ "mention_name": "hoge",
673
+ "links": {
674
+ "self": "https://api.hipchat.com/v2/user/12345"
675
+ },
676
+ "id": 632698
677
+ },
678
+ "date": "2014-06-04T05:03:23.583044+00:00"
679
+ },
680
+ {
681
+ "message": "Yeah, about your article URL.",
682
+ "mentions": [],
683
+ "id": "abcdef",
684
+ "from": {
685
+ "name": "whoami",
686
+ "mention_name": "hoge",
687
+ "links": {
688
+ "self": "https://api.hipchat.com/v2/user/12345"
689
+ },
690
+ "id": 632698
691
+ },
692
+ "date": "2014-06-04T05:03:23.583044+00:00"
693
+ },
694
+ {
695
+ "message": "Yeah, about your article URL.",
696
+ "mentions": [],
697
+ "id": "abcdef",
698
+ "from": {
699
+ "name": "whoami",
700
+ "mention_name": "hoge",
701
+ "links": {
702
+ "self": "https://api.hipchat.com/v2/user/12345"
703
+ },
704
+ "id": 632698
705
+ },
706
+ "date": "2014-06-04T05:03:23.583044+00:00"
707
+ },
708
+ {
709
+ "message": "Yeah, about your article URL.",
710
+ "mentions": [],
711
+ "id": "abcdef",
712
+ "from": {
713
+ "name": "whoami",
714
+ "mention_name": "hoge",
715
+ "links": {
716
+ "self": "https://api.hipchat.com/v2/user/12345"
717
+ },
718
+ "id": 632698
719
+ },
720
+ "date": "2014-06-04T05:03:23.583044+00:00"
721
+ },
722
+ {
723
+ "message": "Yeah, about your article URL.",
724
+ "mentions": [],
725
+ "id": "abcdef",
726
+ "from": {
727
+ "name": "whoami",
728
+ "mention_name": "hoge",
729
+ "links": {
730
+ "self": "https://api.hipchat.com/v2/user/12345"
731
+ },
732
+ "id": 632698
733
+ },
734
+ "date": "2014-06-04T05:03:23.583044+00:00"
735
+ },
736
+ {
737
+ "message": "Yeah, about your article URL.",
738
+ "mentions": [],
739
+ "id": "abcdef",
740
+ "from": {
741
+ "name": "whoami",
742
+ "mention_name": "hoge",
743
+ "links": {
744
+ "self": "https://api.hipchat.com/v2/user/12345"
745
+ },
746
+ "id": 632698
747
+ },
748
+ "date": "2014-06-04T05:03:23.583044+00:00"
749
+ },
750
+ {
751
+ "message": "Yeah, about your article URL.",
752
+ "mentions": [],
753
+ "id": "abcdef",
754
+ "from": {
755
+ "name": "whoami",
756
+ "mention_name": "hoge",
757
+ "links": {
758
+ "self": "https://api.hipchat.com/v2/user/12345"
759
+ },
760
+ "id": 632698
761
+ },
762
+ "date": "2014-06-04T05:03:23.583044+00:00"
763
+ },
764
+ {
765
+ "message": "Yeah, about your article URL.",
766
+ "mentions": [],
767
+ "id": "abcdef",
768
+ "from": {
769
+ "name": "whoami",
770
+ "mention_name": "hoge",
771
+ "links": {
772
+ "self": "https://api.hipchat.com/v2/user/12345"
773
+ },
774
+ "id": 632698
775
+ },
776
+ "date": "2014-06-04T05:03:23.583044+00:00"
777
+ },
778
+ {
779
+ "message": "Yeah, about your article URL.",
780
+ "mentions": [],
781
+ "id": "abcdef",
782
+ "from": {
783
+ "name": "whoami",
784
+ "mention_name": "hoge",
785
+ "links": {
786
+ "self": "https://api.hipchat.com/v2/user/12345"
787
+ },
788
+ "id": 632698
789
+ },
790
+ "date": "2014-06-04T05:03:23.583044+00:00"
791
+ },
792
+ {
793
+ "message": "Yeah, about your article URL.",
794
+ "mentions": [],
795
+ "id": "abcdef",
796
+ "from": {
797
+ "name": "whoami",
798
+ "mention_name": "hoge",
799
+ "links": {
800
+ "self": "https://api.hipchat.com/v2/user/12345"
801
+ },
802
+ "id": 632698
803
+ },
804
+ "date": "2014-06-04T05:03:23.583044+00:00"
805
+ },
806
+ {
807
+ "message": "Yeah, about your article URL.",
808
+ "mentions": [],
809
+ "id": "abcdef",
810
+ "from": {
811
+ "name": "whoami",
812
+ "mention_name": "hoge",
813
+ "links": {
814
+ "self": "https://api.hipchat.com/v2/user/12345"
815
+ },
816
+ "id": 632698
817
+ },
818
+ "date": "2014-06-04T05:03:23.583044+00:00"
819
+ },
820
+ {
821
+ "message": "Yeah, about your article URL.",
822
+ "mentions": [],
823
+ "id": "abcdef",
824
+ "from": {
825
+ "name": "whoami",
826
+ "mention_name": "hoge",
827
+ "links": {
828
+ "self": "https://api.hipchat.com/v2/user/12345"
829
+ },
830
+ "id": 632698
831
+ },
832
+ "date": "2014-06-04T05:03:23.583044+00:00"
833
+ },
834
+ {
835
+ "message": "Yeah, about your article URL.",
836
+ "mentions": [],
837
+ "id": "abcdef",
838
+ "from": {
839
+ "name": "whoami",
840
+ "mention_name": "hoge",
841
+ "links": {
842
+ "self": "https://api.hipchat.com/v2/user/12345"
843
+ },
844
+ "id": 632698
845
+ },
846
+ "date": "2014-06-04T05:03:23.583044+00:00"
847
+ },
848
+ {
849
+ "message": "Yeah, about your article URL.",
850
+ "mentions": [],
851
+ "id": "abcdef",
852
+ "from": {
853
+ "name": "whoami",
854
+ "mention_name": "hoge",
855
+ "links": {
856
+ "self": "https://api.hipchat.com/v2/user/12345"
857
+ },
858
+ "id": 632698
859
+ },
860
+ "date": "2014-06-04T05:03:23.583044+00:00"
861
+ },
862
+ {
863
+ "message": "Yeah, about your article URL.",
864
+ "mentions": [],
865
+ "id": "abcdef",
866
+ "from": {
867
+ "name": "whoami",
868
+ "mention_name": "hoge",
869
+ "links": {
870
+ "self": "https://api.hipchat.com/v2/user/12345"
871
+ },
872
+ "id": 632698
873
+ },
874
+ "date": "2014-06-04T05:03:23.583044+00:00"
875
+ },
876
+ {
877
+ "message": "Yeah, about your article URL.",
878
+ "mentions": [],
879
+ "id": "abcdef",
880
+ "from": {
881
+ "name": "whoami",
882
+ "mention_name": "hoge",
883
+ "links": {
884
+ "self": "https://api.hipchat.com/v2/user/12345"
885
+ },
886
+ "id": 632698
887
+ },
888
+ "date": "2014-06-04T05:03:23.583044+00:00"
889
+ },
890
+ {
891
+ "message": "Yeah, about your article URL.",
892
+ "mentions": [],
893
+ "id": "abcdef",
894
+ "from": {
895
+ "name": "whoami",
896
+ "mention_name": "hoge",
897
+ "links": {
898
+ "self": "https://api.hipchat.com/v2/user/12345"
899
+ },
900
+ "id": 632698
901
+ },
902
+ "date": "2014-06-04T05:03:23.583044+00:00"
903
+ },
904
+ {
905
+ "message": "Yeah, about your article URL.",
906
+ "mentions": [],
907
+ "id": "abcdef",
908
+ "from": {
909
+ "name": "whoami",
910
+ "mention_name": "hoge",
911
+ "links": {
912
+ "self": "https://api.hipchat.com/v2/user/12345"
913
+ },
914
+ "id": 632698
915
+ },
916
+ "date": "2014-06-04T05:03:23.583044+00:00"
917
+ },
918
+ {
919
+ "message": "Yeah, about your article URL.",
920
+ "mentions": [],
921
+ "id": "abcdef",
922
+ "from": {
923
+ "name": "whoami",
924
+ "mention_name": "hoge",
925
+ "links": {
926
+ "self": "https://api.hipchat.com/v2/user/12345"
927
+ },
928
+ "id": 632698
929
+ },
930
+ "date": "2014-06-04T05:03:23.583044+00:00"
931
+ },
932
+ {
933
+ "message": "Yeah, about your article URL.",
934
+ "mentions": [],
935
+ "id": "abcdef",
936
+ "from": {
937
+ "name": "whoami",
938
+ "mention_name": "hoge",
939
+ "links": {
940
+ "self": "https://api.hipchat.com/v2/user/12345"
941
+ },
942
+ "id": 632698
943
+ },
944
+ "date": "2014-06-04T05:03:23.583044+00:00"
945
+ },
946
+ {
947
+ "message": "Yeah, about your article URL.",
948
+ "mentions": [],
949
+ "id": "abcdef",
950
+ "from": {
951
+ "name": "whoami",
952
+ "mention_name": "hoge",
953
+ "links": {
954
+ "self": "https://api.hipchat.com/v2/user/12345"
955
+ },
956
+ "id": 632698
957
+ },
958
+ "date": "2014-06-04T05:03:23.583044+00:00"
959
+ },
960
+ {
961
+ "message": "Yeah, about your article URL.",
962
+ "mentions": [],
963
+ "id": "abcdef",
964
+ "from": {
965
+ "name": "whoami",
966
+ "mention_name": "hoge",
967
+ "links": {
968
+ "self": "https://api.hipchat.com/v2/user/12345"
969
+ },
970
+ "id": 632698
971
+ },
972
+ "date": "2014-06-04T05:03:23.583044+00:00"
973
+ },
974
+ {
975
+ "message": "Yeah, about your article URL.",
976
+ "mentions": [],
977
+ "id": "abcdef",
978
+ "from": {
979
+ "name": "whoami",
980
+ "mention_name": "hoge",
981
+ "links": {
982
+ "self": "https://api.hipchat.com/v2/user/12345"
983
+ },
984
+ "id": 632698
985
+ },
986
+ "date": "2014-06-04T05:03:23.583044+00:00"
987
+ },
988
+ {
989
+ "message": "Yeah, about your article URL.",
990
+ "mentions": [],
991
+ "id": "abcdef",
992
+ "from": {
993
+ "name": "whoami",
994
+ "mention_name": "hoge",
995
+ "links": {
996
+ "self": "https://api.hipchat.com/v2/user/12345"
997
+ },
998
+ "id": 632698
999
+ },
1000
+ "date": "2014-06-04T05:03:23.583044+00:00"
1001
+ },
1002
+ {
1003
+ "message": "Yeah, about your article URL.",
1004
+ "mentions": [],
1005
+ "id": "abcdef",
1006
+ "from": {
1007
+ "name": "whoami",
1008
+ "mention_name": "hoge",
1009
+ "links": {
1010
+ "self": "https://api.hipchat.com/v2/user/12345"
1011
+ },
1012
+ "id": 632698
1013
+ },
1014
+ "date": "2014-06-04T05:03:23.583044+00:00"
1015
+ },
1016
+ {
1017
+ "message": "Yeah, about your article URL.",
1018
+ "mentions": [],
1019
+ "id": "abcdef",
1020
+ "from": {
1021
+ "name": "whoami",
1022
+ "mention_name": "hoge",
1023
+ "links": {
1024
+ "self": "https://api.hipchat.com/v2/user/12345"
1025
+ },
1026
+ "id": 632698
1027
+ },
1028
+ "date": "2014-06-04T05:03:23.583044+00:00"
1029
+ },
1030
+ {
1031
+ "message": "Yeah, about your article URL.",
1032
+ "mentions": [],
1033
+ "id": "abcdef",
1034
+ "from": {
1035
+ "name": "whoami",
1036
+ "mention_name": "hoge",
1037
+ "links": {
1038
+ "self": "https://api.hipchat.com/v2/user/12345"
1039
+ },
1040
+ "id": 632698
1041
+ },
1042
+ "date": "2014-06-04T05:03:23.583044+00:00"
1043
+ },
1044
+ {
1045
+ "message": "Yeah, about your article URL.",
1046
+ "mentions": [],
1047
+ "id": "abcdef",
1048
+ "from": {
1049
+ "name": "whoami",
1050
+ "mention_name": "hoge",
1051
+ "links": {
1052
+ "self": "https://api.hipchat.com/v2/user/12345"
1053
+ },
1054
+ "id": 632698
1055
+ },
1056
+ "date": "2014-06-04T05:03:23.583044+00:00"
1057
+ },
1058
+ {
1059
+ "message": "Yeah, about your article URL.",
1060
+ "mentions": [],
1061
+ "id": "abcdef",
1062
+ "from": {
1063
+ "name": "whoami",
1064
+ "mention_name": "hoge",
1065
+ "links": {
1066
+ "self": "https://api.hipchat.com/v2/user/12345"
1067
+ },
1068
+ "id": 632698
1069
+ },
1070
+ "date": "2014-06-04T05:03:23.583044+00:00"
1071
+ },
1072
+ {
1073
+ "message": "Yeah, about your article URL.",
1074
+ "mentions": [],
1075
+ "id": "abcdef",
1076
+ "from": {
1077
+ "name": "whoami",
1078
+ "mention_name": "hoge",
1079
+ "links": {
1080
+ "self": "https://api.hipchat.com/v2/user/12345"
1081
+ },
1082
+ "id": 632698
1083
+ },
1084
+ "date": "2014-06-04T05:03:23.583044+00:00"
1085
+ },
1086
+ {
1087
+ "message": "Yeah, about your article URL.",
1088
+ "mentions": [],
1089
+ "id": "abcdef",
1090
+ "from": {
1091
+ "name": "whoami",
1092
+ "mention_name": "hoge",
1093
+ "links": {
1094
+ "self": "https://api.hipchat.com/v2/user/12345"
1095
+ },
1096
+ "id": 632698
1097
+ },
1098
+ "date": "2014-06-04T05:03:23.583044+00:00"
1099
+ },
1100
+ {
1101
+ "message": "Yeah, about your article URL.",
1102
+ "mentions": [],
1103
+ "id": "abcdef",
1104
+ "from": {
1105
+ "name": "whoami",
1106
+ "mention_name": "hoge",
1107
+ "links": {
1108
+ "self": "https://api.hipchat.com/v2/user/12345"
1109
+ },
1110
+ "id": 632698
1111
+ },
1112
+ "date": "2014-06-04T05:03:23.583044+00:00"
1113
+ },
1114
+ {
1115
+ "message": "Yeah, about your article URL.",
1116
+ "mentions": [],
1117
+ "id": "abcdef",
1118
+ "from": {
1119
+ "name": "whoami",
1120
+ "mention_name": "hoge",
1121
+ "links": {
1122
+ "self": "https://api.hipchat.com/v2/user/12345"
1123
+ },
1124
+ "id": 632698
1125
+ },
1126
+ "date": "2014-06-04T05:03:23.583044+00:00"
1127
+ },
1128
+ {
1129
+ "message": "Yeah, about your article URL.",
1130
+ "mentions": [],
1131
+ "id": "abcdef",
1132
+ "from": {
1133
+ "name": "whoami",
1134
+ "mention_name": "hoge",
1135
+ "links": {
1136
+ "self": "https://api.hipchat.com/v2/user/12345"
1137
+ },
1138
+ "id": 632698
1139
+ },
1140
+ "date": "2014-06-04T05:03:23.583044+00:00"
1141
+ },
1142
+ {
1143
+ "message": "Yeah, about your article URL.",
1144
+ "mentions": [],
1145
+ "id": "abcdef",
1146
+ "from": {
1147
+ "name": "whoami",
1148
+ "mention_name": "hoge",
1149
+ "links": {
1150
+ "self": "https://api.hipchat.com/v2/user/12345"
1151
+ },
1152
+ "id": 632698
1153
+ },
1154
+ "date": "2014-06-04T05:03:23.583044+00:00"
1155
+ },
1156
+ {
1157
+ "message": "Yeah, about your article URL.",
1158
+ "mentions": [],
1159
+ "id": "abcdef",
1160
+ "from": {
1161
+ "name": "whoami",
1162
+ "mention_name": "hoge",
1163
+ "links": {
1164
+ "self": "https://api.hipchat.com/v2/user/12345"
1165
+ },
1166
+ "id": 632698
1167
+ },
1168
+ "date": "2014-06-04T05:03:23.583044+00:00"
1169
+ },
1170
+ {
1171
+ "message": "Yeah, about your article URL.",
1172
+ "mentions": [],
1173
+ "id": "abcdef",
1174
+ "from": {
1175
+ "name": "whoami",
1176
+ "mention_name": "hoge",
1177
+ "links": {
1178
+ "self": "https://api.hipchat.com/v2/user/12345"
1179
+ },
1180
+ "id": 632698
1181
+ },
1182
+ "date": "2014-06-04T05:03:23.583044+00:00"
1183
+ },
1184
+ {
1185
+ "message": "Yeah, about your article URL.",
1186
+ "mentions": [],
1187
+ "id": "abcdef",
1188
+ "from": {
1189
+ "name": "whoami",
1190
+ "mention_name": "hoge",
1191
+ "links": {
1192
+ "self": "https://api.hipchat.com/v2/user/12345"
1193
+ },
1194
+ "id": 632698
1195
+ },
1196
+ "date": "2014-06-04T05:03:23.583044+00:00"
1197
+ },
1198
+ {
1199
+ "message": "Yeah, about your article URL.",
1200
+ "mentions": [],
1201
+ "id": "abcdef",
1202
+ "from": {
1203
+ "name": "whoami",
1204
+ "mention_name": "hoge",
1205
+ "links": {
1206
+ "self": "https://api.hipchat.com/v2/user/12345"
1207
+ },
1208
+ "id": 632698
1209
+ },
1210
+ "date": "2014-06-04T05:03:23.583044+00:00"
1211
+ },
1212
+ {
1213
+ "message": "Yeah, about your article URL.",
1214
+ "mentions": [],
1215
+ "id": "abcdef",
1216
+ "from": {
1217
+ "name": "whoami",
1218
+ "mention_name": "hoge",
1219
+ "links": {
1220
+ "self": "https://api.hipchat.com/v2/user/12345"
1221
+ },
1222
+ "id": 632698
1223
+ },
1224
+ "date": "2014-06-04T05:03:23.583044+00:00"
1225
+ },
1226
+ {
1227
+ "message": "Yeah, about your article URL.",
1228
+ "mentions": [],
1229
+ "id": "abcdef",
1230
+ "from": {
1231
+ "name": "whoami",
1232
+ "mention_name": "hoge",
1233
+ "links": {
1234
+ "self": "https://api.hipchat.com/v2/user/12345"
1235
+ },
1236
+ "id": 632698
1237
+ },
1238
+ "date": "2014-06-04T05:03:23.583044+00:00"
1239
+ },
1240
+ {
1241
+ "message": "Yeah, about your article URL.",
1242
+ "mentions": [],
1243
+ "id": "abcdef",
1244
+ "from": {
1245
+ "name": "whoami",
1246
+ "mention_name": "hoge",
1247
+ "links": {
1248
+ "self": "https://api.hipchat.com/v2/user/12345"
1249
+ },
1250
+ "id": 632698
1251
+ },
1252
+ "date": "2014-06-04T05:03:23.583044+00:00"
1253
+ },
1254
+ {
1255
+ "message": "Yeah, about your article URL.",
1256
+ "mentions": [],
1257
+ "id": "abcdef",
1258
+ "from": {
1259
+ "name": "whoami",
1260
+ "mention_name": "hoge",
1261
+ "links": {
1262
+ "self": "https://api.hipchat.com/v2/user/12345"
1263
+ },
1264
+ "id": 632698
1265
+ },
1266
+ "date": "2014-06-04T05:03:23.583044+00:00"
1267
+ },
1268
+ {
1269
+ "message": "Yeah, about your article URL.",
1270
+ "mentions": [],
1271
+ "id": "abcdef",
1272
+ "from": {
1273
+ "name": "whoami",
1274
+ "mention_name": "hoge",
1275
+ "links": {
1276
+ "self": "https://api.hipchat.com/v2/user/12345"
1277
+ },
1278
+ "id": 632698
1279
+ },
1280
+ "date": "2014-06-04T05:03:23.583044+00:00"
1281
+ },
1282
+ {
1283
+ "message": "Yeah, about your article URL.",
1284
+ "mentions": [],
1285
+ "id": "abcdef",
1286
+ "from": {
1287
+ "name": "whoami",
1288
+ "mention_name": "hoge",
1289
+ "links": {
1290
+ "self": "https://api.hipchat.com/v2/user/12345"
1291
+ },
1292
+ "id": 632698
1293
+ },
1294
+ "date": "2014-06-04T05:03:23.583044+00:00"
1295
+ },
1296
+ {
1297
+ "message": "Yeah, about your article URL.",
1298
+ "mentions": [],
1299
+ "id": "abcdef",
1300
+ "from": {
1301
+ "name": "whoami",
1302
+ "mention_name": "hoge",
1303
+ "links": {
1304
+ "self": "https://api.hipchat.com/v2/user/12345"
1305
+ },
1306
+ "id": 632698
1307
+ },
1308
+ "date": "2014-06-04T05:03:23.583044+00:00"
1309
+ },
1310
+ {
1311
+ "message": "Yeah, about your article URL.",
1312
+ "mentions": [],
1313
+ "id": "abcdef",
1314
+ "from": {
1315
+ "name": "whoami",
1316
+ "mention_name": "hoge",
1317
+ "links": {
1318
+ "self": "https://api.hipchat.com/v2/user/12345"
1319
+ },
1320
+ "id": 632698
1321
+ },
1322
+ "date": "2014-06-04T05:03:23.583044+00:00"
1323
+ },
1324
+ {
1325
+ "message": "Yeah, about your article URL.",
1326
+ "mentions": [],
1327
+ "id": "abcdef",
1328
+ "from": {
1329
+ "name": "whoami",
1330
+ "mention_name": "hoge",
1331
+ "links": {
1332
+ "self": "https://api.hipchat.com/v2/user/12345"
1333
+ },
1334
+ "id": 632698
1335
+ },
1336
+ "date": "2014-06-04T05:03:23.583044+00:00"
1337
+ },
1338
+ {
1339
+ "message": "Yeah, about your article URL.",
1340
+ "mentions": [],
1341
+ "id": "abcdef",
1342
+ "from": {
1343
+ "name": "whoami",
1344
+ "mention_name": "hoge",
1345
+ "links": {
1346
+ "self": "https://api.hipchat.com/v2/user/12345"
1347
+ },
1348
+ "id": 632698
1349
+ },
1350
+ "date": "2014-06-04T05:03:23.583044+00:00"
1351
+ },
1352
+ {
1353
+ "message": "Yeah, about your article URL.",
1354
+ "mentions": [],
1355
+ "id": "abcdef",
1356
+ "from": {
1357
+ "name": "whoami",
1358
+ "mention_name": "hoge",
1359
+ "links": {
1360
+ "self": "https://api.hipchat.com/v2/user/12345"
1361
+ },
1362
+ "id": 632698
1363
+ },
1364
+ "date": "2014-06-04T05:03:23.583044+00:00"
1365
+ },
1366
+ {
1367
+ "message": "Yeah, about your article URL.",
1368
+ "mentions": [],
1369
+ "id": "abcdef",
1370
+ "from": {
1371
+ "name": "whoami",
1372
+ "mention_name": "hoge",
1373
+ "links": {
1374
+ "self": "https://api.hipchat.com/v2/user/12345"
1375
+ },
1376
+ "id": 632698
1377
+ },
1378
+ "date": "2014-06-04T05:03:23.583044+00:00"
1379
+ },
1380
+ {
1381
+ "message": "Yeah, about your article URL.",
1382
+ "mentions": [],
1383
+ "id": "abcdef",
1384
+ "from": {
1385
+ "name": "whoami",
1386
+ "mention_name": "hoge",
1387
+ "links": {
1388
+ "self": "https://api.hipchat.com/v2/user/12345"
1389
+ },
1390
+ "id": 632698
1391
+ },
1392
+ "date": "2014-06-04T05:03:23.583044+00:00"
1393
+ },
1394
+ {
1395
+ "message": "Yeah, about your article URL.",
1396
+ "mentions": [],
1397
+ "id": "abcdef",
1398
+ "from": {
1399
+ "name": "whoami",
1400
+ "mention_name": "hoge",
1401
+ "links": {
1402
+ "self": "https://api.hipchat.com/v2/user/12345"
1403
+ },
1404
+ "id": 632698
1405
+ },
1406
+ "date": "2014-06-04T05:03:23.583044+00:00"
1407
+ }
1408
+ ]
1409
+ }