google_text 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,588 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <json><![CDATA[{"messages":{"17123e911563b3180ff29b9ad0af17af163c5e48":{"id":"17123e911563b3180ff29b9ad0af17af163c5e48","phoneNumber":"+13121234567","displayNumber":"(312) 890-2263","startTime":"1316728938887","displayStartDateTime":"9/22/11 5:02 PM","displayStartTime":"5:02 PM","relativeStartTime":"18 minutes ago","note":"","isRead":false,"isSpam":false,"isTrash":false,"star":false,"messageText":"Another message","labels":["inbox","unread","sms","all"],"type":10,"children":""},"b4e9307a073ce0e2a597c170ef53a6a1b6125739":{"id":"b4e9307a073ce0e2a597c170ef53a6a1b6125739","phoneNumber":"+13238423681","displayNumber":"(323) 842-3681","startTime":"1316728839904","displayStartDateTime":"9/22/11 5:00 PM","displayStartTime":"5:00 PM","relativeStartTime":"20 minutes ago","note":"","isRead":false,"isSpam":false,"isTrash":false,"star":false,"messageText":"This is a test","labels":["inbox","unread","sms","all"],"type":10,"children":""}},"totalSize":2,"unreadCounts":{"all":2,"inbox":2,"missed":0,"placed":0,"received":0,"sms":2,"spam":0,"starred":0,"trash":0,"unread":2,"voicemail":0},"resultsPerPage":10}]]></json>
4
+ <html><![CDATA[
5
+
6
+
7
+
8
+ <div id="17123e911563b3180ff29b9ad0af17af163c5e48"
9
+ class="goog-flat-button gc-message gc-message-sms">
10
+ <div class="gc-message-bg">
11
+ <div>
12
+ <table class="gc-message-bg-top">
13
+ <tr>
14
+ <td class="gc-message-bg-f"></td>
15
+ <td class="gc-message-bg-tl"></td>
16
+ <td class="gc-message-bg-t"><div></div></td>
17
+ <td class="gc-message-bg-tr"></td>
18
+ </tr>
19
+ </table>
20
+ </div>
21
+ <div class="gc-message-bg-msg">
22
+ <table class="gc-message-bg-middle">
23
+ <tr>
24
+ <td class="gc-message-bg-f">
25
+ <div style="position: relative; padding-left: 10px; margin-top: 2px;">
26
+ <div class="goog-inline-block"><input type="checkbox" class="gc-message-checkbox"/></div>
27
+ </div>
28
+ <div style="position: relative;">
29
+ <div class="gc-message-bg-callout"></div>
30
+ </div>
31
+ </td>
32
+ <td class="gc-message-bg-l gc-message-bg-upper"></td>
33
+ <td class="gc-message-bg-m gc-message-bg-upper">
34
+ <div style="padding-bottom: 3px;">
35
+
36
+ <table style="width: 100%;">
37
+ <tr><td class="gc-sline-top"></td><td></td></tr>
38
+ <tr><td class="gc-message-sline"><span></span></td><td style="padding-left: 4px;">
39
+ <table class="gc-message-tbl">
40
+ <tr>
41
+ <td class="gc-message-tbl-portrait">
42
+ <div class="gc-message-portrait">
43
+
44
+ <img alt="Blue_ghost" src="/voice/resources/1366864992-blue_ghost.jpg"/>
45
+
46
+ <div class="gc-message-icon-10"></div>
47
+ </div>
48
+ </td>
49
+ <td class="gc-message-tbl-metadata">
50
+ <div>
51
+ <span class="gc-message-name">
52
+
53
+
54
+ <a class="gc-under gc-message-name-link" title="Go to contact" href="javascript://">+13121234567</a>
55
+ <span style="display: none;">0</span>
56
+
57
+
58
+
59
+ </span>
60
+
61
+ <span class="gc-message-add-contact">
62
+ <a href="javascript://">Add</a>
63
+ <div class="gc-quickadd-contents" style="display: none;">
64
+ <form action="" name="quickcadd" onsubmit="return false;">
65
+ <div class="gc-bubble-ih" style="margin-bottom: 3px;">
66
+ <span>Quick Add</span>
67
+ <span style="font-weight: normal;"></span>
68
+ <span style="color: #0f65bb; margin: 0 0 0 2px;">(312) 890-2263</span>
69
+ </div>
70
+ <div class="gc-bubble-subg" style="font-size: 11px; margin-bottom: 3px; white-space: nowrap;">
71
+ Enter a new or existing contact name
72
+ </div>
73
+ <table class="gc-quickadd-inputs">
74
+ <tr>
75
+ <th>Name</th>
76
+ <td>
77
+ <input type="text" class="gc-text"/>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <th style="padding-top: 6px;">Type</th>
82
+ <td style="padding-top: 5px;">
83
+ <div>
84
+ <div class="goog-flat-menu-button gc-quickadd-phone-type">
85
+ <div class="goog-menu gc-simple-menu gc-phone-type-menu" style="z-index: 10001;">
86
+ <div class="goog-option goog-option-selected">Mobile</div>
87
+ <div class="goog-option">Work</div>
88
+ <div class="goog-option">Home</div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </td>
93
+ </tr>
94
+ </table>
95
+ <div class="gc-quickadd-buttons">
96
+ <div class="goog-inline-block gc-quickadd-save">Create / Add</div>
97
+ <div style="display: none;" id="gc-qa-1316728938887" class="goog-inline-block gc-quickadd-msg"></div>
98
+ </div>
99
+ <div class="gc-quickadd-contacts" style="display: none;"></div>
100
+ </form>
101
+ </div>
102
+ </span>
103
+ <span class="gc-message-location">- <a class="gc-under" style="color: #999;" title="Go to map of area code location" href="http://maps.google.com/maps?q=Chicago, IL&hl=en_US" target="_blank">Chicago, IL</a></span>
104
+
105
+ </div>
106
+ <div class="gc-message-time-row">
107
+ <span class="gc-message-time">9/22/11 5:02 PM</span>
108
+ <span class="gc-message-relative">18 minutes ago</span>
109
+
110
+
111
+
112
+
113
+ <span class="gc-message-dialed-did">
114
+
115
+ </span>
116
+
117
+ </div>
118
+ </td>
119
+ <td class="gc-message-tbl-actions">
120
+ <div class="gc-message-actions">
121
+ <div class="goog-inline-block goog-flat-button gc-message-star gc-message-star-off">&nbsp;</div>
122
+ </div>
123
+ </td>
124
+ </tr>
125
+
126
+ <tr>
127
+ <td colspan="4" class="gc-message-tbl-desc">
128
+ <div class="gc-message-transcript">
129
+ <div class="gc-message-transcript-msg">
130
+ <table class="gc-message-transcript-middle">
131
+ <tr>
132
+ <td class="gc-message-transcript-l"></td>
133
+ <td class="gc-message-transcript-m"><div>
134
+ <div class="gc-message-player">
135
+
136
+ <div class="gc-message-message-display">
137
+
138
+
139
+
140
+
141
+ <div class="gc-message-sms-row">
142
+ <span class="gc-message-sms-from">
143
+ +13121234567:
144
+ </span>
145
+ <span class="gc-message-sms-text">Another message</span>
146
+ <span class="gc-message-sms-time">
147
+ 5:02 PM
148
+ </span>
149
+
150
+ </div>
151
+
152
+
153
+ </div>
154
+
155
+ </div>
156
+ </div></td>
157
+ <td class="gc-message-transcript-r"></td>
158
+ </tr>
159
+ </table>
160
+ </div>
161
+ </div>
162
+ </td>
163
+ </tr>
164
+
165
+ </table>
166
+
167
+ </td></tr>
168
+ <tr><td class="gc-sline-bottom"></td><td></td></tr>
169
+ </table>
170
+
171
+ </div></td>
172
+ <td class="gc-message-bg-r gc-message-bg-upper"></td>
173
+ </tr>
174
+ </table>
175
+ </div>
176
+
177
+ <div class="gc-message-bg-msg">
178
+ <table class="gc-message-bg-middle">
179
+ <tr>
180
+ <td class="gc-message-bg-f"></td>
181
+ <td class="gc-message-bg-l gc-message-bg-g"></td>
182
+ <td class="gc-message-bg-m gc-message-bg-g"><div style="position: relative; padding: 0px 7px 2px;">
183
+
184
+ <div class="gc-message-note-edit" style="display: none;">
185
+ <div class="goog-inline-block">
186
+ <textarea></textarea>
187
+ <div class="gc-message-note-ctrl">
188
+ <div class="goog-inline-block gc-message-note-save">Save Note</div>&nbsp;<div
189
+ class="goog-inline-block gc-message-note-cancel">Cancel</div>&nbsp;<div
190
+ class="goog-inline-block gc-message-note-delete">Delete</div>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ <div class="gc-message-note-display" style="display: none;">
195
+ <div class="goog-inline-block gc-message-note"></div>
196
+ </div>
197
+ <div class="gc-message-sms-reply" style="display: none;">
198
+ <div class="goog-inline-block">
199
+ <textarea></textarea>
200
+ <div class="gc-message-sms-ctrl">
201
+ <div class="goog-inline-block gc-message-sms-send">Send</div>&nbsp;<div
202
+ class="goog-inline-block gc-message-sms-cancel">Cancel</div>
203
+ <div class="gc-sms-counter">160</div>
204
+
205
+ </div>
206
+ </div>
207
+ </div>
208
+
209
+ <div class="gc-message-sms-actions gc-simple-menu">
210
+ <div style="vertical-align: bottom;" class="goog-inline-block">
211
+ <div class="goog-inline-block goog-flat-button gc-control gc-message-call" style="vertical-align: bottom; margin-right: 10px;">Call<div class="gc-quickcall-contents" style="display: none;">
212
+ <form action="" name="quickcall" onsubmit="return false;">
213
+
214
+ <div>Google will call your phone and connect you to <b>(312) 890-2263</b>. </div>
215
+ <input type="hidden" class="gc-text gc-quickcall-ac" value="+13121234567"/>
216
+
217
+ <div class="gc-bubble-ih">Phone to call with</div>
218
+ <div>
219
+ <div class="goog-flat-menu-button gc-quickcall-phone" tabindex="31">
220
+ <div class="goog-menu gc-simple-menu gc-phone-menu" style="z-index: 10001;">
221
+ </div>
222
+ </div>
223
+ </div>
224
+ <div class="gc-bubble-sub">
225
+ <input type="checkbox" tabindex="32" id="gc-qcr-1316728938887" class="gc-quickcall-remember"/>
226
+ <label for="gc-qcr-1316728938887">Remember my choice</label>
227
+ </div>
228
+ <div style="margin-top: 8px;">
229
+ <input type="submit" class="gc-quickcall-submit" style="display: none;"/>
230
+ <div tabindex="33" class="goog-inline-block gc-quickcall-connect">Connect</div>
231
+ <div style="display: none;" class="goog-inline-block gc-quickcall-cancel">Cancel</div>
232
+ <div style="display: none;" class="goog-inline-block gc-quickcall-msg"></div>
233
+ </div>
234
+ </form>
235
+ </div>
236
+ </div><div
237
+ class="goog-inline-block goog-flat-button gc-control gc-message-sms" style="vertical-align: bottom; margin-left: 3px; margin-right: 3px;">Text</div><div
238
+ class="gc-message-reply-menu goog-inline-block goog-flat-menu-button" style="margin-right: 8px; display: none;"><div class="goog-inline-block goog-flat-menu-button-dropdown"><small>&#9660;</small></div></div><div
239
+ class="goog-inline-block" style="vertical-align: bottom;"><a class="gc-message-sms-mark-link" style="margin-right: 10px; display: none;" href="javascript://">Mark as read</a></div><div
240
+ class="gc-message-more-menu goog-inline-block goog-flat-menu-button"><div class="goog-inline-block goog-flat-menu-button-caption">more<ul class="goog-menu gc-message-menu" style="display: none;">
241
+ <li class="goog-menuitem">Mark as read</li>
242
+ <li class="goog-menuitem">Add note</li>
243
+ <li class="goog-menuitem">Block caller</li>
244
+
245
+ </ul></div><div class="goog-inline-block goog-flat-menu-button-dropdown"><small>&#9660;</small></div></div>
246
+ </div>
247
+ <div class="gc-message-sms-box">&nbsp;</div>
248
+ </div>
249
+
250
+
251
+
252
+
253
+
254
+
255
+ </div></td>
256
+ <td class="gc-message-bg-r gc-message-bg-g"></td>
257
+ </tr>
258
+ </table>
259
+ </div>
260
+ </div>
261
+ </div>
262
+
263
+
264
+
265
+
266
+ <div id="b4e9307a073ce0e2a597c170ef53a6a1b6125739"
267
+ class="goog-flat-button gc-message gc-message-sms">
268
+ <div class="gc-message-bg">
269
+ <div>
270
+ <table class="gc-message-bg-top">
271
+ <tr>
272
+ <td class="gc-message-bg-f"></td>
273
+ <td class="gc-message-bg-tl"></td>
274
+ <td class="gc-message-bg-t"><div></div></td>
275
+ <td class="gc-message-bg-tr"></td>
276
+ </tr>
277
+ </table>
278
+ </div>
279
+ <div class="gc-message-bg-msg">
280
+ <table class="gc-message-bg-middle">
281
+ <tr>
282
+ <td class="gc-message-bg-f">
283
+ <div style="position: relative; padding-left: 10px; margin-top: 2px;">
284
+ <div class="goog-inline-block"><input type="checkbox" class="gc-message-checkbox"/></div>
285
+ </div>
286
+ <div style="position: relative;">
287
+ <div class="gc-message-bg-callout"></div>
288
+ </div>
289
+ </td>
290
+ <td class="gc-message-bg-l gc-message-bg-upper"></td>
291
+ <td class="gc-message-bg-m gc-message-bg-upper">
292
+ <div style="padding-bottom: 3px;">
293
+
294
+ <table style="width: 100%;">
295
+ <tr><td class="gc-sline-top"></td><td></td></tr>
296
+ <tr><td class="gc-message-sline"><span></span></td><td style="padding-left: 4px;">
297
+ <table class="gc-message-tbl">
298
+ <tr>
299
+ <td class="gc-message-tbl-portrait">
300
+ <div class="gc-message-portrait">
301
+
302
+ <img alt="Blue_ghost" src="/voice/resources/1366864992-blue_ghost.jpg"/>
303
+
304
+ <div class="gc-message-icon-10"></div>
305
+ </div>
306
+ </td>
307
+ <td class="gc-message-tbl-metadata">
308
+ <div>
309
+ <span class="gc-message-name">
310
+
311
+
312
+ <a class="gc-under gc-message-name-link" title="Go to contact" href="javascript://">+13238423681</a>
313
+ <span style="display: none;">0</span>
314
+
315
+
316
+
317
+ </span>
318
+
319
+ <span class="gc-message-add-contact">
320
+ <a href="javascript://">Add</a>
321
+ <div class="gc-quickadd-contents" style="display: none;">
322
+ <form action="" name="quickcadd" onsubmit="return false;">
323
+ <div class="gc-bubble-ih" style="margin-bottom: 3px;">
324
+ <span>Quick Add</span>
325
+ <span style="font-weight: normal;"></span>
326
+ <span style="color: #0f65bb; margin: 0 0 0 2px;">(323) 842-3681</span>
327
+ </div>
328
+ <div class="gc-bubble-subg" style="font-size: 11px; margin-bottom: 3px; white-space: nowrap;">
329
+ Enter a new or existing contact name
330
+ </div>
331
+ <table class="gc-quickadd-inputs">
332
+ <tr>
333
+ <th>Name</th>
334
+ <td>
335
+ <input type="text" class="gc-text"/>
336
+ </td>
337
+ </tr>
338
+ <tr>
339
+ <th style="padding-top: 6px;">Type</th>
340
+ <td style="padding-top: 5px;">
341
+ <div>
342
+ <div class="goog-flat-menu-button gc-quickadd-phone-type">
343
+ <div class="goog-menu gc-simple-menu gc-phone-type-menu" style="z-index: 10001;">
344
+ <div class="goog-option goog-option-selected">Mobile</div>
345
+ <div class="goog-option">Work</div>
346
+ <div class="goog-option">Home</div>
347
+ </div>
348
+ </div>
349
+ </div>
350
+ </td>
351
+ </tr>
352
+ </table>
353
+ <div class="gc-quickadd-buttons">
354
+ <div class="goog-inline-block gc-quickadd-save">Create / Add</div>
355
+ <div style="display: none;" id="gc-qa-1316728839904" class="goog-inline-block gc-quickadd-msg"></div>
356
+ </div>
357
+ <div class="gc-quickadd-contacts" style="display: none;"></div>
358
+ </form>
359
+ </div>
360
+ </span>
361
+ <span class="gc-message-location">- <a class="gc-under" style="color: #999;" title="Go to map of area code location" href="http://maps.google.com/maps?q=Los Angeles, CA&hl=en_US" target="_blank">Los Angeles, CA</a></span>
362
+
363
+ </div>
364
+ <div class="gc-message-time-row">
365
+ <span class="gc-message-time">9/22/11 5:00 PM</span>
366
+ <span class="gc-message-relative">20 minutes ago</span>
367
+
368
+
369
+
370
+
371
+ <span class="gc-message-dialed-did">
372
+
373
+ </span>
374
+
375
+ </div>
376
+ </td>
377
+ <td class="gc-message-tbl-actions">
378
+ <div class="gc-message-actions">
379
+ <div class="goog-inline-block goog-flat-button gc-message-star gc-message-star-off">&nbsp;</div>
380
+ </div>
381
+ </td>
382
+ </tr>
383
+
384
+ <tr>
385
+ <td colspan="4" class="gc-message-tbl-desc">
386
+ <div class="gc-message-transcript">
387
+ <div class="gc-message-transcript-msg">
388
+ <table class="gc-message-transcript-middle">
389
+ <tr>
390
+ <td class="gc-message-transcript-l"></td>
391
+ <td class="gc-message-transcript-m"><div>
392
+ <div class="gc-message-player">
393
+
394
+ <div class="gc-message-message-display">
395
+
396
+
397
+
398
+
399
+ <div class="gc-message-sms-row">
400
+ <span class="gc-message-sms-from">
401
+ +13238423681:
402
+ </span>
403
+ <span class="gc-message-sms-text">This is a test</span>
404
+ <span class="gc-message-sms-time">
405
+ 5:00 PM
406
+ </span>
407
+
408
+ </div>
409
+
410
+
411
+ <div class="gc-message-sms-row">
412
+ <span class="gc-message-sms-from">
413
+ +13238423681:
414
+ </span>
415
+ <span class="gc-message-sms-text">This is another test</span>
416
+ <span class="gc-message-sms-time">
417
+ 5:00 PM
418
+ </span>
419
+
420
+ </div>
421
+
422
+
423
+ <div class="gc-message-sms-row">
424
+ <span class="gc-message-sms-from">
425
+ +13238423681:
426
+ </span>
427
+ <span class="gc-message-sms-text">This is a third test</span>
428
+ <span class="gc-message-sms-time">
429
+ 5:00 PM
430
+ </span>
431
+
432
+ </div>
433
+
434
+
435
+ </div>
436
+
437
+ </div>
438
+ </div></td>
439
+ <td class="gc-message-transcript-r"></td>
440
+ </tr>
441
+ </table>
442
+ </div>
443
+ </div>
444
+ </td>
445
+ </tr>
446
+
447
+ </table>
448
+
449
+ </td></tr>
450
+ <tr><td class="gc-sline-bottom"></td><td></td></tr>
451
+ </table>
452
+
453
+ </div></td>
454
+ <td class="gc-message-bg-r gc-message-bg-upper"></td>
455
+ </tr>
456
+ </table>
457
+ </div>
458
+
459
+ <div class="gc-message-bg-msg">
460
+ <table class="gc-message-bg-middle">
461
+ <tr>
462
+ <td class="gc-message-bg-f"></td>
463
+ <td class="gc-message-bg-l gc-message-bg-g"></td>
464
+ <td class="gc-message-bg-m gc-message-bg-g"><div style="position: relative; padding: 0px 7px 2px;">
465
+
466
+ <div class="gc-message-note-edit" style="display: none;">
467
+ <div class="goog-inline-block">
468
+ <textarea></textarea>
469
+ <div class="gc-message-note-ctrl">
470
+ <div class="goog-inline-block gc-message-note-save">Save Note</div>&nbsp;<div
471
+ class="goog-inline-block gc-message-note-cancel">Cancel</div>&nbsp;<div
472
+ class="goog-inline-block gc-message-note-delete">Delete</div>
473
+ </div>
474
+ </div>
475
+ </div>
476
+ <div class="gc-message-note-display" style="display: none;">
477
+ <div class="goog-inline-block gc-message-note"></div>
478
+ </div>
479
+ <div class="gc-message-sms-reply" style="display: none;">
480
+ <div class="goog-inline-block">
481
+ <textarea></textarea>
482
+ <div class="gc-message-sms-ctrl">
483
+ <div class="goog-inline-block gc-message-sms-send">Send</div>&nbsp;<div
484
+ class="goog-inline-block gc-message-sms-cancel">Cancel</div>
485
+ <div class="gc-sms-counter">160</div>
486
+
487
+ </div>
488
+ </div>
489
+ </div>
490
+
491
+ <div class="gc-message-sms-actions gc-simple-menu">
492
+ <div style="vertical-align: bottom;" class="goog-inline-block">
493
+ <div class="goog-inline-block goog-flat-button gc-control gc-message-call" style="vertical-align: bottom; margin-right: 10px;">Call<div class="gc-quickcall-contents" style="display: none;">
494
+ <form action="" name="quickcall" onsubmit="return false;">
495
+
496
+ <div>Google will call your phone and connect you to <b>(323) 842-3681</b>. </div>
497
+ <input type="hidden" class="gc-text gc-quickcall-ac" value="+13238423681"/>
498
+
499
+ <div class="gc-bubble-ih">Phone to call with</div>
500
+ <div>
501
+ <div class="goog-flat-menu-button gc-quickcall-phone" tabindex="31">
502
+ <div class="goog-menu gc-simple-menu gc-phone-menu" style="z-index: 10001;">
503
+ </div>
504
+ </div>
505
+ </div>
506
+ <div class="gc-bubble-sub">
507
+ <input type="checkbox" tabindex="32" id="gc-qcr-1316728839904" class="gc-quickcall-remember"/>
508
+ <label for="gc-qcr-1316728839904">Remember my choice</label>
509
+ </div>
510
+ <div style="margin-top: 8px;">
511
+ <input type="submit" class="gc-quickcall-submit" style="display: none;"/>
512
+ <div tabindex="33" class="goog-inline-block gc-quickcall-connect">Connect</div>
513
+ <div style="display: none;" class="goog-inline-block gc-quickcall-cancel">Cancel</div>
514
+ <div style="display: none;" class="goog-inline-block gc-quickcall-msg"></div>
515
+ </div>
516
+ </form>
517
+ </div>
518
+ </div><div
519
+ class="goog-inline-block goog-flat-button gc-control gc-message-sms" style="vertical-align: bottom; margin-left: 3px; margin-right: 3px;">Text</div><div
520
+ class="gc-message-reply-menu goog-inline-block goog-flat-menu-button" style="margin-right: 8px; display: none;"><div class="goog-inline-block goog-flat-menu-button-dropdown"><small>&#9660;</small></div></div><div
521
+ class="goog-inline-block" style="vertical-align: bottom;"><a class="gc-message-sms-mark-link" style="margin-right: 10px; display: none;" href="javascript://">Mark as read</a></div><div
522
+ class="gc-message-more-menu goog-inline-block goog-flat-menu-button"><div class="goog-inline-block goog-flat-menu-button-caption">more<ul class="goog-menu gc-message-menu" style="display: none;">
523
+ <li class="goog-menuitem">Mark as read</li>
524
+ <li class="goog-menuitem">Add note</li>
525
+ <li class="goog-menuitem">Block caller</li>
526
+
527
+ </ul></div><div class="goog-inline-block goog-flat-menu-button-dropdown"><small>&#9660;</small></div></div>
528
+ </div>
529
+ <div class="gc-message-sms-box">&nbsp;</div>
530
+ </div>
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+ </div></td>
546
+ <td class="gc-message-bg-r gc-message-bg-g"></td>
547
+ </tr>
548
+ </table>
549
+ </div>
550
+ </div>
551
+ </div>
552
+
553
+
554
+ <div class="gc-inbox-btm-paging"></div>
555
+
556
+ <div class="gc-footer-inbox">
557
+
558
+
559
+ <div class="gc-user-tip"><div class="goog-inline-block"><b>Tip:</b>
560
+ Turn "Do Not Disturb" on to temporarily send all your calls to voicemail.
561
+ <a target="_blank" href="http://www.google.com/support/voice/bin/answer.py?hl=en&answer=115106&ctx=tip">Learn more</a>
562
+
563
+ </div></div>
564
+
565
+
566
+ <div class="gc-footer">
567
+ &copy;2011 Google
568
+ - <a target="_blank" href="http://www.google.com/intl/en_US/googlevoice/legal-notices.html">Terms</a>
569
+ - <a target="_blank" href="http://googlevoiceblog.blogspot.com/">Blog</a>
570
+ - <a target="_blank" href="http://www.google.com">Google Home</a>
571
+
572
+ - Follow us on:&nbsp;
573
+ <a href="http://googlevoiceblog.blogspot.com?&hl=en_US" title="Follow us on Blogger"
574
+ target="_blank"><img alt="Share-blogger" class="gc-social-media-icon" src="/voice/resources/354906564-share-blogger.png"/></a>
575
+ <a href="http://www.facebook.com/googlevoice" title="Follow us on Facebook"
576
+ target="_blank"><img alt="Share-facebook" class="gc-social-media-icon" src="/voice/resources/1069641586-share-facebook.png"/></a>
577
+ <a href="http://www.twitter.com/googlevoice" title="Follow us on Twitter"
578
+ target="_blank"><img alt="Share-twitter" class="gc-social-media-icon" src="/voice/resources/3056668169-share-twitter.png"/></a>
579
+ <a href="http://www.youtube.com/googlevoice?&hl=en_US" title="Follow us on YouTube"
580
+ target="_blank"><img alt="Share-youtube" class="gc-social-media-icon" src="/voice/resources/2655032802-share-youtube.png"/></a>
581
+ </div>
582
+
583
+ </div>
584
+
585
+ <div style="display: none;">
586
+ <img alt="Callout_selected" src="/voice/resources/1487696585-callout_selected.gif"/><img alt="Tl_selected" src="/voice/resources/2635542038-tl_selected.gif"/><img alt="Top_selected" src="/voice/resources/367283939-top_selected.gif"/><img alt="Tr_selected" src="/voice/resources/2433887551-tr_selected.gif"/><img alt="Bl_selected" src="/voice/resources/3174837910-bl_selected.gif"/><img alt="Bottom_selected" src="/voice/resources/1834447710-bottom_selected.gif"/><img alt="Br_selected" src="/voice/resources/2110467394-br_selected.gif"/><img alt="Left_selected" src="/voice/resources/2503289043-left_selected.gif"/><img alt="Right_selected" src="/voice/resources/947660058-right_selected.gif"/></div>
587
+ ]]></html>
588
+ </response>
@@ -22,7 +22,7 @@ describe GoogleText::Client do
22
22
 
23
23
  it "should return a valid xsrf_token" do
24
24
  client.get_xsrf_token
25
- client.xsrf_token.should_not be_nil
25
+ client.xsrf_token.should eq 'gw3tJxlUTos'
26
26
  end
27
27
  end
28
28
 
@@ -48,24 +48,21 @@ describe GoogleText::Client do
48
48
  end
49
49
 
50
50
  context "get_messages" do
51
- before(:all) do
51
+ before(:each) do
52
52
  client.stub!(:login_page).and_return(File.read("spec/data/login_url.html"))
53
53
  client.stub!(:post_to_login).and_return(true)
54
54
  client.stub!(:dashboard_page).and_return(File.read("spec/data/dashboard_url.html"))
55
55
  client.stub!(:inbox_page).and_return(File.read("spec/data/recent_messages.html"))
56
- end
57
-
58
- let(:messages) do
59
- client.login
60
- client.get_messages
56
+ client.login
57
+ @messages = client.get_messages
61
58
  end
62
59
 
63
60
  it "should return an non empty array" do
64
- messages.should_not be_empty
61
+ @messages.should_not be_empty
65
62
  end
66
63
 
67
64
  context "message" do
68
- let(:message) {messages.first}
65
+ let(:message) {@messages.first}
69
66
 
70
67
  subject { message }
71
68
 
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe GoogleText::Parsers::Dashboard do
4
+
5
+ before(:each) do
6
+ string = File.read("spec/data/dashboard_url.html")
7
+ @parser = GoogleText::Parsers::Dashboard.new(string)
8
+ end
9
+
10
+ it "should extract an session id" do
11
+ @parser.session_id.should eq "WK7fnEZoPCizMP2Nx7UdqTdFnMA="
12
+ end
13
+
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe GoogleText::Parsers::Inbox do
4
+
5
+ before(:each) do
6
+ string = File.read("spec/data/recent_messages.html")
7
+ @parser = GoogleText::Parsers::Inbox.new(string)
8
+ end
9
+
10
+ it "should extract an xsrf token" do
11
+ @parser.messages.should_not be_empty
12
+ end
13
+
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe GoogleText::Parsers::Login do
4
+
5
+ before(:each) do
6
+ string = File.read("spec/data/login_url.html")
7
+ @parser = GoogleText::Parsers::Login.new(string)
8
+ end
9
+
10
+ it "should extract an xsrf token" do
11
+ @parser.xsrf_token.should eq "gw3tJxlUTos"
12
+ end
13
+
14
+ end