suitecrm-ruby 1.0.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/.gitignore +9 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +94 -0
- data/README.md +144 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/adds_relationship_to_module.yml +51 -0
- data/fixtures/vcr_cassettes/creates_a_module.yml +263 -0
- data/fixtures/vcr_cassettes/deletes_a_module.yml +512 -0
- data/fixtures/vcr_cassettes/deletes_module_relationship.yml +557 -0
- data/fixtures/vcr_cassettes/get_all_modules_of_type.yml +3789 -0
- data/fixtures/vcr_cassettes/gets_a_specific_module.yml +1353 -0
- data/fixtures/vcr_cassettes/gets_relationships_for_a_module.yml +879 -0
- data/fixtures/vcr_cassettes/updates_a_module.yml +440 -0
- data/lib/suitecrm-ruby.rb +23 -0
- data/lib/suitecrm/api_exception.rb +7 -0
- data/lib/suitecrm/configuration.rb +17 -0
- data/lib/suitecrm/connection.rb +109 -0
- data/lib/suitecrm/meta.rb +7 -0
- data/lib/suitecrm/module.rb +19 -0
- data/lib/suitecrm/modules.rb +7 -0
- data/lib/suitecrm/relationship.rb +15 -0
- data/lib/suitecrm/version.rb +3 -0
- data/suitecrm-ruby.gemspec +38 -0
- metadata +243 -0
@@ -0,0 +1,440 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://18.236.231.13/suite/Api/V8/module
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"data":{"type":"Contacts","attributes":{"last_name":"API Tester"}}}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjM2NjVmOWYzN2UxMjRjNDg3ODZlNjVhMWZkZjBiYmQ5Y2UxZDhmMjFjZjUxZDRlYTA3NWM3Y2U0YzJmMzEwNmRiYWExMjZlOTlkOWQyOWYzIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIzNjY1ZjlmMzdlMTI0YzQ4Nzg2ZTY1YTFmZGYwYmJkOWNlMWQ4ZjIxY2Y1MWQ0ZWEwNzVjN2NlNGMyZjMxMDZkYmFhMTI2ZTk5ZDlkMjlmMyIsImlhdCI6MTYyNjg4MzI5MywibmJmIjoxNjI2ODgzMjkzLCJleHAiOjE2MjY4ODY4OTMsInN1YiI6IiIsInNjb3BlcyI6W119.JYOlhp9Jn2DHJJpIXAC-2w4bX3MMaglDpsNhMGIeQihOgGmj5YNAuzZ8dkfbPu6NMsx_bHZOz6qXst8Je4PF4k4smnBDvFvNHx18gvs6po_8_q_TW8Io3sJfeQaZAjiTWLODPe-tsHrJPKFkX0b0birzFWrHo4nvny7V4KW6FI059eQTpoo76KtL579AN2mm14YelQGcLzwRp5IUoFccWIgS6prPGJYcgJR_Aihyo50NmvELcAoU3ZlzsMdLnFBcA18rD2uikDkfGOqShQBYIUNiQlHxcZmSOfptekDuElBCRtnJXkyToi95hL-Pgg5VCdFx2fEuIcjeoZTwmOZYWQ
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.5.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 21 Jul 2021 16:01:34 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.4.41 (Ubuntu)
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
33
|
+
Access-Control-Allow-Headers:
|
34
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
35
|
+
Accept:
|
36
|
+
- application/vnd.api+json
|
37
|
+
Content-Length:
|
38
|
+
- '6283'
|
39
|
+
Content-Type:
|
40
|
+
- application/vnd.api+json
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: |-
|
44
|
+
{
|
45
|
+
"data": {
|
46
|
+
"type": "Contact",
|
47
|
+
"id": "981b3ebc-5ecc-0a01-7a2a-60f84455d0b7",
|
48
|
+
"attributes": {
|
49
|
+
"name": "API Tester",
|
50
|
+
"date_entered": "2021-07-21T16:01:00+00:00",
|
51
|
+
"date_modified": "2021-07-21T16:01:00+00:00",
|
52
|
+
"modified_user_id": "1",
|
53
|
+
"modified_by_name": "Dino Simone",
|
54
|
+
"created_by": "1",
|
55
|
+
"created_by_name": "Dino Simone",
|
56
|
+
"description": "",
|
57
|
+
"deleted": "0",
|
58
|
+
"created_by_link": "",
|
59
|
+
"modified_user_link": "",
|
60
|
+
"assigned_user_id": "",
|
61
|
+
"assigned_user_name": "",
|
62
|
+
"assigned_user_link": "",
|
63
|
+
"SecurityGroups": "",
|
64
|
+
"salutation": "",
|
65
|
+
"first_name": "",
|
66
|
+
"last_name": "API Tester",
|
67
|
+
"full_name": "API Tester",
|
68
|
+
"title": "",
|
69
|
+
"photo": "",
|
70
|
+
"department": "",
|
71
|
+
"do_not_call": "0",
|
72
|
+
"phone_home": "",
|
73
|
+
"email": "",
|
74
|
+
"phone_mobile": "",
|
75
|
+
"phone_work": "",
|
76
|
+
"phone_other": "",
|
77
|
+
"phone_fax": "",
|
78
|
+
"email1": "",
|
79
|
+
"email2": "",
|
80
|
+
"invalid_email": "",
|
81
|
+
"email_opt_out": "",
|
82
|
+
"lawful_basis": "",
|
83
|
+
"date_reviewed": "",
|
84
|
+
"lawful_basis_source": "",
|
85
|
+
"primary_address_street": "",
|
86
|
+
"primary_address_street_2": "",
|
87
|
+
"primary_address_street_3": "",
|
88
|
+
"primary_address_city": "",
|
89
|
+
"primary_address_state": "",
|
90
|
+
"primary_address_postalcode": "",
|
91
|
+
"primary_address_country": "",
|
92
|
+
"alt_address_street": "",
|
93
|
+
"alt_address_street_2": "",
|
94
|
+
"alt_address_street_3": "",
|
95
|
+
"alt_address_city": "",
|
96
|
+
"alt_address_state": "",
|
97
|
+
"alt_address_postalcode": "",
|
98
|
+
"alt_address_country": "",
|
99
|
+
"assistant": "",
|
100
|
+
"assistant_phone": "",
|
101
|
+
"email_addresses_primary": "",
|
102
|
+
"email_addresses": "",
|
103
|
+
"email_addresses_non_primary": "",
|
104
|
+
"email_and_name1": "",
|
105
|
+
"lead_source": "",
|
106
|
+
"account_name": "",
|
107
|
+
"account_id": "",
|
108
|
+
"opportunity_role_fields": "",
|
109
|
+
"opportunity_role_id": "",
|
110
|
+
"opportunity_role": "",
|
111
|
+
"reports_to_id": "",
|
112
|
+
"report_to_name": "",
|
113
|
+
"birthdate": "",
|
114
|
+
"accounts": "",
|
115
|
+
"reports_to_link": {},
|
116
|
+
"opportunities": "",
|
117
|
+
"bugs": "",
|
118
|
+
"calls": "",
|
119
|
+
"cases": "",
|
120
|
+
"direct_reports": "",
|
121
|
+
"emails": "",
|
122
|
+
"documents": "",
|
123
|
+
"leads": "",
|
124
|
+
"meetings": "",
|
125
|
+
"notes": "",
|
126
|
+
"project": "",
|
127
|
+
"project_resource": "",
|
128
|
+
"am_projecttemplates_resources": "",
|
129
|
+
"am_projecttemplates_contacts_1": "",
|
130
|
+
"tasks": "",
|
131
|
+
"tasks_parent": "",
|
132
|
+
"notes_parent": "",
|
133
|
+
"user_sync": {},
|
134
|
+
"campaign_id": "",
|
135
|
+
"campaign_name": "",
|
136
|
+
"campaigns": "",
|
137
|
+
"campaign_contacts": {},
|
138
|
+
"c_accept_status_fields": "",
|
139
|
+
"m_accept_status_fields": "",
|
140
|
+
"accept_status_id": "",
|
141
|
+
"accept_status_name": "",
|
142
|
+
"prospect_lists": "",
|
143
|
+
"sync_contact": "",
|
144
|
+
"fp_events_contacts": "",
|
145
|
+
"aos_quotes": "",
|
146
|
+
"aos_invoices": "",
|
147
|
+
"aos_contracts": "",
|
148
|
+
"e_invite_status_fields": "",
|
149
|
+
"event_status_name": "",
|
150
|
+
"event_invite_id": "",
|
151
|
+
"e_accept_status_fields": "",
|
152
|
+
"event_accept_status": "",
|
153
|
+
"event_status_id": "",
|
154
|
+
"project_contacts_1": "",
|
155
|
+
"aop_case_updates": "",
|
156
|
+
"joomla_account_id": "",
|
157
|
+
"portal_account_disabled": false,
|
158
|
+
"joomla_account_access": "",
|
159
|
+
"portal_user_type": "Single"
|
160
|
+
},
|
161
|
+
"relationships": {
|
162
|
+
"AM_ProjectTemplates": {
|
163
|
+
"links": {
|
164
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/am_projecttemplates_contacts_1"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"AOS_Contracts": {
|
168
|
+
"links": {
|
169
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_contracts"
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"AOS_Invoices": {
|
173
|
+
"links": {
|
174
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_invoices"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"AOS_Quotes": {
|
178
|
+
"links": {
|
179
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_quotes"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
"CampaignLog": {
|
183
|
+
"links": {
|
184
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/campaigns"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"EmailAddress": {
|
188
|
+
"links": {
|
189
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/email_addresses"
|
190
|
+
}
|
191
|
+
},
|
192
|
+
"Opportunities": {
|
193
|
+
"links": {
|
194
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/opportunities"
|
195
|
+
}
|
196
|
+
},
|
197
|
+
"Project": {
|
198
|
+
"links": {
|
199
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/project_contacts_1"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
"ProspectLists": {
|
203
|
+
"links": {
|
204
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/prospect_lists"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
"SecurityGroups": {
|
208
|
+
"links": {
|
209
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/SecurityGroups"
|
210
|
+
}
|
211
|
+
},
|
212
|
+
"Users": {
|
213
|
+
"links": {
|
214
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/created_by_link"
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
recorded_at: Wed, 21 Jul 2021 16:01:34 GMT
|
221
|
+
- request:
|
222
|
+
method: patch
|
223
|
+
uri: http://18.236.231.13/suite/Api/V8/module
|
224
|
+
body:
|
225
|
+
encoding: UTF-8
|
226
|
+
string: '{"data":{"type":"Contacts","id":"981b3ebc-5ecc-0a01-7a2a-60f84455d0b7","attributes":{"last_name":"API
|
227
|
+
Tester 2"}}}'
|
228
|
+
headers:
|
229
|
+
Authorization:
|
230
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjM2NjVmOWYzN2UxMjRjNDg3ODZlNjVhMWZkZjBiYmQ5Y2UxZDhmMjFjZjUxZDRlYTA3NWM3Y2U0YzJmMzEwNmRiYWExMjZlOTlkOWQyOWYzIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIzNjY1ZjlmMzdlMTI0YzQ4Nzg2ZTY1YTFmZGYwYmJkOWNlMWQ4ZjIxY2Y1MWQ0ZWEwNzVjN2NlNGMyZjMxMDZkYmFhMTI2ZTk5ZDlkMjlmMyIsImlhdCI6MTYyNjg4MzI5MywibmJmIjoxNjI2ODgzMjkzLCJleHAiOjE2MjY4ODY4OTMsInN1YiI6IiIsInNjb3BlcyI6W119.JYOlhp9Jn2DHJJpIXAC-2w4bX3MMaglDpsNhMGIeQihOgGmj5YNAuzZ8dkfbPu6NMsx_bHZOz6qXst8Je4PF4k4smnBDvFvNHx18gvs6po_8_q_TW8Io3sJfeQaZAjiTWLODPe-tsHrJPKFkX0b0birzFWrHo4nvny7V4KW6FI059eQTpoo76KtL579AN2mm14YelQGcLzwRp5IUoFccWIgS6prPGJYcgJR_Aihyo50NmvELcAoU3ZlzsMdLnFBcA18rD2uikDkfGOqShQBYIUNiQlHxcZmSOfptekDuElBCRtnJXkyToi95hL-Pgg5VCdFx2fEuIcjeoZTwmOZYWQ
|
231
|
+
User-Agent:
|
232
|
+
- Faraday v1.5.1
|
233
|
+
Content-Type:
|
234
|
+
- application/json
|
235
|
+
Accept-Encoding:
|
236
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
237
|
+
Accept:
|
238
|
+
- "*/*"
|
239
|
+
response:
|
240
|
+
status:
|
241
|
+
code: 201
|
242
|
+
message: Created
|
243
|
+
headers:
|
244
|
+
Date:
|
245
|
+
- Wed, 21 Jul 2021 16:01:34 GMT
|
246
|
+
Server:
|
247
|
+
- Apache/2.4.41 (Ubuntu)
|
248
|
+
Access-Control-Allow-Origin:
|
249
|
+
- "*"
|
250
|
+
Access-Control-Allow-Methods:
|
251
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
252
|
+
Access-Control-Allow-Headers:
|
253
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
254
|
+
Accept:
|
255
|
+
- application/vnd.api+json
|
256
|
+
Content-Length:
|
257
|
+
- '6287'
|
258
|
+
Content-Type:
|
259
|
+
- application/vnd.api+json
|
260
|
+
body:
|
261
|
+
encoding: UTF-8
|
262
|
+
string: |-
|
263
|
+
{
|
264
|
+
"data": {
|
265
|
+
"type": "Contact",
|
266
|
+
"id": "981b3ebc-5ecc-0a01-7a2a-60f84455d0b7",
|
267
|
+
"attributes": {
|
268
|
+
"name": "API Tester 2",
|
269
|
+
"date_entered": "2021-07-21T16:01:00+00:00",
|
270
|
+
"date_modified": "2021-07-21T16:01:00+00:00",
|
271
|
+
"modified_user_id": "1",
|
272
|
+
"modified_by_name": "Dino Simone",
|
273
|
+
"created_by": "1",
|
274
|
+
"created_by_name": "Dino Simone",
|
275
|
+
"description": "",
|
276
|
+
"deleted": "0",
|
277
|
+
"created_by_link": "",
|
278
|
+
"modified_user_link": "",
|
279
|
+
"assigned_user_id": "",
|
280
|
+
"assigned_user_name": "",
|
281
|
+
"assigned_user_link": "",
|
282
|
+
"SecurityGroups": "",
|
283
|
+
"salutation": "",
|
284
|
+
"first_name": "",
|
285
|
+
"last_name": "API Tester 2",
|
286
|
+
"full_name": "API Tester 2",
|
287
|
+
"title": "",
|
288
|
+
"photo": "",
|
289
|
+
"department": "",
|
290
|
+
"do_not_call": "0",
|
291
|
+
"phone_home": "",
|
292
|
+
"email": "",
|
293
|
+
"phone_mobile": "",
|
294
|
+
"phone_work": "",
|
295
|
+
"phone_other": "",
|
296
|
+
"phone_fax": "",
|
297
|
+
"email1": "",
|
298
|
+
"email2": "",
|
299
|
+
"invalid_email": "",
|
300
|
+
"email_opt_out": "",
|
301
|
+
"lawful_basis": "",
|
302
|
+
"date_reviewed": "",
|
303
|
+
"lawful_basis_source": "",
|
304
|
+
"primary_address_street": "",
|
305
|
+
"primary_address_street_2": "",
|
306
|
+
"primary_address_street_3": "",
|
307
|
+
"primary_address_city": "",
|
308
|
+
"primary_address_state": "",
|
309
|
+
"primary_address_postalcode": "",
|
310
|
+
"primary_address_country": "",
|
311
|
+
"alt_address_street": "",
|
312
|
+
"alt_address_street_2": "",
|
313
|
+
"alt_address_street_3": "",
|
314
|
+
"alt_address_city": "",
|
315
|
+
"alt_address_state": "",
|
316
|
+
"alt_address_postalcode": "",
|
317
|
+
"alt_address_country": "",
|
318
|
+
"assistant": "",
|
319
|
+
"assistant_phone": "",
|
320
|
+
"email_addresses_primary": "",
|
321
|
+
"email_addresses": "",
|
322
|
+
"email_addresses_non_primary": "",
|
323
|
+
"email_and_name1": "",
|
324
|
+
"lead_source": "",
|
325
|
+
"account_name": "",
|
326
|
+
"account_id": "",
|
327
|
+
"opportunity_role_fields": "",
|
328
|
+
"opportunity_role_id": "",
|
329
|
+
"opportunity_role": "",
|
330
|
+
"reports_to_id": "",
|
331
|
+
"report_to_name": "",
|
332
|
+
"birthdate": "",
|
333
|
+
"accounts": "",
|
334
|
+
"reports_to_link": {},
|
335
|
+
"opportunities": "",
|
336
|
+
"bugs": "",
|
337
|
+
"calls": "",
|
338
|
+
"cases": "",
|
339
|
+
"direct_reports": "",
|
340
|
+
"emails": "",
|
341
|
+
"documents": "",
|
342
|
+
"leads": "",
|
343
|
+
"meetings": "",
|
344
|
+
"notes": "",
|
345
|
+
"project": "",
|
346
|
+
"project_resource": "",
|
347
|
+
"am_projecttemplates_resources": "",
|
348
|
+
"am_projecttemplates_contacts_1": "",
|
349
|
+
"tasks": "",
|
350
|
+
"tasks_parent": "",
|
351
|
+
"notes_parent": "",
|
352
|
+
"user_sync": {},
|
353
|
+
"campaign_id": "",
|
354
|
+
"campaign_name": "",
|
355
|
+
"campaigns": "",
|
356
|
+
"campaign_contacts": {},
|
357
|
+
"c_accept_status_fields": "",
|
358
|
+
"m_accept_status_fields": "",
|
359
|
+
"accept_status_id": "",
|
360
|
+
"accept_status_name": "",
|
361
|
+
"prospect_lists": "",
|
362
|
+
"sync_contact": "",
|
363
|
+
"fp_events_contacts": "",
|
364
|
+
"aos_quotes": "",
|
365
|
+
"aos_invoices": "",
|
366
|
+
"aos_contracts": "",
|
367
|
+
"e_invite_status_fields": "",
|
368
|
+
"event_status_name": "",
|
369
|
+
"event_invite_id": "",
|
370
|
+
"e_accept_status_fields": "",
|
371
|
+
"event_accept_status": "",
|
372
|
+
"event_status_id": "",
|
373
|
+
"project_contacts_1": "",
|
374
|
+
"aop_case_updates": "",
|
375
|
+
"joomla_account_id": "",
|
376
|
+
"portal_account_disabled": "0",
|
377
|
+
"joomla_account_access": "",
|
378
|
+
"portal_user_type": "Single"
|
379
|
+
},
|
380
|
+
"relationships": {
|
381
|
+
"AM_ProjectTemplates": {
|
382
|
+
"links": {
|
383
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/am_projecttemplates_contacts_1"
|
384
|
+
}
|
385
|
+
},
|
386
|
+
"AOS_Contracts": {
|
387
|
+
"links": {
|
388
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_contracts"
|
389
|
+
}
|
390
|
+
},
|
391
|
+
"AOS_Invoices": {
|
392
|
+
"links": {
|
393
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_invoices"
|
394
|
+
}
|
395
|
+
},
|
396
|
+
"AOS_Quotes": {
|
397
|
+
"links": {
|
398
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/aos_quotes"
|
399
|
+
}
|
400
|
+
},
|
401
|
+
"CampaignLog": {
|
402
|
+
"links": {
|
403
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/campaigns"
|
404
|
+
}
|
405
|
+
},
|
406
|
+
"EmailAddress": {
|
407
|
+
"links": {
|
408
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/email_addresses"
|
409
|
+
}
|
410
|
+
},
|
411
|
+
"Opportunities": {
|
412
|
+
"links": {
|
413
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/opportunities"
|
414
|
+
}
|
415
|
+
},
|
416
|
+
"Project": {
|
417
|
+
"links": {
|
418
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/project_contacts_1"
|
419
|
+
}
|
420
|
+
},
|
421
|
+
"ProspectLists": {
|
422
|
+
"links": {
|
423
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/prospect_lists"
|
424
|
+
}
|
425
|
+
},
|
426
|
+
"SecurityGroups": {
|
427
|
+
"links": {
|
428
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/SecurityGroups"
|
429
|
+
}
|
430
|
+
},
|
431
|
+
"Users": {
|
432
|
+
"links": {
|
433
|
+
"related": "V8/module/981b3ebc-5ecc-0a01-7a2a-60f84455d0b7/relationships/created_by_link"
|
434
|
+
}
|
435
|
+
}
|
436
|
+
}
|
437
|
+
}
|
438
|
+
}
|
439
|
+
recorded_at: Wed, 21 Jul 2021 16:01:34 GMT
|
440
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "suitecrm/configuration"
|
2
|
+
require "suitecrm/api_exception"
|
3
|
+
require "suitecrm/connection"
|
4
|
+
require "suitecrm/modules"
|
5
|
+
require "suitecrm/module"
|
6
|
+
require "suitecrm/relationship"
|
7
|
+
require "suitecrm/meta"
|
8
|
+
|
9
|
+
module SuiteCRM
|
10
|
+
class << self
|
11
|
+
def configuration
|
12
|
+
@configuration ||= Configuration.new
|
13
|
+
end
|
14
|
+
|
15
|
+
def reset
|
16
|
+
@configuration = Configuration.new
|
17
|
+
end
|
18
|
+
|
19
|
+
def configure
|
20
|
+
yield(configuration)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|