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