action_kit_rest 0.4.11 → 1.0.1

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +15 -0
  4. data/Gemfile +3 -14
  5. data/Rakefile +4 -38
  6. data/action_kit_rest.gemspec +43 -105
  7. data/lib/action_kit_rest/api.rb +21 -10
  8. data/lib/action_kit_rest/response/raise_error.rb +1 -1
  9. data/lib/action_kit_rest/response/wrapper.rb +1 -1
  10. data/lib/action_kit_rest/user.rb +1 -1
  11. data/lib/action_kit_rest/version.rb +3 -3
  12. metadata +65 -47
  13. data/.document +0 -5
  14. data/.github/workflows/ci.yml +0 -24
  15. data/spec/fixtures/action/event_create_action.json +0 -24
  16. data/spec/fixtures/action/event_signup_action.json +0 -24
  17. data/spec/fixtures/allowed_user_field/get.json +0 -19
  18. data/spec/fixtures/allowed_user_field/list.json +0 -49
  19. data/spec/fixtures/allowed_user_field/list_filtered.json +0 -30
  20. data/spec/fixtures/error.json +0 -1
  21. data/spec/fixtures/page/campaign.json +0 -32
  22. data/spec/fixtures/page/collection.json +0 -984
  23. data/spec/fixtures/page/find_campaign.json +0 -43
  24. data/spec/fixtures/page/find_event_create.json +0 -42
  25. data/spec/fixtures/page/find_event_signup.json +0 -41
  26. data/spec/fixtures/page/object.json +0 -18
  27. data/spec/fixtures/phone/object.json +0 -33
  28. data/spec/fixtures/user/object_with_phones.json +0 -1
  29. data/spec/fixtures/user/object_without_phones.json +0 -1
  30. data/spec/lib/action_kit_rest/actions/event_create_action_spec.rb +0 -22
  31. data/spec/lib/action_kit_rest/actions/event_signup_action_spec.rb +0 -22
  32. data/spec/lib/action_kit_rest/allowed_user_field_spec.rb +0 -80
  33. data/spec/lib/action_kit_rest/api_spec.rb +0 -111
  34. data/spec/lib/action_kit_rest/logger_spec.rb +0 -22
  35. data/spec/lib/action_kit_rest/page_spec.rb +0 -112
  36. data/spec/lib/action_kit_rest/pages/event_campaign_page_spec.rb +0 -77
  37. data/spec/lib/action_kit_rest/pages/import_page_spec.rb +0 -53
  38. data/spec/lib/action_kit_rest/response/collection_spec.rb +0 -28
  39. data/spec/lib/action_kit_rest/response/validation_error_spec.rb +0 -39
  40. data/spec/lib/action_kit_rest/response/wrapper_spec.rb +0 -27
  41. data/spec/lib/action_kit_rest/user_spec.rb +0 -73
  42. data/spec/spec_helper.rb +0 -51
  43. data/spec/support/shared_contexts/stub_logger.rb +0 -11
@@ -1,984 +0,0 @@
1
- {"meta": {
2
- "limit": 20,
3
- "next": "/rest/v1/page/?_offset=20&_limit=20",
4
- "offset": 0,
5
- "previous": null,
6
- "total_count": 679
7
- }, "objects": [
8
- {
9
- "actions": "/rest/v1/petitionaction/?page=1",
10
- "allow_multiple_responses": false,
11
- "cms_form": "/rest/v1/petitionform/1/",
12
- "created_at": "2009-06-26T18:14:25",
13
- "fields": {},
14
- "followup": {
15
- "email_body": "<p>Dear {{user.first_name}},</p>\r\n<p>Thank you for signing!</p>\r\n<p>Best,</p>\r\n<p>Food Democracy Now</p>",
16
- "email_custom_from": "",
17
- "email_from_line": "/rest/v1/fromline/1/",
18
- "email_subject": "Thanks for demanding a sustainable USDA",
19
- "email_wrapper": "/rest/v1/emailwrapper/1/",
20
- "id": 1,
21
- "notifications": [],
22
- "page": "/rest/v1/petitionpage/1/",
23
- "resource_uri": "/rest/v1/pagefollowup/1/",
24
- "send_email": true,
25
- "send_notifications": false,
26
- "send_pushes": false,
27
- "send_taf": true,
28
- "taf_body": "Sample tellafriend content",
29
- "taf_subject": "Sample tellafriend message",
30
- "url": "/cms/thanks/usda/"
31
- },
32
- "goal": 10,
33
- "goal_type": "actions",
34
- "hidden": false,
35
- "hosted_with": "/rest/v1/hostingplatform/1/",
36
- "id": 1,
37
- "language": "/rest/v1/language/100/",
38
- "list": "/rest/v1/list/1/",
39
- "multilingual_campaign": null,
40
- "name": "usda",
41
- "recognize": "once",
42
- "required_fields": [],
43
- "resource_uri": "/rest/v1/petitionpage/1/",
44
- "status": "active",
45
- "tags": [],
46
- "title": "Demand a Sustainable USDA",
47
- "type": "Petition",
48
- "updated_at": "2012-07-19T13:45:39",
49
- "url": ""
50
- },
51
- {
52
- "actions": "/rest/v1/surveyaction/?page=2",
53
- "allow_multiple_responses": true,
54
- "cms_form": "/rest/v1/surveyform/1/",
55
- "created_at": "2009-06-26T18:15:27",
56
- "fields": {},
57
- "followup": {
58
- "email_body": "",
59
- "email_custom_from": "",
60
- "email_from_line": "/rest/v1/fromline/1/",
61
- "email_subject": "",
62
- "email_wrapper": "/rest/v1/emailwrapper/1/",
63
- "id": 2,
64
- "notifications": [],
65
- "page": "/rest/v1/surveypage/2/",
66
- "resource_uri": "/rest/v1/pagefollowup/2/",
67
- "send_email": false,
68
- "send_notifications": false,
69
- "send_pushes": false,
70
- "send_taf": false,
71
- "taf_body": "",
72
- "taf_subject": "",
73
- "url": "/cms/thanks/dating/"
74
- },
75
- "goal": null,
76
- "goal_type": "actions",
77
- "hidden": false,
78
- "hosted_with": "/rest/v1/hostingplatform/1/",
79
- "id": 2,
80
- "language": "/rest/v1/language/100/",
81
- "list": "/rest/v1/list/1/",
82
- "multilingual_campaign": null,
83
- "name": "dating",
84
- "recognize": "always",
85
- "required_fields": [],
86
- "resource_uri": "/rest/v1/surveypage/2/",
87
- "status": "active",
88
- "tags": [],
89
- "title": "DatingGame",
90
- "type": "Survey",
91
- "updated_at": "2009-06-26T18:15:27",
92
- "url": ""
93
- },
94
- {
95
- "actions": "/rest/v1/donationaction/?page=3",
96
- "allow_multiple_responses": true,
97
- "cms_form": "/rest/v1/donationform/2/",
98
- "created_at": "2009-06-26T18:16:12",
99
- "fields": {},
100
- "followup": {
101
- "email_body": "",
102
- "email_custom_from": "",
103
- "email_from_line": "/rest/v1/fromline/1/",
104
- "email_subject": "",
105
- "email_wrapper": "/rest/v1/emailwrapper/1/",
106
- "id": 3,
107
- "notifications": [],
108
- "page": "/rest/v1/donationpage/3/",
109
- "resource_uri": "/rest/v1/pagefollowup/3/",
110
- "send_email": false,
111
- "send_notifications": false,
112
- "send_pushes": false,
113
- "send_taf": false,
114
- "taf_body": "",
115
- "taf_subject": "",
116
- "url": "/cms/thanks/support/"
117
- },
118
- "goal": null,
119
- "goal_type": "actions",
120
- "hidden": false,
121
- "hosted_with": "/rest/v1/hostingplatform/1/",
122
- "id": 3,
123
- "language": "/rest/v1/language/100/",
124
- "list": "/rest/v1/list/1/",
125
- "multilingual_campaign": null,
126
- "name": "support",
127
- "recognize": "always",
128
- "required_fields": [],
129
- "resource_uri": "/rest/v1/donationpage/3/",
130
- "status": "active",
131
- "tags": [],
132
- "title": "Support our Cause",
133
- "type": "Donation",
134
- "updated_at": "2011-06-07T02:40:51",
135
- "url": ""
136
- },
137
- {
138
- "actions": "/rest/v1/callaction/?page=4",
139
- "allow_multiple_responses": false,
140
- "cms_form": "/rest/v1/callform/1/",
141
- "created_at": "2009-07-27T17:49:46",
142
- "fields": {},
143
- "followup": {
144
- "email_body": "",
145
- "email_custom_from": "",
146
- "email_from_line": "/rest/v1/fromline/1/",
147
- "email_subject": "",
148
- "email_wrapper": "/rest/v1/emailwrapper/1/",
149
- "id": 4,
150
- "notifications": [],
151
- "page": "/rest/v1/callpage/4/",
152
- "resource_uri": "/rest/v1/pagefollowup/4/",
153
- "send_email": false,
154
- "send_notifications": false,
155
- "send_pushes": false,
156
- "send_taf": false,
157
- "taf_body": "",
158
- "taf_subject": "",
159
- "url": "/cms/thanks/ohiomilk"
160
- },
161
- "goal": 10,
162
- "goal_type": "actions",
163
- "hidden": false,
164
- "hosted_with": "/rest/v1/hostingplatform/1/",
165
- "id": 4,
166
- "language": "/rest/v1/language/100/",
167
- "list": "/rest/v1/list/1/",
168
- "multilingual_campaign": null,
169
- "name": "ohiomilk",
170
- "recognize": "once",
171
- "required_fields": [],
172
- "resource_uri": "/rest/v1/callpage/4/",
173
- "status": "active",
174
- "tags": [],
175
- "title": "Tell Gov. Strickland: Mothers Have a Right to Know",
176
- "type": "Call",
177
- "updated_at": "2009-07-27T19:32:39",
178
- "url": ""
179
- },
180
- {
181
- "actions": "/rest/v1/unsubscribeaction/?page=5",
182
- "allow_multiple_responses": true,
183
- "cms_form": "/rest/v1/unsubscribeform/1/",
184
- "created_at": "2009-08-25T08:11:53",
185
- "fields": {},
186
- "followup": {
187
- "email_body": "<p>Thanks, and we're sorry to see you go.</p>",
188
- "email_custom_from": "",
189
- "email_from_line": "/rest/v1/fromline/1/",
190
- "email_subject": "Your unsubscribe request has been processed.",
191
- "email_wrapper": "/rest/v1/emailwrapper/1/",
192
- "id": 5,
193
- "notifications": [],
194
- "page": "/rest/v1/unsubscribepage/5/",
195
- "resource_uri": "/rest/v1/pagefollowup/5/",
196
- "send_email": true,
197
- "send_notifications": false,
198
- "send_pushes": false,
199
- "send_taf": false,
200
- "taf_body": "",
201
- "taf_subject": "",
202
- "url": "/cms/thanks/unsubscribe"
203
- },
204
- "goal": null,
205
- "goal_type": "actions",
206
- "hidden": false,
207
- "hosted_with": "/rest/v1/hostingplatform/1/",
208
- "id": 5,
209
- "language": "/rest/v1/language/100/",
210
- "list": "/rest/v1/list/1/",
211
- "multilingual_campaign": null,
212
- "name": "unsubscribe",
213
- "recognize": "always",
214
- "required_fields": [
215
- {
216
- "id": 2,
217
- "name": "zip",
218
- "resource_uri": "/rest/v1/formfield/2/"
219
- }
220
- ],
221
- "resource_uri": "/rest/v1/unsubscribepage/5/",
222
- "status": "active",
223
- "tags": [],
224
- "title": "Unsubscribe",
225
- "type": "Unsubscribe",
226
- "updated_at": "2011-04-25T15:01:00",
227
- "url": ""
228
- },
229
- {
230
- "actions": "/rest/v1/petitionaction/?page=6",
231
- "allow_multiple_responses": false,
232
- "cms_form": "/rest/v1/petitionform/2/",
233
- "created_at": "2009-09-02T18:26:05",
234
- "fields": {},
235
- "followup": {
236
- "email_body": "<p>Meow</p>",
237
- "email_custom_from": "",
238
- "email_from_line": "/rest/v1/fromline/1/",
239
- "email_subject": "Thanks",
240
- "email_wrapper": "/rest/v1/emailwrapper/1/",
241
- "id": 6,
242
- "notifications": [],
243
- "page": "/rest/v1/petitionpage/6/",
244
- "resource_uri": "/rest/v1/pagefollowup/6/",
245
- "send_email": true,
246
- "send_notifications": false,
247
- "send_pushes": false,
248
- "send_taf": false,
249
- "taf_body": "meow meow",
250
- "taf_subject": "Friend, sign",
251
- "url": "/cms/thanks/cats"
252
- },
253
- "goal": 100,
254
- "goal_type": "actions",
255
- "hidden": false,
256
- "hosted_with": "/rest/v1/hostingplatform/1/",
257
- "id": 6,
258
- "language": "/rest/v1/language/100/",
259
- "list": "/rest/v1/list/1/",
260
- "multilingual_campaign": null,
261
- "name": "cats",
262
- "recognize": "once",
263
- "required_fields": [
264
- {
265
- "id": 2,
266
- "name": "zip",
267
- "resource_uri": "/rest/v1/formfield/2/"
268
- }
269
- ],
270
- "resource_uri": "/rest/v1/petitionpage/6/",
271
- "status": "active",
272
- "tags": [
273
- {
274
- "name": "Consumer protection",
275
- "resource_uri": "/rest/v1/tag/1/"
276
- }
277
- ],
278
- "title": "Where are the cats?",
279
- "type": "Petition",
280
- "updated_at": "2012-04-26T13:54:26",
281
- "url": ""
282
- },
283
- {
284
- "actions": "/rest/v1/petitionaction/?page=7",
285
- "allow_multiple_responses": false,
286
- "cms_form": "/rest/v1/petitionform/3/",
287
- "created_at": "2009-09-02T21:02:23",
288
- "fields": {},
289
- "followup": {
290
- "email_body": "<p>Thanks one more time</p>",
291
- "email_custom_from": "",
292
- "email_from_line": "/rest/v1/fromline/1/",
293
- "email_subject": "Thanks",
294
- "email_wrapper": "/rest/v1/emailwrapper/1/",
295
- "id": 7,
296
- "notifications": [],
297
- "page": "/rest/v1/petitionpage/7/",
298
- "resource_uri": "/rest/v1/pagefollowup/7/",
299
- "send_email": false,
300
- "send_notifications": false,
301
- "send_pushes": false,
302
- "send_taf": true,
303
- "taf_body": "TAF blah blah\r\n\r\nhttp://www-test.actionkit.com/cms/sign/try/",
304
- "taf_subject": "TAF",
305
- "url": "/cms/thanks/bug"
306
- },
307
- "goal": null,
308
- "goal_type": "actions",
309
- "hidden": false,
310
- "hosted_with": "/rest/v1/hostingplatform/1/",
311
- "id": 7,
312
- "language": "/rest/v1/language/100/",
313
- "list": "/rest/v1/list/1/",
314
- "multilingual_campaign": null,
315
- "name": "bug",
316
- "recognize": "once",
317
- "required_fields": [
318
- {
319
- "id": 2,
320
- "name": "zip",
321
- "resource_uri": "/rest/v1/formfield/2/"
322
- }
323
- ],
324
- "resource_uri": "/rest/v1/petitionpage/7/",
325
- "status": "active",
326
- "tags": [],
327
- "title": "Find bug",
328
- "type": "Petition",
329
- "updated_at": "2009-09-02T21:15:16",
330
- "url": ""
331
- },
332
- {
333
- "actions": "/rest/v1/petitionaction/?page=8",
334
- "allow_multiple_responses": false,
335
- "cms_form": "/rest/v1/petitionform/4/",
336
- "created_at": "2009-09-02T21:14:24",
337
- "fields": {},
338
- "followup": {
339
- "email_body": "",
340
- "email_custom_from": "",
341
- "email_from_line": "/rest/v1/fromline/1/",
342
- "email_subject": "",
343
- "email_wrapper": "/rest/v1/emailwrapper/1/",
344
- "id": 8,
345
- "notifications": [],
346
- "page": "/rest/v1/petitionpage/8/",
347
- "resource_uri": "/rest/v1/pagefollowup/8/",
348
- "send_email": false,
349
- "send_notifications": false,
350
- "send_pushes": false,
351
- "send_taf": false,
352
- "taf_body": "",
353
- "taf_subject": "",
354
- "url": "/cms/thanks/try"
355
- },
356
- "goal": null,
357
- "goal_type": "actions",
358
- "hidden": false,
359
- "hosted_with": "/rest/v1/hostingplatform/1/",
360
- "id": 8,
361
- "language": "/rest/v1/language/100/",
362
- "list": "/rest/v1/list/1/",
363
- "multilingual_campaign": null,
364
- "name": "try",
365
- "recognize": "once",
366
- "required_fields": [
367
- {
368
- "id": 2,
369
- "name": "zip",
370
- "resource_uri": "/rest/v1/formfield/2/"
371
- }
372
- ],
373
- "resource_uri": "/rest/v1/petitionpage/8/",
374
- "status": "active",
375
- "tags": [],
376
- "title": "One more try",
377
- "type": "Petition",
378
- "updated_at": "2009-09-02T21:14:24",
379
- "url": ""
380
- },
381
- {
382
- "actions": "/rest/v1/petitionaction/?page=9",
383
- "allow_multiple_responses": false,
384
- "cms_form": "/rest/v1/petitionform/5/",
385
- "created_at": "2009-09-02T21:16:12",
386
- "fields": {},
387
- "followup": {
388
- "email_body": "",
389
- "email_custom_from": "",
390
- "email_from_line": "/rest/v1/fromline/1/",
391
- "email_subject": "",
392
- "email_wrapper": "/rest/v1/emailwrapper/1/",
393
- "id": 9,
394
- "notifications": [],
395
- "page": "/rest/v1/petitionpage/9/",
396
- "resource_uri": "/rest/v1/pagefollowup/9/",
397
- "send_email": false,
398
- "send_notifications": false,
399
- "send_pushes": false,
400
- "send_taf": true,
401
- "taf_body": "http://www-test.actionkit.com/cms/sign/try/",
402
- "taf_subject": "TAF",
403
- "url": "/cms/thanks/back"
404
- },
405
- "goal": null,
406
- "goal_type": "actions",
407
- "hidden": false,
408
- "hosted_with": "/rest/v1/hostingplatform/1/",
409
- "id": 9,
410
- "language": "/rest/v1/language/100/",
411
- "list": "/rest/v1/list/1/",
412
- "multilingual_campaign": null,
413
- "name": "healthcare",
414
- "recognize": "once",
415
- "required_fields": [
416
- {
417
- "id": 2,
418
- "name": "zip",
419
- "resource_uri": "/rest/v1/formfield/2/"
420
- }
421
- ],
422
- "resource_uri": "/rest/v1/petitionpage/9/",
423
- "status": "active",
424
- "tags": [],
425
- "title": "Health care yes!",
426
- "type": "Petition",
427
- "updated_at": "2009-10-14T17:22:14",
428
- "url": ""
429
- },
430
- {
431
- "actions": "/rest/v1/petitionaction/?page=10",
432
- "allow_multiple_responses": false,
433
- "cms_form": "/rest/v1/petitionform/6/",
434
- "created_at": "2009-09-02T21:18:55",
435
- "fields": {},
436
- "followup": {
437
- "email_body": "",
438
- "email_custom_from": "",
439
- "email_from_line": "/rest/v1/fromline/1/",
440
- "email_subject": "",
441
- "email_wrapper": "/rest/v1/emailwrapper/1/",
442
- "id": 10,
443
- "notifications": [],
444
- "page": "/rest/v1/petitionpage/10/",
445
- "resource_uri": "/rest/v1/pagefollowup/10/",
446
- "send_email": false,
447
- "send_notifications": false,
448
- "send_pushes": false,
449
- "send_taf": false,
450
- "taf_body": "",
451
- "taf_subject": "",
452
- "url": "/cms/thanks/TAF"
453
- },
454
- "goal": null,
455
- "goal_type": "actions",
456
- "hidden": false,
457
- "hosted_with": "/rest/v1/hostingplatform/1/",
458
- "id": 10,
459
- "language": "/rest/v1/language/100/",
460
- "list": "/rest/v1/list/1/",
461
- "multilingual_campaign": null,
462
- "name": "TAF",
463
- "recognize": "once",
464
- "required_fields": [
465
- {
466
- "id": 2,
467
- "name": "zip",
468
- "resource_uri": "/rest/v1/formfield/2/"
469
- }
470
- ],
471
- "resource_uri": "/rest/v1/petitionpage/10/",
472
- "status": "active",
473
- "tags": [],
474
- "title": "TAF only?",
475
- "type": "Petition",
476
- "updated_at": "2009-09-02T21:18:55",
477
- "url": ""
478
- },
479
- {
480
- "actions": "/rest/v1/petitionaction/?page=11",
481
- "allow_multiple_responses": false,
482
- "cms_form": "/rest/v1/petitionform/7/",
483
- "created_at": "2009-09-02T21:31:31",
484
- "fields": {},
485
- "followup": {
486
- "email_body": "",
487
- "email_custom_from": "",
488
- "email_from_line": "/rest/v1/fromline/1/",
489
- "email_subject": "",
490
- "email_wrapper": "/rest/v1/emailwrapper/1/",
491
- "id": 11,
492
- "notifications": [],
493
- "page": "/rest/v1/petitionpage/11/",
494
- "resource_uri": "/rest/v1/pagefollowup/11/",
495
- "send_email": false,
496
- "send_notifications": false,
497
- "send_pushes": false,
498
- "send_taf": false,
499
- "taf_body": "",
500
- "taf_subject": "",
501
- "url": "/cms/thanks/step"
502
- },
503
- "goal": null,
504
- "goal_type": "actions",
505
- "hidden": false,
506
- "hosted_with": "/rest/v1/hostingplatform/1/",
507
- "id": 11,
508
- "language": "/rest/v1/language/100/",
509
- "list": "/rest/v1/list/1/",
510
- "multilingual_campaign": null,
511
- "name": "step",
512
- "recognize": "once",
513
- "required_fields": [
514
- {
515
- "id": 2,
516
- "name": "zip",
517
- "resource_uri": "/rest/v1/formfield/2/"
518
- }
519
- ],
520
- "resource_uri": "/rest/v1/petitionpage/11/",
521
- "status": "active",
522
- "tags": [],
523
- "title": "other steps?",
524
- "type": "Petition",
525
- "updated_at": "2009-09-09T18:33:21",
526
- "url": ""
527
- },
528
- {
529
- "actions": "/rest/v1/surveyaction/?page=12",
530
- "allow_multiple_responses": true,
531
- "cms_form": "/rest/v1/surveyform/2/",
532
- "created_at": "2009-09-09T15:42:02",
533
- "fields": {},
534
- "followup": {
535
- "email_body": "",
536
- "email_custom_from": "",
537
- "email_from_line": "/rest/v1/fromline/1/",
538
- "email_subject": "",
539
- "email_wrapper": "/rest/v1/emailwrapper/1/",
540
- "id": 12,
541
- "notifications": [],
542
- "page": "/rest/v1/surveypage/12/",
543
- "resource_uri": "/rest/v1/pagefollowup/12/",
544
- "send_email": false,
545
- "send_notifications": false,
546
- "send_pushes": false,
547
- "send_taf": false,
548
- "taf_body": "",
549
- "taf_subject": "",
550
- "url": "/cms/thanks/questioning"
551
- },
552
- "goal": 10,
553
- "goal_type": "actions",
554
- "hidden": false,
555
- "hosted_with": "/rest/v1/hostingplatform/1/",
556
- "id": 12,
557
- "language": "/rest/v1/language/100/",
558
- "list": "/rest/v1/list/1/",
559
- "multilingual_campaign": null,
560
- "name": "questioning",
561
- "recognize": "always",
562
- "required_fields": [
563
- {
564
- "id": 2,
565
- "name": "zip",
566
- "resource_uri": "/rest/v1/formfield/2/"
567
- },
568
- {
569
- "id": 6,
570
- "name": "first_name",
571
- "resource_uri": "/rest/v1/formfield/6/"
572
- },
573
- {
574
- "id": 7,
575
- "name": "last_name",
576
- "resource_uri": "/rest/v1/formfield/7/"
577
- }
578
- ],
579
- "resource_uri": "/rest/v1/surveypage/12/",
580
- "status": "active",
581
- "tags": [
582
- {
583
- "name": "Issue 2",
584
- "resource_uri": "/rest/v1/tag/3/"
585
- },
586
- {
587
- "name": "Issue 3",
588
- "resource_uri": "/rest/v1/tag/2/"
589
- }
590
- ],
591
- "title": "Self Questioning Questioners",
592
- "type": "Survey",
593
- "updated_at": "2009-09-09T18:17:42",
594
- "url": ""
595
- },
596
- {
597
- "actions": "/rest/v1/petitionaction/?page=13",
598
- "allow_multiple_responses": false,
599
- "cms_form": "/rest/v1/petitionform/8/",
600
- "created_at": "2009-09-09T18:48:09",
601
- "fields": {},
602
- "followup": {
603
- "email_body": "<p>Thanks!</p>",
604
- "email_custom_from": "",
605
- "email_from_line": "/rest/v1/fromline/1/",
606
- "email_subject": "Thanks man!",
607
- "email_wrapper": "/rest/v1/emailwrapper/2/",
608
- "id": 13,
609
- "notifications": [],
610
- "page": "/rest/v1/petitionpage/13/",
611
- "resource_uri": "/rest/v1/pagefollowup/13/",
612
- "send_email": true,
613
- "send_notifications": false,
614
- "send_pushes": false,
615
- "send_taf": true,
616
- "taf_body": "Petition petition petition\r\n\r\nhttp://www-test.actionkit.com/cms/sign/99/",
617
- "taf_subject": "Sign this!",
618
- "url": "/cms/thanks/99"
619
- },
620
- "goal": 35,
621
- "goal_type": "dollars",
622
- "hidden": false,
623
- "hosted_with": "/rest/v1/hostingplatform/1/",
624
- "id": 13,
625
- "language": "/rest/v1/language/100/",
626
- "list": "/rest/v1/list/1/",
627
- "multilingual_campaign": null,
628
- "name": "99",
629
- "recognize": "once",
630
- "required_fields": [
631
- {
632
- "id": 2,
633
- "name": "zip",
634
- "resource_uri": "/rest/v1/formfield/2/"
635
- },
636
- {
637
- "id": 11,
638
- "name": "name",
639
- "resource_uri": "/rest/v1/formfield/11/"
640
- }
641
- ],
642
- "resource_uri": "/rest/v1/petitionpage/13/",
643
- "status": "active",
644
- "tags": [
645
- {
646
- "name": "Consumer protection",
647
- "resource_uri": "/rest/v1/tag/1/"
648
- },
649
- {
650
- "name": "Issue 2",
651
- "resource_uri": "/rest/v1/tag/3/"
652
- }
653
- ],
654
- "title": "Testing 9/9",
655
- "type": "Petition",
656
- "updated_at": "2009-09-09T20:10:13",
657
- "url": ""
658
- },
659
- {
660
- "actions": "/rest/v1/surveyaction/?page=14",
661
- "allow_multiple_responses": true,
662
- "cms_form": "/rest/v1/surveyform/3/",
663
- "created_at": "2009-09-09T19:18:16",
664
- "fields": {},
665
- "followup": {
666
- "email_body": "",
667
- "email_custom_from": "",
668
- "email_from_line": "/rest/v1/fromline/1/",
669
- "email_subject": "",
670
- "email_wrapper": "/rest/v1/emailwrapper/1/",
671
- "id": 14,
672
- "notifications": [],
673
- "page": "/rest/v1/surveypage/14/",
674
- "resource_uri": "/rest/v1/pagefollowup/14/",
675
- "send_email": false,
676
- "send_notifications": false,
677
- "send_pushes": false,
678
- "send_taf": false,
679
- "taf_body": "",
680
- "taf_subject": "",
681
- "url": "/cms/thanks/99survey"
682
- },
683
- "goal": null,
684
- "goal_type": "actions",
685
- "hidden": false,
686
- "hosted_with": "/rest/v1/hostingplatform/1/",
687
- "id": 14,
688
- "language": "/rest/v1/language/100/",
689
- "list": "/rest/v1/list/1/",
690
- "multilingual_campaign": null,
691
- "name": "99survey",
692
- "recognize": "always",
693
- "required_fields": [
694
- {
695
- "id": 2,
696
- "name": "zip",
697
- "resource_uri": "/rest/v1/formfield/2/"
698
- }
699
- ],
700
- "resource_uri": "/rest/v1/surveypage/14/",
701
- "status": "active",
702
- "tags": [],
703
- "title": "Survey",
704
- "type": "Survey",
705
- "updated_at": "2009-12-07T18:13:24",
706
- "url": ""
707
- },
708
- {
709
- "actions": "/rest/v1/unsubscribeaction/?page=15",
710
- "allow_multiple_responses": true,
711
- "cms_form": "/rest/v1/unsubscribeform/2/",
712
- "created_at": "2009-09-09T19:32:21",
713
- "fields": {},
714
- "followup": {
715
- "email_body": "<p>Bye bye bye bye</p>",
716
- "email_custom_from": "\"Me\" <tanya@wawd.com>",
717
- "email_from_line": "/rest/v1/fromline/1/",
718
- "email_subject": "By bye",
719
- "email_wrapper": "/rest/v1/emailwrapper/1/",
720
- "id": 15,
721
- "notifications": [],
722
- "page": "/rest/v1/unsubscribepage/15/",
723
- "resource_uri": "/rest/v1/pagefollowup/15/",
724
- "send_email": true,
725
- "send_notifications": false,
726
- "send_pushes": false,
727
- "send_taf": false,
728
- "taf_body": "",
729
- "taf_subject": "",
730
- "url": "/cms/thanks/testunsub"
731
- },
732
- "goal": null,
733
- "goal_type": "actions",
734
- "hidden": false,
735
- "hosted_with": "/rest/v1/hostingplatform/1/",
736
- "id": 15,
737
- "language": "/rest/v1/language/100/",
738
- "list": "/rest/v1/list/1/",
739
- "multilingual_campaign": null,
740
- "name": "testunsub",
741
- "recognize": "always",
742
- "required_fields": [
743
- {
744
- "id": 2,
745
- "name": "zip",
746
- "resource_uri": "/rest/v1/formfield/2/"
747
- }
748
- ],
749
- "resource_uri": "/rest/v1/unsubscribepage/15/",
750
- "status": "active",
751
- "tags": [],
752
- "title": "Unsubscribe Oh No!",
753
- "type": "Unsubscribe",
754
- "updated_at": "2011-07-05T20:39:51",
755
- "url": ""
756
- },
757
- {
758
- "actions": "/rest/v1/petitionaction/?page=16",
759
- "allow_multiple_responses": false,
760
- "cms_form": "/rest/v1/petitionform/9/",
761
- "created_at": "2009-09-09T23:59:18",
762
- "fields": {},
763
- "followup": {
764
- "email_body": "",
765
- "email_custom_from": "",
766
- "email_from_line": "/rest/v1/fromline/1/",
767
- "email_subject": "",
768
- "email_wrapper": "/rest/v1/emailwrapper/1/",
769
- "id": 16,
770
- "notifications": [],
771
- "page": "/rest/v1/petitionpage/16/",
772
- "resource_uri": "/rest/v1/pagefollowup/16/",
773
- "send_email": false,
774
- "send_notifications": false,
775
- "send_pushes": false,
776
- "send_taf": false,
777
- "taf_body": "",
778
- "taf_subject": "",
779
- "url": "/cms/thanks/round"
780
- },
781
- "goal": null,
782
- "goal_type": "actions",
783
- "hidden": false,
784
- "hosted_with": "/rest/v1/hostingplatform/1/",
785
- "id": 16,
786
- "language": "/rest/v1/language/100/",
787
- "list": "/rest/v1/list/1/",
788
- "multilingual_campaign": null,
789
- "name": "round",
790
- "recognize": "once",
791
- "required_fields": [
792
- {
793
- "id": 2,
794
- "name": "zip",
795
- "resource_uri": "/rest/v1/formfield/2/"
796
- }
797
- ],
798
- "resource_uri": "/rest/v1/petitionpage/16/",
799
- "status": "active",
800
- "tags": [],
801
- "title": "Round2",
802
- "type": "Petition",
803
- "updated_at": "2009-09-09T23:59:18",
804
- "url": ""
805
- },
806
- {
807
- "actions": "/rest/v1/surveyaction/?page=17",
808
- "allow_multiple_responses": true,
809
- "created_at": "2009-09-10T05:10:24",
810
- "fields": {},
811
- "followup": null,
812
- "goal": null,
813
- "goal_type": "actions",
814
- "hidden": false,
815
- "hosted_with": "/rest/v1/hostingplatform/1/",
816
- "id": 17,
817
- "language": "/rest/v1/language/100/",
818
- "list": "/rest/v1/list/1/",
819
- "multilingual_campaign": null,
820
- "name": "test",
821
- "recognize": "always",
822
- "required_fields": [
823
- {
824
- "id": 2,
825
- "name": "zip",
826
- "resource_uri": "/rest/v1/formfield/2/"
827
- }
828
- ],
829
- "resource_uri": "/rest/v1/surveypage/17/",
830
- "status": "active",
831
- "tags": [],
832
- "title": "test",
833
- "type": "Survey",
834
- "updated_at": "2009-09-10T05:10:24",
835
- "url": ""
836
- },
837
- {
838
- "actions": "/rest/v1/petitionaction/?page=18",
839
- "allow_multiple_responses": false,
840
- "cms_form": "/rest/v1/petitionform/10/",
841
- "created_at": "2009-09-10T05:33:54",
842
- "fields": {},
843
- "followup": {
844
- "email_body": "",
845
- "email_custom_from": "",
846
- "email_from_line": "/rest/v1/fromline/1/",
847
- "email_subject": "",
848
- "email_wrapper": "/rest/v1/emailwrapper/1/",
849
- "id": 17,
850
- "notifications": [],
851
- "page": "/rest/v1/petitionpage/18/",
852
- "resource_uri": "/rest/v1/pagefollowup/17/",
853
- "send_email": false,
854
- "send_notifications": false,
855
- "send_pushes": false,
856
- "send_taf": true,
857
- "taf_body": "http://www-test.actionkit.com/cms/sign/buggieback/",
858
- "taf_subject": "sign sign",
859
- "url": "/cms/thanks/buggieback"
860
- },
861
- "goal": null,
862
- "goal_type": "actions",
863
- "hidden": false,
864
- "hosted_with": "/rest/v1/hostingplatform/1/",
865
- "id": 18,
866
- "language": "/rest/v1/language/100/",
867
- "list": "/rest/v1/list/1/",
868
- "multilingual_campaign": null,
869
- "name": "buggieback",
870
- "recognize": "once",
871
- "required_fields": [
872
- {
873
- "id": 2,
874
- "name": "zip",
875
- "resource_uri": "/rest/v1/formfield/2/"
876
- }
877
- ],
878
- "resource_uri": "/rest/v1/petitionpage/18/",
879
- "status": "active",
880
- "tags": [],
881
- "title": "Back button back",
882
- "type": "Petition",
883
- "updated_at": "2009-09-10T05:33:54",
884
- "url": ""
885
- },
886
- {
887
- "actions": "/rest/v1/petitionaction/?page=19",
888
- "allow_multiple_responses": false,
889
- "cms_form": "/rest/v1/petitionform/11/",
890
- "created_at": "2009-09-10T19:17:48",
891
- "fields": {},
892
- "followup": {
893
- "email_body": "<p>thank you!</p>",
894
- "email_custom_from": "",
895
- "email_from_line": "/rest/v1/fromline/1/",
896
- "email_subject": "thanks!",
897
- "email_wrapper": "/rest/v1/emailwrapper/1/",
898
- "id": 18,
899
- "notifications": [],
900
- "page": "/rest/v1/petitionpage/19/",
901
- "resource_uri": "/rest/v1/pagefollowup/18/",
902
- "send_email": true,
903
- "send_notifications": false,
904
- "send_pushes": false,
905
- "send_taf": false,
906
- "taf_body": "",
907
- "taf_subject": "",
908
- "url": "/cms/thanks/pccc"
909
- },
910
- "goal": 1000,
911
- "goal_type": "actions",
912
- "hidden": false,
913
- "hosted_with": "/rest/v1/hostingplatform/1/",
914
- "id": 19,
915
- "language": "/rest/v1/language/100/",
916
- "list": "/rest/v1/list/1/",
917
- "multilingual_campaign": null,
918
- "name": "pccc",
919
- "recognize": "once",
920
- "required_fields": [
921
- {
922
- "id": 2,
923
- "name": "zip",
924
- "resource_uri": "/rest/v1/formfield/2/"
925
- }
926
- ],
927
- "resource_uri": "/rest/v1/petitionpage/19/",
928
- "status": "active",
929
- "tags": [],
930
- "title": "PCCC Petiton",
931
- "type": "Petition",
932
- "updated_at": "2009-09-10T19:17:48",
933
- "url": ""
934
- },
935
- {
936
- "actions": "/rest/v1/petitionaction/?page=20",
937
- "allow_multiple_responses": false,
938
- "cms_form": "/rest/v1/petitionform/12/",
939
- "created_at": "2009-09-10T21:44:23",
940
- "fields": {},
941
- "followup": {
942
- "email_body": "<p>BLAH BLAH BLAH</p>",
943
- "email_custom_from": "",
944
- "email_from_line": "/rest/v1/fromline/2/",
945
- "email_subject": "blah blah blah",
946
- "email_wrapper": "/rest/v1/emailwrapper/2/",
947
- "id": 19,
948
- "notifications": [],
949
- "page": "/rest/v1/petitionpage/20/",
950
- "resource_uri": "/rest/v1/pagefollowup/19/",
951
- "send_email": true,
952
- "send_notifications": false,
953
- "send_pushes": false,
954
- "send_taf": false,
955
- "taf_body": "",
956
- "taf_subject": "",
957
- "url": "/cms/thanks/anna"
958
- },
959
- "goal": 1000,
960
- "goal_type": "actions",
961
- "hidden": false,
962
- "hosted_with": "/rest/v1/hostingplatform/1/",
963
- "id": 20,
964
- "language": "/rest/v1/language/100/",
965
- "list": "/rest/v1/list/1/",
966
- "multilingual_campaign": null,
967
- "name": "anna",
968
- "recognize": "once",
969
- "required_fields": [
970
- {
971
- "id": 2,
972
- "name": "zip",
973
- "resource_uri": "/rest/v1/formfield/2/"
974
- }
975
- ],
976
- "resource_uri": "/rest/v1/petitionpage/20/",
977
- "status": "active",
978
- "tags": [],
979
- "title": "Anna's Petition",
980
- "type": "Petition",
981
- "updated_at": "2009-09-10T21:44:23",
982
- "url": ""
983
- }
984
- ]}