carbon_ruby_sdk 0.2.35 → 0.2.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +335 -2
  4. data/lib/carbon_ruby_sdk/api/crm_api.rb +909 -0
  5. data/lib/carbon_ruby_sdk/models/account.rb +398 -0
  6. data/lib/carbon_ruby_sdk/models/account_filters.rb +226 -0
  7. data/lib/carbon_ruby_sdk/models/account_response.rb +246 -0
  8. data/lib/carbon_ruby_sdk/models/accounts_order_by.rb +39 -0
  9. data/lib/carbon_ruby_sdk/models/accounts_order_by_nullable.rb +39 -0
  10. data/lib/carbon_ruby_sdk/models/accounts_request.rb +293 -0
  11. data/lib/carbon_ruby_sdk/models/address.rb +276 -0
  12. data/lib/carbon_ruby_sdk/models/base_includes.rb +36 -0
  13. data/lib/carbon_ruby_sdk/models/contact.rb +434 -0
  14. data/lib/carbon_ruby_sdk/models/contact_filters.rb +236 -0
  15. data/lib/carbon_ruby_sdk/models/contacts_order_by.rb +39 -0
  16. data/lib/carbon_ruby_sdk/models/contacts_order_by_nullable.rb +39 -0
  17. data/lib/carbon_ruby_sdk/models/contacts_request.rb +293 -0
  18. data/lib/carbon_ruby_sdk/models/contacts_response.rb +246 -0
  19. data/lib/carbon_ruby_sdk/models/email.rb +230 -0
  20. data/lib/carbon_ruby_sdk/models/event.rb +370 -0
  21. data/lib/carbon_ruby_sdk/models/lead.rb +468 -0
  22. data/lib/carbon_ruby_sdk/models/lead_filters.rb +246 -0
  23. data/lib/carbon_ruby_sdk/models/leads_order_by.rb +38 -0
  24. data/lib/carbon_ruby_sdk/models/leads_order_by_nullable.rb +38 -0
  25. data/lib/carbon_ruby_sdk/models/leads_request.rb +293 -0
  26. data/lib/carbon_ruby_sdk/models/leads_response.rb +246 -0
  27. data/lib/carbon_ruby_sdk/models/opportunities_order_by.rb +40 -0
  28. data/lib/carbon_ruby_sdk/models/opportunities_order_by_nullable.rb +40 -0
  29. data/lib/carbon_ruby_sdk/models/opportunities_request.rb +293 -0
  30. data/lib/carbon_ruby_sdk/models/opportunities_response.rb +246 -0
  31. data/lib/carbon_ruby_sdk/models/opportunity.rb +400 -0
  32. data/lib/carbon_ruby_sdk/models/opportunity_filters.rb +246 -0
  33. data/lib/carbon_ruby_sdk/models/opportunity_status.rb +36 -0
  34. data/lib/carbon_ruby_sdk/models/opportunity_status_nullable.rb +36 -0
  35. data/lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb +36 -0
  36. data/lib/carbon_ruby_sdk/models/partial_account.rb +216 -0
  37. data/lib/carbon_ruby_sdk/models/partial_account_nullable.rb +216 -0
  38. data/lib/carbon_ruby_sdk/models/partial_contact.rb +216 -0
  39. data/lib/carbon_ruby_sdk/models/partial_contact_nullable.rb +216 -0
  40. data/lib/carbon_ruby_sdk/models/partial_owner.rb +216 -0
  41. data/lib/carbon_ruby_sdk/models/partial_owner_nullable.rb +216 -0
  42. data/lib/carbon_ruby_sdk/models/phone_number.rb +230 -0
  43. data/lib/carbon_ruby_sdk/models/sent_webhook_payload.rb +2 -2
  44. data/lib/carbon_ruby_sdk/models/task.rb +346 -0
  45. data/lib/carbon_ruby_sdk/version.rb +1 -1
  46. data/lib/carbon_ruby_sdk.rb +42 -0
  47. data/spec/api/crm_api_spec.rb +129 -0
  48. data/spec/models/account_filters_spec.rb +34 -0
  49. data/spec/models/account_response_spec.rb +40 -0
  50. data/spec/models/account_spec.rb +118 -0
  51. data/spec/models/accounts_order_by_nullable_spec.rb +22 -0
  52. data/spec/models/accounts_order_by_spec.rb +22 -0
  53. data/spec/models/accounts_request_spec.rb +70 -0
  54. data/spec/models/address_spec.rb +64 -0
  55. data/spec/models/base_includes_spec.rb +22 -0
  56. data/spec/models/contact_filters_spec.rb +40 -0
  57. data/spec/models/contact_spec.rb +136 -0
  58. data/spec/models/contacts_order_by_nullable_spec.rb +22 -0
  59. data/spec/models/contacts_order_by_spec.rb +22 -0
  60. data/spec/models/contacts_request_spec.rb +70 -0
  61. data/spec/models/contacts_response_spec.rb +40 -0
  62. data/spec/models/email_spec.rb +34 -0
  63. data/spec/models/event_spec.rb +106 -0
  64. data/spec/models/lead_filters_spec.rb +46 -0
  65. data/spec/models/lead_spec.rb +154 -0
  66. data/spec/models/leads_order_by_nullable_spec.rb +22 -0
  67. data/spec/models/leads_order_by_spec.rb +22 -0
  68. data/spec/models/leads_request_spec.rb +70 -0
  69. data/spec/models/leads_response_spec.rb +40 -0
  70. data/spec/models/opportunities_order_by_nullable_spec.rb +22 -0
  71. data/spec/models/opportunities_order_by_spec.rb +22 -0
  72. data/spec/models/opportunities_request_spec.rb +70 -0
  73. data/spec/models/opportunities_response_spec.rb +40 -0
  74. data/spec/models/opportunity_filters_spec.rb +46 -0
  75. data/spec/models/opportunity_spec.rb +124 -0
  76. data/spec/models/opportunity_status_nullable_spec.rb +22 -0
  77. data/spec/models/opportunity_status_spec.rb +22 -0
  78. data/spec/models/order_dir_v2_nullable_spec.rb +22 -0
  79. data/spec/models/partial_account_nullable_spec.rb +28 -0
  80. data/spec/models/partial_account_spec.rb +28 -0
  81. data/spec/models/partial_contact_nullable_spec.rb +28 -0
  82. data/spec/models/partial_contact_spec.rb +28 -0
  83. data/spec/models/partial_owner_nullable_spec.rb +28 -0
  84. data/spec/models/partial_owner_spec.rb +28 -0
  85. data/spec/models/phone_number_spec.rb +34 -0
  86. data/spec/models/sent_webhook_payload_spec.rb +1 -1
  87. data/spec/models/task_spec.rb +94 -0
  88. metadata +122 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8d6fb0f54090c63643bf089a081d545764e9b889db47e92849544392a941e39
4
- data.tar.gz: 923f95de1ae3793c444c1b02e1f0cbd09f7c657d1bddde13567146fdeb515d42
3
+ metadata.gz: feb3bf140f11338eaf815475a55ba8751606f8f21374053373ec879382f29ddf
4
+ data.tar.gz: 889b8720854243b0dc2dc24a013decb6729ec4c2c4d4258eb91a3390bf5e384e
5
5
  SHA512:
6
- metadata.gz: '05565949db79a7439f2ff6acaf8c42e51ebf4b64ff54d835b4d508181b2b201a472185f4db8922fe801a53b17e650bd48765936c258c78b1a95b657bf3373494'
7
- data.tar.gz: d252a3df6a15280c315dffdadfa2cf0ed2f22a54e2f8e8fe5e43a04f85981c6c25f614ecde43893a9f1329e20d3e3e0a9b30ed563250581f085948395496fb30
6
+ metadata.gz: d6387b53a698980d8efb5a6ea15e93576a9c2e5a858f350eda44904d8a00ed29813a54520b6a1746ced917d3734c48cb9259b2ed9d0af2c733a2a5f1dcf30b70
7
+ data.tar.gz: b7c140b501299de1da58914dc2f1fb8803682b7c2a5249a14544dd006aaa6a3c6a71afec871bcc324e96142761c9266663545c6a0802ce54a64a2a3dc2e2eb9c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.35)
4
+ carbon_ruby_sdk (0.2.36)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.2.35-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.35)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.36-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.36)
10
10
 
11
11
  </div>
12
12
 
@@ -20,6 +20,14 @@ Connect external data to LLMs, no matter the source.
20
20
  - [Reference](#reference)
21
21
  * [`carbon.auth.get_access_token`](#carbonauthget_access_token)
22
22
  * [`carbon.auth.get_white_labeling`](#carbonauthget_white_labeling)
23
+ * [`carbon.crm.get_account`](#carboncrmget_account)
24
+ * [`carbon.crm.get_accounts`](#carboncrmget_accounts)
25
+ * [`carbon.crm.get_contact`](#carboncrmget_contact)
26
+ * [`carbon.crm.get_contacts`](#carboncrmget_contacts)
27
+ * [`carbon.crm.get_lead`](#carboncrmget_lead)
28
+ * [`carbon.crm.get_leads`](#carboncrmget_leads)
29
+ * [`carbon.crm.get_opportunities`](#carboncrmget_opportunities)
30
+ * [`carbon.crm.get_opportunity`](#carboncrmget_opportunity)
23
31
  * [`carbon.data_sources.query_user_data_sources`](#carbondata_sourcesquery_user_data_sources)
24
32
  * [`carbon.data_sources.revoke_access_token`](#carbondata_sourcesrevoke_access_token)
25
33
  * [`carbon.embeddings.get_documents`](#carbonembeddingsget_documents)
@@ -96,7 +104,7 @@ Connect external data to LLMs, no matter the source.
96
104
  Add to Gemfile:
97
105
 
98
106
  ```ruby
99
- gem 'carbon_ruby_sdk', '~> 0.2.35'
107
+ gem 'carbon_ruby_sdk', '~> 0.2.36'
100
108
  ```
101
109
 
102
110
  ## Getting Started<a id="getting-started"></a>
@@ -188,6 +196,331 @@ p result
188
196
  ---
189
197
 
190
198
 
199
+ ### `carbon.crm.get_account`<a id="carboncrmget_account"></a>
200
+
201
+ Get Account
202
+
203
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
204
+
205
+ ```ruby
206
+ result = carbon.crm.get_account(
207
+ id: "id_example",
208
+ data_source_id: 1,
209
+ include_remote_data: false,
210
+ includes: [
211
+ "string_example"
212
+ ],
213
+ )
214
+ p result
215
+ ```
216
+
217
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
218
+
219
+ ##### id: `String`<a id="id-string"></a>
220
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
221
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
222
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
223
+ #### 🔄 Return<a id="🔄-return"></a>
224
+
225
+ [Account](./lib/carbon_ruby_sdk/models/account.rb)
226
+
227
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
228
+
229
+ `/integrations/data/crm/accounts/{id}` `GET`
230
+
231
+ [🔙 **Back to Table of Contents**](#table-of-contents)
232
+
233
+ ---
234
+
235
+
236
+ ### `carbon.crm.get_accounts`<a id="carboncrmget_accounts"></a>
237
+
238
+ Get Accounts
239
+
240
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
241
+
242
+ ```ruby
243
+ result = carbon.crm.get_accounts(
244
+ data_source_id: 1,
245
+ include_remote_data: false,
246
+ next_cursor: "string_example",
247
+ page_size: 1,
248
+ order_dir: "asc",
249
+ includes: [],
250
+ filters: {
251
+ },
252
+ order_by: "created_at",
253
+ )
254
+ p result
255
+ ```
256
+
257
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
258
+
259
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
260
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
261
+ ##### next_cursor: `String`<a id="next_cursor-string"></a>
262
+ ##### page_size: `Integer`<a id="page_size-integer"></a>
263
+ ##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
264
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
265
+ ##### filters: [`AccountFilters`](./lib/carbon_ruby_sdk/models/account_filters.rb)<a id="filters-accountfilterslibcarbon_ruby_sdkmodelsaccount_filtersrb"></a>
266
+ ##### order_by: [`AccountsOrderByNullable`](./lib/carbon_ruby_sdk/models/accounts_order_by_nullable.rb)<a id="order_by-accountsorderbynullablelibcarbon_ruby_sdkmodelsaccounts_order_by_nullablerb"></a>
267
+ #### 🔄 Return<a id="🔄-return"></a>
268
+
269
+ [AccountResponse](./lib/carbon_ruby_sdk/models/account_response.rb)
270
+
271
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
272
+
273
+ `/integrations/data/crm/accounts` `POST`
274
+
275
+ [🔙 **Back to Table of Contents**](#table-of-contents)
276
+
277
+ ---
278
+
279
+
280
+ ### `carbon.crm.get_contact`<a id="carboncrmget_contact"></a>
281
+
282
+ Get Contact
283
+
284
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
285
+
286
+ ```ruby
287
+ result = carbon.crm.get_contact(
288
+ id: "id_example",
289
+ data_source_id: 1,
290
+ include_remote_data: false,
291
+ includes: [
292
+ "string_example"
293
+ ],
294
+ )
295
+ p result
296
+ ```
297
+
298
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
299
+
300
+ ##### id: `String`<a id="id-string"></a>
301
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
302
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
303
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
304
+ #### 🔄 Return<a id="🔄-return"></a>
305
+
306
+ [Contact](./lib/carbon_ruby_sdk/models/contact.rb)
307
+
308
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
309
+
310
+ `/integrations/data/crm/contacts/{id}` `GET`
311
+
312
+ [🔙 **Back to Table of Contents**](#table-of-contents)
313
+
314
+ ---
315
+
316
+
317
+ ### `carbon.crm.get_contacts`<a id="carboncrmget_contacts"></a>
318
+
319
+ Get Contacts
320
+
321
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
322
+
323
+ ```ruby
324
+ result = carbon.crm.get_contacts(
325
+ data_source_id: 1,
326
+ include_remote_data: false,
327
+ next_cursor: "string_example",
328
+ page_size: 1,
329
+ order_dir: "asc",
330
+ includes: [],
331
+ filters: {
332
+ },
333
+ order_by: "created_at",
334
+ )
335
+ p result
336
+ ```
337
+
338
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
339
+
340
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
341
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
342
+ ##### next_cursor: `String`<a id="next_cursor-string"></a>
343
+ ##### page_size: `Integer`<a id="page_size-integer"></a>
344
+ ##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
345
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
346
+ ##### filters: [`ContactFilters`](./lib/carbon_ruby_sdk/models/contact_filters.rb)<a id="filters-contactfilterslibcarbon_ruby_sdkmodelscontact_filtersrb"></a>
347
+ ##### order_by: [`ContactsOrderByNullable`](./lib/carbon_ruby_sdk/models/contacts_order_by_nullable.rb)<a id="order_by-contactsorderbynullablelibcarbon_ruby_sdkmodelscontacts_order_by_nullablerb"></a>
348
+ #### 🔄 Return<a id="🔄-return"></a>
349
+
350
+ [ContactsResponse](./lib/carbon_ruby_sdk/models/contacts_response.rb)
351
+
352
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
353
+
354
+ `/integrations/data/crm/contacts` `POST`
355
+
356
+ [🔙 **Back to Table of Contents**](#table-of-contents)
357
+
358
+ ---
359
+
360
+
361
+ ### `carbon.crm.get_lead`<a id="carboncrmget_lead"></a>
362
+
363
+ Get Lead
364
+
365
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
366
+
367
+ ```ruby
368
+ result = carbon.crm.get_lead(
369
+ id: "id_example",
370
+ data_source_id: 1,
371
+ include_remote_data: false,
372
+ includes: [
373
+ "string_example"
374
+ ],
375
+ )
376
+ p result
377
+ ```
378
+
379
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
380
+
381
+ ##### id: `String`<a id="id-string"></a>
382
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
383
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
384
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
385
+ #### 🔄 Return<a id="🔄-return"></a>
386
+
387
+ [Lead](./lib/carbon_ruby_sdk/models/lead.rb)
388
+
389
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
390
+
391
+ `/integrations/data/crm/leads/{id}` `GET`
392
+
393
+ [🔙 **Back to Table of Contents**](#table-of-contents)
394
+
395
+ ---
396
+
397
+
398
+ ### `carbon.crm.get_leads`<a id="carboncrmget_leads"></a>
399
+
400
+ Get Leads
401
+
402
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
403
+
404
+ ```ruby
405
+ result = carbon.crm.get_leads(
406
+ data_source_id: 1,
407
+ include_remote_data: false,
408
+ next_cursor: "string_example",
409
+ page_size: 1,
410
+ order_dir: "asc",
411
+ includes: [],
412
+ filters: {
413
+ },
414
+ order_by: "created_at",
415
+ )
416
+ p result
417
+ ```
418
+
419
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
420
+
421
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
422
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
423
+ ##### next_cursor: `String`<a id="next_cursor-string"></a>
424
+ ##### page_size: `Integer`<a id="page_size-integer"></a>
425
+ ##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
426
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
427
+ ##### filters: [`LeadFilters`](./lib/carbon_ruby_sdk/models/lead_filters.rb)<a id="filters-leadfilterslibcarbon_ruby_sdkmodelslead_filtersrb"></a>
428
+ ##### order_by: [`LeadsOrderByNullable`](./lib/carbon_ruby_sdk/models/leads_order_by_nullable.rb)<a id="order_by-leadsorderbynullablelibcarbon_ruby_sdkmodelsleads_order_by_nullablerb"></a>
429
+ #### 🔄 Return<a id="🔄-return"></a>
430
+
431
+ [LeadsResponse](./lib/carbon_ruby_sdk/models/leads_response.rb)
432
+
433
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
434
+
435
+ `/integrations/data/crm/leads` `POST`
436
+
437
+ [🔙 **Back to Table of Contents**](#table-of-contents)
438
+
439
+ ---
440
+
441
+
442
+ ### `carbon.crm.get_opportunities`<a id="carboncrmget_opportunities"></a>
443
+
444
+ Get Opportunities
445
+
446
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
447
+
448
+ ```ruby
449
+ result = carbon.crm.get_opportunities(
450
+ data_source_id: 1,
451
+ include_remote_data: false,
452
+ next_cursor: "string_example",
453
+ page_size: 1,
454
+ order_dir: "asc",
455
+ includes: [],
456
+ filters: {
457
+ "status" => "WON",
458
+ },
459
+ order_by: "created_at",
460
+ )
461
+ p result
462
+ ```
463
+
464
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
465
+
466
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
467
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
468
+ ##### next_cursor: `String`<a id="next_cursor-string"></a>
469
+ ##### page_size: `Integer`<a id="page_size-integer"></a>
470
+ ##### order_dir: [`OrderDirV2Nullable`](./lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb)<a id="order_dir-orderdirv2nullablelibcarbon_ruby_sdkmodelsorder_dir_v2_nullablerb"></a>
471
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
472
+ ##### filters: [`OpportunityFilters`](./lib/carbon_ruby_sdk/models/opportunity_filters.rb)<a id="filters-opportunityfilterslibcarbon_ruby_sdkmodelsopportunity_filtersrb"></a>
473
+ ##### order_by: [`OpportunitiesOrderByNullable`](./lib/carbon_ruby_sdk/models/opportunities_order_by_nullable.rb)<a id="order_by-opportunitiesorderbynullablelibcarbon_ruby_sdkmodelsopportunities_order_by_nullablerb"></a>
474
+ #### 🔄 Return<a id="🔄-return"></a>
475
+
476
+ [OpportunitiesResponse](./lib/carbon_ruby_sdk/models/opportunities_response.rb)
477
+
478
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
479
+
480
+ `/integrations/data/crm/opportunities` `POST`
481
+
482
+ [🔙 **Back to Table of Contents**](#table-of-contents)
483
+
484
+ ---
485
+
486
+
487
+ ### `carbon.crm.get_opportunity`<a id="carboncrmget_opportunity"></a>
488
+
489
+ Get Opportunity
490
+
491
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
492
+
493
+ ```ruby
494
+ result = carbon.crm.get_opportunity(
495
+ id: "id_example",
496
+ data_source_id: 1,
497
+ include_remote_data: false,
498
+ includes: [
499
+ "string_example"
500
+ ],
501
+ )
502
+ p result
503
+ ```
504
+
505
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
506
+
507
+ ##### id: `String`<a id="id-string"></a>
508
+ ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
509
+ ##### include_remote_data: `Boolean`<a id="include_remote_data-boolean"></a>
510
+ ##### includes: Array<[`BaseIncludes`](./lib/carbon_ruby_sdk/models/base_includes.rb)><a id="includes-array"></a>
511
+ #### 🔄 Return<a id="🔄-return"></a>
512
+
513
+ [Opportunity](./lib/carbon_ruby_sdk/models/opportunity.rb)
514
+
515
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
516
+
517
+ `/integrations/data/crm/opportunities/{id}` `GET`
518
+
519
+ [🔙 **Back to Table of Contents**](#table-of-contents)
520
+
521
+ ---
522
+
523
+
191
524
  ### `carbon.data_sources.query_user_data_sources`<a id="carbondata_sourcesquery_user_data_sources"></a>
192
525
 
193
526
  User Data Sources