active_campaign_rb 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gem_release.yml +5 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +16 -0
- data/CHANGELOG.md +35 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +93 -0
- data/LICENSE.txt +21 -0
- data/README.md +63 -0
- data/Rakefile +12 -0
- data/active_campaign_rb.gemspec +38 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/active_campaign_rb/config.rb +20 -0
- data/lib/active_campaign_rb/endpoints.yaml +604 -0
- data/lib/active_campaign_rb/errors.rb +181 -0
- data/lib/active_campaign_rb/faraday/middleware/request.rb +57 -0
- data/lib/active_campaign_rb/faraday/middleware/response.rb +51 -0
- data/lib/active_campaign_rb/faraday/middleware.rb +45 -0
- data/lib/active_campaign_rb/http_client.rb +92 -0
- data/lib/active_campaign_rb/transform_hash.rb +44 -0
- data/lib/active_campaign_rb/version.rb +5 -0
- data/lib/active_campaign_rb.rb +56 -0
- metadata +141 -0
@@ -0,0 +1,604 @@
|
|
1
|
+
---
|
2
|
+
:list_accounts:
|
3
|
+
:description: Retrieve all existing accounts
|
4
|
+
:link:
|
5
|
+
:href: accounts
|
6
|
+
:method: :GET
|
7
|
+
:template: false
|
8
|
+
|
9
|
+
:create_account:
|
10
|
+
:description: Create a new account
|
11
|
+
:link:
|
12
|
+
:href: accounts
|
13
|
+
:method: :POST
|
14
|
+
:template: false
|
15
|
+
|
16
|
+
:update_account:
|
17
|
+
:description: Update an existing account
|
18
|
+
:link:
|
19
|
+
:href: accounts/%{id}
|
20
|
+
:method: :PUT
|
21
|
+
:template: true
|
22
|
+
|
23
|
+
:retrieve_account:
|
24
|
+
:description: Retrieve an existing account
|
25
|
+
:link:
|
26
|
+
:href: accounts/%{id}
|
27
|
+
:method: :GET
|
28
|
+
:template: true
|
29
|
+
|
30
|
+
:delete_account:
|
31
|
+
:description: Delete an existing account
|
32
|
+
:link:
|
33
|
+
:href: accounts/%{id}
|
34
|
+
:method: :DELETE
|
35
|
+
:template: true
|
36
|
+
|
37
|
+
:create_account_note:
|
38
|
+
:description: Create a new note for an account
|
39
|
+
:link:
|
40
|
+
:href: accounts/%{id}/notes
|
41
|
+
:method: :POST
|
42
|
+
:template: true
|
43
|
+
|
44
|
+
:update_account_note:
|
45
|
+
:description: Update an existing note for an account
|
46
|
+
:link:
|
47
|
+
:href: accounts/%{id}/notes/%{noteid}
|
48
|
+
:method: :PUT
|
49
|
+
:template: true
|
50
|
+
|
51
|
+
:bulk_delete_accounts:
|
52
|
+
:description: Delete one or more existing accounts
|
53
|
+
:link:
|
54
|
+
:href: accounts/bulk_delete?ids=%{ids}
|
55
|
+
:method: :DELETE
|
56
|
+
:template: true
|
57
|
+
|
58
|
+
:create_account_contact:
|
59
|
+
:description: Create an account-contact association
|
60
|
+
:link:
|
61
|
+
:href: accountContacts
|
62
|
+
:method: :POST
|
63
|
+
:template: false
|
64
|
+
|
65
|
+
:retrieve_account_contact:
|
66
|
+
:description: Retrieve a account-contact association
|
67
|
+
:link:
|
68
|
+
:href: accountContacts/%{id}
|
69
|
+
:method: :GET
|
70
|
+
:template: true
|
71
|
+
|
72
|
+
:update_account_contact:
|
73
|
+
:description: Update a account-contact association
|
74
|
+
:link:
|
75
|
+
:href: accountContacts/%{id}
|
76
|
+
:method: :PUT
|
77
|
+
:template: true
|
78
|
+
|
79
|
+
:delete_account_contact:
|
80
|
+
:description: Delete a account-contact association
|
81
|
+
:link:
|
82
|
+
:href: accountContacts/%{id}
|
83
|
+
:method: :DELETE
|
84
|
+
:template: true
|
85
|
+
|
86
|
+
:list_account_contacts:
|
87
|
+
:description: List all account-contact associations
|
88
|
+
:link:
|
89
|
+
:href: accountContacts
|
90
|
+
:method: :GET
|
91
|
+
:template: false
|
92
|
+
|
93
|
+
:create_custom_account_field:
|
94
|
+
:description: Create a custom account field
|
95
|
+
:link:
|
96
|
+
:href: accountCustomFieldMeta
|
97
|
+
:method: :POST
|
98
|
+
:template: false
|
99
|
+
|
100
|
+
:retrieve_custom_account_field:
|
101
|
+
:description: Retrieve a custom account field
|
102
|
+
:link:
|
103
|
+
:href: accountCustomFieldMeta/%{id}
|
104
|
+
:method: :GET
|
105
|
+
:template: true
|
106
|
+
|
107
|
+
:update_custom_account_field:
|
108
|
+
:description: Update a custom account field
|
109
|
+
:link:
|
110
|
+
:href: accountCustomFieldMeta/%{id}
|
111
|
+
:method: :PUT
|
112
|
+
:template: true
|
113
|
+
|
114
|
+
:delete_custom_account_field:
|
115
|
+
:description: Delete a custom account field
|
116
|
+
:link:
|
117
|
+
:href: accountCustomFieldMeta/%{id}
|
118
|
+
:method: :DELETE
|
119
|
+
:template: true
|
120
|
+
|
121
|
+
:list_custom_account_fields:
|
122
|
+
:description: List all custom account fields
|
123
|
+
:link:
|
124
|
+
:href: accountCustomFieldMeta
|
125
|
+
:method: :GET
|
126
|
+
:template: false
|
127
|
+
|
128
|
+
:create_custom_account_field_value:
|
129
|
+
:description: Create a custom account field value
|
130
|
+
:link:
|
131
|
+
:href: accountCustomFieldData
|
132
|
+
:method: :POST
|
133
|
+
:template: false
|
134
|
+
|
135
|
+
:bulk_create_custom_account_field_values:
|
136
|
+
:description: Bulk create a custom account field value
|
137
|
+
:link:
|
138
|
+
:href: accountCustomFieldData/bulkCreate
|
139
|
+
:method: :POST
|
140
|
+
:template: false
|
141
|
+
|
142
|
+
:retrieve_custom_account_field_value:
|
143
|
+
:description: Retrieve a custom account field value
|
144
|
+
:link:
|
145
|
+
:href: accountCustomFieldData/%{id}
|
146
|
+
:method: :GET
|
147
|
+
:template: true
|
148
|
+
|
149
|
+
:update_custom_account_field_value:
|
150
|
+
:description: Update a custom account field value
|
151
|
+
:link:
|
152
|
+
:href: accountCustomFieldData/%{id}
|
153
|
+
:method: :PUT
|
154
|
+
:template: true
|
155
|
+
|
156
|
+
:delete_custom_account_field_value:
|
157
|
+
:description: Delete a custom account field value
|
158
|
+
:link:
|
159
|
+
:href: accountCustomFieldData/%{id}
|
160
|
+
:method: :DELETE
|
161
|
+
:template: true
|
162
|
+
|
163
|
+
:list_custom_account_field_values:
|
164
|
+
:description: List all custom account field values
|
165
|
+
:link:
|
166
|
+
:href: accountCustomFieldData
|
167
|
+
:method: :GET
|
168
|
+
:template: false
|
169
|
+
|
170
|
+
:bulk_update_custom_account_field_values:
|
171
|
+
:description: Bulk update a custom account field value
|
172
|
+
:link:
|
173
|
+
:href: accountCustomFieldData/bulkUpdate
|
174
|
+
:method: :PATCH
|
175
|
+
:template: false
|
176
|
+
|
177
|
+
:list_automations:
|
178
|
+
:description: List all automations
|
179
|
+
:link:
|
180
|
+
:href: automations
|
181
|
+
:method: :GET
|
182
|
+
:template: false
|
183
|
+
|
184
|
+
:create_contact:
|
185
|
+
:description: Create a contact
|
186
|
+
:link:
|
187
|
+
:href: contacts
|
188
|
+
:method: :POST
|
189
|
+
:template: false
|
190
|
+
|
191
|
+
:sync_contact:
|
192
|
+
:description: Create or Update a contact
|
193
|
+
:link:
|
194
|
+
:href: contact/sync
|
195
|
+
:method: :POST
|
196
|
+
:template: false
|
197
|
+
|
198
|
+
:retrieve_contact:
|
199
|
+
:description: Retrieve an existing contact
|
200
|
+
:link:
|
201
|
+
:href: contacts/%{id}
|
202
|
+
:method: :GET
|
203
|
+
:template: true
|
204
|
+
|
205
|
+
:update_contact:
|
206
|
+
:description: Update a contact
|
207
|
+
:link:
|
208
|
+
:href: contacts/%{id}
|
209
|
+
:method: :PUT
|
210
|
+
:template: false
|
211
|
+
|
212
|
+
:update_contact_list_status:
|
213
|
+
:description: Subscribe a contact to a list or unsubscribe a contact from a list
|
214
|
+
:link:
|
215
|
+
:href: contactLists
|
216
|
+
:method: :POST
|
217
|
+
:template: false
|
218
|
+
|
219
|
+
:delete_contact:
|
220
|
+
:description: Delete a contact
|
221
|
+
:link:
|
222
|
+
:href: contacts/%{id}
|
223
|
+
:method: :DELETE
|
224
|
+
:template: false
|
225
|
+
|
226
|
+
:list_contacts:
|
227
|
+
:description: List all contacts, search contacts, or filter contacts by many criteria. For example, search for specific contacts by email, list, or custom field value.
|
228
|
+
:link:
|
229
|
+
:href: contacts
|
230
|
+
:method: :GET
|
231
|
+
:template: false
|
232
|
+
|
233
|
+
|
234
|
+
:list_contact_automations:
|
235
|
+
:description: List all automations the contact is in
|
236
|
+
:link:
|
237
|
+
:href: contacts/%{id}/contactAutomations
|
238
|
+
:method: :GET
|
239
|
+
:template: false
|
240
|
+
|
241
|
+
:retrieve_contact_score_values:
|
242
|
+
:description: Retrieve a contacts score value
|
243
|
+
:link:
|
244
|
+
:href: contacts/%{id}/scoreValues
|
245
|
+
:method: :GET
|
246
|
+
:template: false
|
247
|
+
|
248
|
+
:bulk_import_contacts:
|
249
|
+
:description: Bulk import contacts
|
250
|
+
:link:
|
251
|
+
:href: import/bulk_import
|
252
|
+
:method: :POST
|
253
|
+
:template: false
|
254
|
+
|
255
|
+
:bulk_import_status_list:
|
256
|
+
:description: Bulk import status list
|
257
|
+
:link:
|
258
|
+
:href: import/bulk_import
|
259
|
+
:method: :GET
|
260
|
+
:template: false
|
261
|
+
|
262
|
+
:bulk_import_status_info:
|
263
|
+
:description: Bulk import status info
|
264
|
+
:link:
|
265
|
+
:href: import/info
|
266
|
+
:method: :GET
|
267
|
+
:template: false
|
268
|
+
|
269
|
+
:list_contact_activities:
|
270
|
+
:description: List contact activities
|
271
|
+
:link:
|
272
|
+
:href: activities
|
273
|
+
:method: :GET
|
274
|
+
:template: false
|
275
|
+
|
276
|
+
:create_contact_automation:
|
277
|
+
:description: Add a contact to an automation
|
278
|
+
:link:
|
279
|
+
:href: contactAutomations
|
280
|
+
:method: :POST
|
281
|
+
:template: false
|
282
|
+
|
283
|
+
:delete_contact_automation:
|
284
|
+
:description: Remove a contact from an automation
|
285
|
+
:link:
|
286
|
+
:href: contactAutomations/%{id}
|
287
|
+
:method: :DELETE
|
288
|
+
:template: false
|
289
|
+
|
290
|
+
:retrieve_contact_automation:
|
291
|
+
:description: Retrieve an automation a contact is in
|
292
|
+
:link:
|
293
|
+
:href: contactAutomations/%{id}
|
294
|
+
:method: :GET
|
295
|
+
:template: true
|
296
|
+
|
297
|
+
:list_contact_automations:
|
298
|
+
:description: List all contact automations
|
299
|
+
:link:
|
300
|
+
:href: contactAutomations
|
301
|
+
:method: :GET
|
302
|
+
:template: false
|
303
|
+
|
304
|
+
:list_email_activities:
|
305
|
+
:description: List all email activities
|
306
|
+
:link:
|
307
|
+
:href: emailActivities
|
308
|
+
:method: :GET
|
309
|
+
:template: false
|
310
|
+
|
311
|
+
:create_custom_field:
|
312
|
+
:description: Create a custom field
|
313
|
+
:link:
|
314
|
+
:href: fields
|
315
|
+
:method: :POSt
|
316
|
+
:template: false
|
317
|
+
|
318
|
+
:retrieve_custom_field:
|
319
|
+
:description: Retrieve a custom field
|
320
|
+
:link:
|
321
|
+
:href: fields/%{id}
|
322
|
+
:method: :GET
|
323
|
+
:template: true
|
324
|
+
|
325
|
+
:update_custom_field:
|
326
|
+
:description: Update a custom field
|
327
|
+
:link:
|
328
|
+
:href: fields/%{id}
|
329
|
+
:method: :PUT
|
330
|
+
:template: true
|
331
|
+
|
332
|
+
:delete_custom_field:
|
333
|
+
:description: Delete a custom field
|
334
|
+
:link:
|
335
|
+
:href: fields/%{id}
|
336
|
+
:method: :DELETE
|
337
|
+
:template: true
|
338
|
+
|
339
|
+
:list_custom_fields:
|
340
|
+
:description: List all custom fields
|
341
|
+
:link:
|
342
|
+
:href: fields
|
343
|
+
:method: :GET
|
344
|
+
:template: false
|
345
|
+
|
346
|
+
:create_custom_field_relation_to_list:
|
347
|
+
:description: Create a custom field relationship to list(s) (relid 0 makes the field available on all lists)
|
348
|
+
:link:
|
349
|
+
:href: fieldRels
|
350
|
+
:method: :POST
|
351
|
+
:template: false
|
352
|
+
|
353
|
+
:create_custom_field_value:
|
354
|
+
:description: Create a custom field value
|
355
|
+
:link:
|
356
|
+
:href: fieldValues
|
357
|
+
:method: :POST
|
358
|
+
:template: false
|
359
|
+
|
360
|
+
:retrieve_custom_field_value:
|
361
|
+
:description: Retrieve a custom field value
|
362
|
+
:link:
|
363
|
+
:href: fieldValues/%{id}
|
364
|
+
:method: :GET
|
365
|
+
:template: true
|
366
|
+
|
367
|
+
:update_custom_field_value:
|
368
|
+
:description: Update a custom field value for contact
|
369
|
+
:link:
|
370
|
+
:href: fieldValues/%{id}
|
371
|
+
:method: :PUT
|
372
|
+
:template: true
|
373
|
+
|
374
|
+
:delete_custom_field_value:
|
375
|
+
:description: Delete a custom field value
|
376
|
+
:link:
|
377
|
+
:href: fieldValues/%{id}
|
378
|
+
:method: :DELETE
|
379
|
+
:template: true
|
380
|
+
|
381
|
+
:list_custom_field_values:
|
382
|
+
:description: List all custom field values
|
383
|
+
:link:
|
384
|
+
:href: fieldValues
|
385
|
+
:method: :GET
|
386
|
+
:template: false
|
387
|
+
|
388
|
+
:create_custom_field_options:
|
389
|
+
:description: Create custom field options
|
390
|
+
:link:
|
391
|
+
:href: fieldOption/bulk
|
392
|
+
:method: :POST
|
393
|
+
:template: false
|
394
|
+
|
395
|
+
:create_tag:
|
396
|
+
:description: Create a tag
|
397
|
+
:link:
|
398
|
+
:href: tags
|
399
|
+
:method: :POST
|
400
|
+
:template: false
|
401
|
+
|
402
|
+
:update_tag:
|
403
|
+
:description: Update a tag
|
404
|
+
:link:
|
405
|
+
:href: tags/%{id}
|
406
|
+
:method: :PUT
|
407
|
+
:template: false
|
408
|
+
|
409
|
+
:retrieve_tag:
|
410
|
+
:description: Retrieve a tag
|
411
|
+
:link:
|
412
|
+
:href: tags/%{id}
|
413
|
+
:method: :GET
|
414
|
+
:template: true
|
415
|
+
|
416
|
+
:delete_tag:
|
417
|
+
:description: Delete a tag
|
418
|
+
:link:
|
419
|
+
:href: tags/%{id}
|
420
|
+
:method: :DELETE
|
421
|
+
:template: false
|
422
|
+
|
423
|
+
:list_tags:
|
424
|
+
:description: List all tags
|
425
|
+
:link:
|
426
|
+
:href: tags
|
427
|
+
:method: :GET
|
428
|
+
:template: false
|
429
|
+
|
430
|
+
|
431
|
+
:create_contact_tag:
|
432
|
+
:description: Add a tag to contact
|
433
|
+
:link:
|
434
|
+
:href: contactTags
|
435
|
+
:method: :POST
|
436
|
+
:template: false
|
437
|
+
|
438
|
+
:delete_contact_tag:
|
439
|
+
:description: Delete a contact tag
|
440
|
+
:link:
|
441
|
+
:href: contactTags/%{id}
|
442
|
+
:method: :DELETE
|
443
|
+
:template: false
|
444
|
+
|
445
|
+
:list_brandings:
|
446
|
+
:description: List all existing branding resources
|
447
|
+
:link:
|
448
|
+
:href: brandings
|
449
|
+
:method: :GET
|
450
|
+
:template: false
|
451
|
+
|
452
|
+
:retrieve_branding:
|
453
|
+
:description: Retrieve an existing branding resource
|
454
|
+
:link:
|
455
|
+
:href: brandings/%{id}
|
456
|
+
:method: :GET
|
457
|
+
:template: true
|
458
|
+
|
459
|
+
:update_branding:
|
460
|
+
:description: Update an existing branding resource
|
461
|
+
:link:
|
462
|
+
:href: brandings/%{id}
|
463
|
+
:method: :PUT
|
464
|
+
:template: true
|
465
|
+
|
466
|
+
:create_address:
|
467
|
+
:description: Create an address
|
468
|
+
:link:
|
469
|
+
:href: addresses
|
470
|
+
:method: :POST
|
471
|
+
:template: false
|
472
|
+
|
473
|
+
:retrieve_address:
|
474
|
+
:description: Retrieve an address
|
475
|
+
:link:
|
476
|
+
:href: addresses/%{id}
|
477
|
+
:method: :GET
|
478
|
+
:template: true
|
479
|
+
|
480
|
+
:update_address:
|
481
|
+
:description: Update an address
|
482
|
+
:link:
|
483
|
+
:href: addresses/%{id}
|
484
|
+
:method: :PUT
|
485
|
+
:template: true
|
486
|
+
|
487
|
+
:delete_address:
|
488
|
+
:description: Delete an address
|
489
|
+
:link:
|
490
|
+
:href: addresses/%{id}
|
491
|
+
:method: :DELETE
|
492
|
+
:template: true
|
493
|
+
|
494
|
+
:delete_address_group:
|
495
|
+
:description: Delete address associated with a specific user group
|
496
|
+
:link:
|
497
|
+
:href: addressGroups/%{id}
|
498
|
+
:method: :DELETE
|
499
|
+
:template: true
|
500
|
+
|
501
|
+
:delete_address_list:
|
502
|
+
:description: Delete address associated with a specific list
|
503
|
+
:link:
|
504
|
+
:href: addressLists/%{id}
|
505
|
+
:method: :DELETE
|
506
|
+
:template: true
|
507
|
+
|
508
|
+
:list_addresses:
|
509
|
+
:description: List all addresses
|
510
|
+
:link:
|
511
|
+
:href: addresses
|
512
|
+
:method: :GET
|
513
|
+
:template: false
|
514
|
+
|
515
|
+
:create_calendar_feed:
|
516
|
+
:description: Create a calendar feed
|
517
|
+
:link:
|
518
|
+
:href: calendars
|
519
|
+
:method: :POST
|
520
|
+
:template: false
|
521
|
+
|
522
|
+
:retrieve_calendar_feed:
|
523
|
+
:description: Retrieve a calendar feed
|
524
|
+
:link:
|
525
|
+
:href: calendars/%{id}
|
526
|
+
:method: :GET
|
527
|
+
:template: true
|
528
|
+
|
529
|
+
:update_calendar_feed:
|
530
|
+
:description: Update a calendar feed
|
531
|
+
:link:
|
532
|
+
:href: calendars/%{id}
|
533
|
+
:method: :PUT
|
534
|
+
:template: true
|
535
|
+
|
536
|
+
:delete_calendar_feed:
|
537
|
+
:description: Delete a calendar feed
|
538
|
+
:link:
|
539
|
+
:href: calendars/%{id}
|
540
|
+
:method: :DELETE
|
541
|
+
:template: true
|
542
|
+
|
543
|
+
:list_calendar_feeds:
|
544
|
+
:description: List all calendar feeds
|
545
|
+
:link:
|
546
|
+
:href: calendars
|
547
|
+
:method: :GET
|
548
|
+
:template: false
|
549
|
+
|
550
|
+
:list_campaigns:
|
551
|
+
:description: List all campaigns
|
552
|
+
:link:
|
553
|
+
:href: campaigns
|
554
|
+
:method: :GET
|
555
|
+
:template: false
|
556
|
+
|
557
|
+
:retrieve_campaign_links:
|
558
|
+
:description: Retrieve links associated to campaign
|
559
|
+
:link:
|
560
|
+
:href: campaigns/%{id}/links
|
561
|
+
:method: :GET
|
562
|
+
:template: true
|
563
|
+
|
564
|
+
:retrieve_campaign:
|
565
|
+
:description: Retrieve a campaign
|
566
|
+
:link:
|
567
|
+
:href: campaigns/%{id}
|
568
|
+
:method: :GET
|
569
|
+
:template: true
|
570
|
+
|
571
|
+
:create_message:
|
572
|
+
:description: Create a message
|
573
|
+
:link:
|
574
|
+
:href: messages
|
575
|
+
:method: :POST
|
576
|
+
:template: false
|
577
|
+
|
578
|
+
:retrieve_message:
|
579
|
+
:description: Retrieve a message
|
580
|
+
:link:
|
581
|
+
:href: messages/%{id}
|
582
|
+
:method: :GET
|
583
|
+
:template: true
|
584
|
+
|
585
|
+
:update_message:
|
586
|
+
:description: Update a message
|
587
|
+
:link:
|
588
|
+
:href: messages/%{id}
|
589
|
+
:method: :PUT
|
590
|
+
:template: true
|
591
|
+
|
592
|
+
:delete_message:
|
593
|
+
:description: Delete a message
|
594
|
+
:link:
|
595
|
+
:href: messages/%{id}
|
596
|
+
:method: :DELETE
|
597
|
+
:template: true
|
598
|
+
|
599
|
+
:list_messages:
|
600
|
+
:description: List all messages
|
601
|
+
:link:
|
602
|
+
:href: messages
|
603
|
+
:method: :GET
|
604
|
+
:template: false
|