retreaverjs-rails 0.2.24 → 0.2.26
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.
- checksums.yaml +4 -4
- data/build.js +104 -0
- data/lib/retreaverjs/compile.rb +6 -5
- data/lib/retreaverjs/rails/version.rb +1 -1
- data/package.json +14 -27
- data/src/retreaver/campaign.js +4 -2
- data/vendor/assets/javascripts/retreaver.js +29 -13
- data/vendor/assets/javascripts/retreaver.min.js +2 -2
- data/vendor/documentation/javascript/v1/Retreaver.Campaign.html +343 -282
- data/vendor/documentation/javascript/v1/Retreaver.Number.html +875 -713
- data/vendor/documentation/javascript/v1/Retreaver.html +161 -130
- data/vendor/documentation/javascript/v1/campaign.js.html +11 -85
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.svg +1830 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.svg +1830 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.svg +1831 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.eot +0 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.svg +1831 -0
- data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.woff +0 -0
- data/vendor/documentation/javascript/v1/global.html +123 -93
- data/vendor/documentation/javascript/v1/index.html +10 -8
- data/vendor/documentation/javascript/v1/number.js.html +1 -1
- data/vendor/documentation/javascript/v1/retreaver.js.html +8 -7
- data/vendor/documentation/javascript/v1/retreaver_campaign.js.html +400 -0
- data/vendor/documentation/javascript/v1/retreaver_number.js.html +275 -0
- data/vendor/documentation/javascript/v1/scripts/linenumber.js +20 -12
- data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +201 -133
- data/vendor/documentation/javascript/v1/styles/prettify-tomorrow.css +1 -1
- data/vendor/documentation/javascript/{dev → v2}/Retreaver.Campaign.html +3 -3
- data/vendor/documentation/javascript/{dev → v2}/Retreaver.Number.html +1 -1
- data/vendor/documentation/javascript/{dev → v2}/Retreaver.html +2 -2
- data/vendor/documentation/javascript/{dev → v2}/campaign.js.html +39 -48
- data/vendor/documentation/javascript/{dev → v2}/global.html +2 -2
- data/vendor/documentation/javascript/{dev → v2}/index.html +1 -1
- data/vendor/documentation/javascript/{dev → v2}/number.js.html +1 -1
- data/vendor/documentation/javascript/{dev → v2}/retreaver.js.html +2 -2
- metadata +42 -24
- data/Gruntfile.js +0 -50
- /data/vendor/documentation/javascript/{dev → v2}/scripts/linenumber.js +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/scripts/prettify/Apache-License-2.0.txt +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/scripts/prettify/lang-css.js +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/scripts/prettify/prettify.js +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/styles/jsdoc-default.css +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/styles/prettify-jsdoc.css +0 -0
- /data/vendor/documentation/javascript/{dev → v2}/styles/prettify-tomorrow.css +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>JSDoc: Class: Campaign</title>
|
6
|
-
|
6
|
+
|
7
7
|
<script src="scripts/prettify/prettify.js"> </script>
|
8
8
|
<script src="scripts/prettify/lang-css.js"> </script>
|
9
9
|
<!--[if lt IE 9]>
|
@@ -16,72 +16,75 @@
|
|
16
16
|
<body>
|
17
17
|
|
18
18
|
<div id="main">
|
19
|
-
|
19
|
+
|
20
20
|
<h1 class="page-title">Class: Campaign</h1>
|
21
|
+
|
21
22
|
|
22
|
-
|
23
|
+
|
23
24
|
|
24
25
|
|
25
26
|
|
26
27
|
<section>
|
27
|
-
|
28
|
+
|
28
29
|
<header>
|
29
|
-
<h2>
|
30
|
-
<span class="ancestors"><a href="Retreaver.html">Retreaver</a>.</span>
|
31
30
|
|
32
|
-
|
33
|
-
|
31
|
+
<h2><span class="attribs"><span class="type-signature"></span></span>
|
32
|
+
<span class="ancestors"><a href="Retreaver.html">Retreaver</a>.</span>Campaign<span class="signature">(options)</span><span class="type-signature"></span></h2>
|
33
|
+
|
34
34
|
|
35
|
-
</header>
|
35
|
+
</header>
|
36
36
|
|
37
37
|
<article>
|
38
38
|
<div class="container-overview">
|
39
39
|
|
40
|
-
|
41
|
-
|
42
40
|
|
43
|
-
<dt>
|
44
|
-
<h4 class="name" id="Campaign"><span class="type-signature"></span>new Campaign<span class="signature">(options)</span><span class="type-signature"></span></h4>
|
45
|
-
|
46
|
-
|
47
|
-
</dt>
|
48
|
-
<dd>
|
49
|
-
|
50
|
-
|
51
41
|
|
52
42
|
|
43
|
+
|
53
44
|
|
45
|
+
<h4 class="name" id="Campaign"><span class="type-signature"></span>new Campaign<span class="signature">(options)</span><span class="type-signature"></span></h4>
|
54
46
|
|
47
|
+
|
55
48
|
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<h5>Parameters:</h5>
|
56
61
|
|
57
|
-
<h5>Parameters:</h5>
|
58
|
-
|
59
62
|
|
60
63
|
<table class="params">
|
61
64
|
<thead>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
65
|
+
<tr>
|
66
|
+
|
67
|
+
<th>Name</th>
|
68
|
+
|
69
|
+
|
70
|
+
<th>Type</th>
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
<th class="last">Description</th>
|
77
|
+
</tr>
|
78
|
+
</thead>
|
79
|
+
|
80
|
+
<tbody>
|
81
|
+
|
82
|
+
|
80
83
|
<tr>
|
81
84
|
|
82
85
|
<td class="name"><code>options</code></td>
|
83
86
|
|
84
|
-
|
87
|
+
|
85
88
|
<td class="type">
|
86
89
|
|
87
90
|
|
@@ -90,40 +93,40 @@
|
|
90
93
|
|
91
94
|
|
92
95
|
</td>
|
96
|
+
|
93
97
|
|
98
|
+
|
94
99
|
|
95
|
-
|
96
|
-
|
97
|
-
|
100
|
+
|
98
101
|
<td class="description last">
|
99
102
|
<h6>Properties</h6>
|
100
103
|
|
101
104
|
|
102
105
|
<table class="params">
|
103
106
|
<thead>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
107
|
+
<tr>
|
108
|
+
|
109
|
+
<th>Name</th>
|
110
|
+
|
111
|
+
|
112
|
+
<th>Type</th>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<th class="last">Description</th>
|
119
|
+
</tr>
|
120
|
+
</thead>
|
121
|
+
|
122
|
+
<tbody>
|
123
|
+
|
124
|
+
|
122
125
|
<tr>
|
123
126
|
|
124
127
|
<td class="name"><code>campaign_key</code></td>
|
125
128
|
|
126
|
-
|
129
|
+
|
127
130
|
<td class="type">
|
128
131
|
|
129
132
|
|
@@ -132,147 +135,170 @@
|
|
132
135
|
|
133
136
|
|
134
137
|
</td>
|
138
|
+
|
135
139
|
|
140
|
+
|
136
141
|
|
137
|
-
|
138
|
-
|
139
|
-
|
142
|
+
|
140
143
|
<td class="description last">Campaign key</td>
|
141
144
|
</tr>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
+
|
146
|
+
|
147
|
+
</tbody>
|
145
148
|
</table>
|
149
|
+
|
146
150
|
</td>
|
147
151
|
</tr>
|
148
|
-
|
149
|
-
|
150
|
-
</tbody>
|
151
|
-
</table>
|
152
|
-
|
153
|
-
|
152
|
+
|
154
153
|
|
154
|
+
</tbody>
|
155
|
+
</table>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
155
162
|
<dl class="details">
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
163
|
|
162
164
|
|
165
|
+
|
163
166
|
|
167
|
+
|
164
168
|
|
169
|
+
|
165
170
|
|
171
|
+
|
166
172
|
|
173
|
+
|
167
174
|
|
175
|
+
|
168
176
|
|
177
|
+
|
169
178
|
|
179
|
+
|
170
180
|
|
181
|
+
|
171
182
|
|
183
|
+
|
172
184
|
|
185
|
+
|
173
186
|
|
187
|
+
|
174
188
|
|
175
189
|
<dt class="tag-source">Source:</dt>
|
176
190
|
<dd class="tag-source"><ul class="dummy"><li>
|
177
|
-
<a href="
|
191
|
+
<a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line12">line 12</a>
|
178
192
|
</li></ul></dd>
|
179
193
|
|
194
|
+
|
180
195
|
|
196
|
+
|
181
197
|
|
182
|
-
|
183
|
-
|
184
|
-
|
198
|
+
|
185
199
|
|
186
200
|
</dl>
|
187
201
|
|
188
|
-
|
189
|
-
|
190
202
|
|
191
|
-
|
192
203
|
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<h5>Example</h5>
|
193
221
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<h5>Example</h5>
|
201
|
-
|
202
222
|
<pre class="prettyprint"><code>var campaign = new Retreaver.Campaign({ campaign_key: '67d9fb1917ae8f4eaff36831b41788c3' });</code></pre>
|
203
223
|
|
204
|
-
|
205
|
-
</dd>
|
224
|
+
|
206
225
|
|
207
226
|
|
208
227
|
</div>
|
228
|
+
|
209
229
|
|
230
|
+
|
210
231
|
|
232
|
+
|
211
233
|
|
234
|
+
|
212
235
|
|
236
|
+
|
213
237
|
|
238
|
+
|
214
239
|
|
240
|
+
|
215
241
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
242
|
+
|
222
243
|
|
223
244
|
<h3 class="subsection-title">Methods</h3>
|
245
|
+
|
224
246
|
|
225
|
-
<dl>
|
226
247
|
|
227
|
-
|
228
|
-
<h4 class="name" id="auto_replace_numbers"><span class="type-signature"></span>auto_replace_numbers<span class="signature">(<span class="optional">tags</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
|
248
|
+
|
229
249
|
|
250
|
+
|
230
251
|
|
231
|
-
</
|
232
|
-
<dd>
|
252
|
+
<h4 class="name" id="auto_replace_numbers"><span class="type-signature"></span>auto_replace_numbers<span class="signature">(tags<span class="signature-attributes">opt</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
|
233
253
|
|
254
|
+
|
234
255
|
|
235
|
-
|
236
|
-
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<div class="description">
|
260
|
+
Auto replace all numbers on page according to campaign settings
|
237
261
|
Calls campaign.request_number
|
238
|
-
|
239
|
-
|
262
|
+
</div>
|
240
263
|
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
<h5>Parameters:</h5>
|
241
273
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
<h5>Parameters:</h5>
|
247
|
-
|
248
274
|
|
249
275
|
<table class="params">
|
250
276
|
<thead>
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
277
|
+
<tr>
|
278
|
+
|
279
|
+
<th>Name</th>
|
280
|
+
|
281
|
+
|
282
|
+
<th>Type</th>
|
283
|
+
|
284
|
+
|
285
|
+
<th>Attributes</th>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
<th class="last">Description</th>
|
291
|
+
</tr>
|
292
|
+
</thead>
|
293
|
+
|
294
|
+
<tbody>
|
295
|
+
|
296
|
+
|
271
297
|
<tr>
|
272
298
|
|
273
299
|
<td class="name"><code>tags</code></td>
|
274
300
|
|
275
|
-
|
301
|
+
|
276
302
|
<td class="type">
|
277
303
|
|
278
304
|
|
@@ -281,31 +307,31 @@ Calls campaign.request_number
|
|
281
307
|
|
282
308
|
|
283
309
|
</td>
|
284
|
-
|
310
|
+
|
285
311
|
|
286
312
|
<td class="attributes">
|
287
313
|
|
288
314
|
<optional><br>
|
289
315
|
|
290
|
-
|
316
|
+
|
291
317
|
|
292
|
-
|
318
|
+
|
293
319
|
|
294
320
|
</td>
|
295
321
|
|
322
|
+
|
296
323
|
|
297
|
-
|
298
|
-
|
324
|
+
|
299
325
|
<td class="description last">A collection of tags as key-value pairs. The number returned will match these tags.</td>
|
300
326
|
</tr>
|
301
|
-
|
302
|
-
|
303
|
-
|
327
|
+
|
328
|
+
|
329
|
+
|
304
330
|
<tr>
|
305
331
|
|
306
332
|
<td class="name"><code>callback</code></td>
|
307
333
|
|
308
|
-
|
334
|
+
|
309
335
|
<td class="type">
|
310
336
|
|
311
337
|
|
@@ -314,29 +340,29 @@ Calls campaign.request_number
|
|
314
340
|
|
315
341
|
|
316
342
|
</td>
|
317
|
-
|
343
|
+
|
318
344
|
|
319
345
|
<td class="attributes">
|
320
346
|
|
321
|
-
|
347
|
+
|
322
348
|
|
323
|
-
|
349
|
+
|
324
350
|
|
325
351
|
</td>
|
326
352
|
|
353
|
+
|
327
354
|
|
328
|
-
|
329
|
-
|
355
|
+
|
330
356
|
<td class="description last">Callback fired if the request completes successfully.</td>
|
331
357
|
</tr>
|
332
|
-
|
333
|
-
|
334
|
-
|
358
|
+
|
359
|
+
|
360
|
+
|
335
361
|
<tr>
|
336
362
|
|
337
363
|
<td class="name"><code>error_callback</code></td>
|
338
364
|
|
339
|
-
|
365
|
+
|
340
366
|
<td class="type">
|
341
367
|
|
342
368
|
|
@@ -345,134 +371,154 @@ Calls campaign.request_number
|
|
345
371
|
|
346
372
|
|
347
373
|
</td>
|
348
|
-
|
374
|
+
|
349
375
|
|
350
376
|
<td class="attributes">
|
351
377
|
|
352
|
-
|
378
|
+
|
353
379
|
|
354
|
-
|
380
|
+
|
355
381
|
|
356
382
|
</td>
|
357
383
|
|
384
|
+
|
358
385
|
|
359
|
-
|
360
|
-
|
386
|
+
|
361
387
|
<td class="description last">Callback fired if the request raises an error.</td>
|
362
388
|
</tr>
|
363
|
-
|
364
|
-
|
365
|
-
</tbody>
|
366
|
-
</table>
|
367
|
-
|
368
|
-
|
389
|
+
|
369
390
|
|
391
|
+
</tbody>
|
392
|
+
</table>
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
370
399
|
<dl class="details">
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
400
|
|
377
401
|
|
402
|
+
|
378
403
|
|
404
|
+
|
379
405
|
|
406
|
+
|
380
407
|
|
408
|
+
|
381
409
|
|
410
|
+
|
382
411
|
|
412
|
+
|
383
413
|
|
414
|
+
|
384
415
|
|
416
|
+
|
385
417
|
|
418
|
+
|
386
419
|
|
420
|
+
|
387
421
|
|
422
|
+
|
388
423
|
|
424
|
+
|
389
425
|
|
390
426
|
<dt class="tag-source">Source:</dt>
|
391
427
|
<dd class="tag-source"><ul class="dummy"><li>
|
392
|
-
<a href="
|
428
|
+
<a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line282">line 282</a>
|
393
429
|
</li></ul></dd>
|
394
430
|
|
431
|
+
|
395
432
|
|
433
|
+
|
396
434
|
|
397
|
-
|
398
|
-
|
399
|
-
|
435
|
+
|
400
436
|
|
401
437
|
</dl>
|
402
438
|
|
403
|
-
|
404
|
-
|
405
439
|
|
406
|
-
|
407
440
|
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
<h5>Example</h5>
|
408
458
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
<h5>Example</h5>
|
416
|
-
|
417
459
|
<pre class="prettyprint"><code>campaign.auto_replace_numbers({calling_about: 'support'}, function (number) {
|
418
460
|
alert(number.get('number'))
|
419
461
|
}, function(response){
|
420
462
|
alert('something went wrong: ' + response);
|
421
463
|
};</code></pre>
|
422
464
|
|
423
|
-
|
424
|
-
</dd>
|
465
|
+
|
425
466
|
|
426
467
|
|
427
468
|
|
428
|
-
<dt>
|
429
|
-
<h4 class="name" id="request_number"><span class="type-signature"></span>request_number<span class="signature">(<span class="optional">tags</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
|
430
|
-
|
431
|
-
|
432
|
-
</dt>
|
433
|
-
<dd>
|
434
|
-
|
435
|
-
|
436
|
-
<div class="description">
|
437
|
-
Fetch a campaign number.
|
438
|
-
</div>
|
439
|
-
|
440
469
|
|
441
470
|
|
471
|
+
|
442
472
|
|
473
|
+
<h4 class="name" id="request_number"><span class="type-signature"></span>request_number<span class="signature">(tags<span class="signature-attributes">opt</span>, callback, error_callback)</span><span class="type-signature"></span></h4>
|
443
474
|
|
475
|
+
|
444
476
|
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
<div class="description">
|
481
|
+
Fetch a campaign number.
|
482
|
+
</div>
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
<h5>Parameters:</h5>
|
445
493
|
|
446
|
-
<h5>Parameters:</h5>
|
447
|
-
|
448
494
|
|
449
495
|
<table class="params">
|
450
496
|
<thead>
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
497
|
+
<tr>
|
498
|
+
|
499
|
+
<th>Name</th>
|
500
|
+
|
501
|
+
|
502
|
+
<th>Type</th>
|
503
|
+
|
504
|
+
|
505
|
+
<th>Attributes</th>
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
<th class="last">Description</th>
|
511
|
+
</tr>
|
512
|
+
</thead>
|
513
|
+
|
514
|
+
<tbody>
|
515
|
+
|
516
|
+
|
471
517
|
<tr>
|
472
518
|
|
473
519
|
<td class="name"><code>tags</code></td>
|
474
520
|
|
475
|
-
|
521
|
+
|
476
522
|
<td class="type">
|
477
523
|
|
478
524
|
|
@@ -481,31 +527,31 @@ Calls campaign.request_number
|
|
481
527
|
|
482
528
|
|
483
529
|
</td>
|
484
|
-
|
530
|
+
|
485
531
|
|
486
532
|
<td class="attributes">
|
487
533
|
|
488
534
|
<optional><br>
|
489
535
|
|
490
|
-
|
536
|
+
|
491
537
|
|
492
|
-
|
538
|
+
|
493
539
|
|
494
540
|
</td>
|
495
541
|
|
542
|
+
|
496
543
|
|
497
|
-
|
498
|
-
|
544
|
+
|
499
545
|
<td class="description last">A collection of tags as key-value pairs. The number returned will match these tags.</td>
|
500
546
|
</tr>
|
501
|
-
|
502
|
-
|
503
|
-
|
547
|
+
|
548
|
+
|
549
|
+
|
504
550
|
<tr>
|
505
551
|
|
506
552
|
<td class="name"><code>callback</code></td>
|
507
553
|
|
508
|
-
|
554
|
+
|
509
555
|
<td class="type">
|
510
556
|
|
511
557
|
|
@@ -514,29 +560,29 @@ Calls campaign.request_number
|
|
514
560
|
|
515
561
|
|
516
562
|
</td>
|
517
|
-
|
563
|
+
|
518
564
|
|
519
565
|
<td class="attributes">
|
520
566
|
|
521
|
-
|
567
|
+
|
522
568
|
|
523
|
-
|
569
|
+
|
524
570
|
|
525
571
|
</td>
|
526
572
|
|
573
|
+
|
527
574
|
|
528
|
-
|
529
|
-
|
575
|
+
|
530
576
|
<td class="description last">Callback fired if the request completes successfully.</td>
|
531
577
|
</tr>
|
532
|
-
|
533
|
-
|
534
|
-
|
578
|
+
|
579
|
+
|
580
|
+
|
535
581
|
<tr>
|
536
582
|
|
537
583
|
<td class="name"><code>error_callback</code></td>
|
538
584
|
|
539
|
-
|
585
|
+
|
540
586
|
<td class="type">
|
541
587
|
|
542
588
|
|
@@ -545,93 +591,108 @@ Calls campaign.request_number
|
|
545
591
|
|
546
592
|
|
547
593
|
</td>
|
548
|
-
|
594
|
+
|
549
595
|
|
550
596
|
<td class="attributes">
|
551
597
|
|
552
|
-
|
598
|
+
|
553
599
|
|
554
|
-
|
600
|
+
|
555
601
|
|
556
602
|
</td>
|
557
603
|
|
604
|
+
|
558
605
|
|
559
|
-
|
560
|
-
|
606
|
+
|
561
607
|
<td class="description last">Callback fired if the request raises an error.</td>
|
562
608
|
</tr>
|
563
|
-
|
564
|
-
|
565
|
-
</tbody>
|
566
|
-
</table>
|
567
|
-
|
568
|
-
|
609
|
+
|
569
610
|
|
611
|
+
</tbody>
|
612
|
+
</table>
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
570
619
|
<dl class="details">
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
620
|
|
577
621
|
|
622
|
+
|
578
623
|
|
624
|
+
|
579
625
|
|
626
|
+
|
580
627
|
|
628
|
+
|
581
629
|
|
630
|
+
|
582
631
|
|
632
|
+
|
583
633
|
|
634
|
+
|
584
635
|
|
636
|
+
|
585
637
|
|
638
|
+
|
586
639
|
|
640
|
+
|
587
641
|
|
642
|
+
|
588
643
|
|
644
|
+
|
589
645
|
|
590
646
|
<dt class="tag-source">Source:</dt>
|
591
647
|
<dd class="tag-source"><ul class="dummy"><li>
|
592
|
-
<a href="
|
648
|
+
<a href="retreaver_campaign.js.html">retreaver/campaign.js</a>, <a href="retreaver_campaign.js.html#line198">line 198</a>
|
593
649
|
</li></ul></dd>
|
594
650
|
|
651
|
+
|
595
652
|
|
653
|
+
|
596
654
|
|
597
|
-
|
598
|
-
|
599
|
-
|
655
|
+
|
600
656
|
|
601
657
|
</dl>
|
602
658
|
|
603
|
-
|
604
|
-
|
605
659
|
|
606
|
-
|
607
660
|
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
<h5>Example</h5>
|
608
678
|
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
<h5>Example</h5>
|
616
|
-
|
617
679
|
<pre class="prettyprint"><code>campaign.request_number({calling_about: 'support'}, function (number) {
|
618
680
|
alert(number.get('number'))
|
619
681
|
}, function(response){
|
620
682
|
alert('something went wrong: ' + response);
|
621
683
|
};</code></pre>
|
622
684
|
|
623
|
-
|
624
|
-
</dd>
|
625
685
|
|
626
|
-
|
627
|
-
|
628
|
-
|
686
|
+
|
687
|
+
|
629
688
|
|
689
|
+
|
630
690
|
|
691
|
+
|
631
692
|
|
632
693
|
</article>
|
633
694
|
|
634
|
-
</section>
|
695
|
+
</section>
|
635
696
|
|
636
697
|
|
637
698
|
|
@@ -639,13 +700,13 @@ Calls campaign.request_number
|
|
639
700
|
</div>
|
640
701
|
|
641
702
|
<nav>
|
642
|
-
<h2><a href="index.html">
|
703
|
+
<h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3><a href="global.html">Global</a></h3>
|
643
704
|
</nav>
|
644
705
|
|
645
|
-
<br
|
706
|
+
<br class="clear">
|
646
707
|
|
647
708
|
<footer>
|
648
|
-
Documentation generated by <a href="https://github.com/
|
709
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> on Sat Aug 23 2025 21:55:04 GMT+0300 (Eastern European Summer Time)
|
649
710
|
</footer>
|
650
711
|
|
651
712
|
<script> prettyPrint(); </script>
|