carbon_ruby_sdk 0.2.35 → 0.2.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +335 -2
- data/lib/carbon_ruby_sdk/api/crm_api.rb +909 -0
- data/lib/carbon_ruby_sdk/models/account.rb +398 -0
- data/lib/carbon_ruby_sdk/models/account_filters.rb +226 -0
- data/lib/carbon_ruby_sdk/models/account_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/accounts_order_by.rb +39 -0
- data/lib/carbon_ruby_sdk/models/accounts_order_by_nullable.rb +39 -0
- data/lib/carbon_ruby_sdk/models/accounts_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/address.rb +276 -0
- data/lib/carbon_ruby_sdk/models/base_includes.rb +36 -0
- data/lib/carbon_ruby_sdk/models/contact.rb +434 -0
- data/lib/carbon_ruby_sdk/models/contact_filters.rb +236 -0
- data/lib/carbon_ruby_sdk/models/contacts_order_by.rb +39 -0
- data/lib/carbon_ruby_sdk/models/contacts_order_by_nullable.rb +39 -0
- data/lib/carbon_ruby_sdk/models/contacts_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/contacts_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/email.rb +230 -0
- data/lib/carbon_ruby_sdk/models/event.rb +370 -0
- data/lib/carbon_ruby_sdk/models/file_formats.rb +2 -1
- data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/lead.rb +468 -0
- data/lib/carbon_ruby_sdk/models/lead_filters.rb +246 -0
- data/lib/carbon_ruby_sdk/models/leads_order_by.rb +38 -0
- data/lib/carbon_ruby_sdk/models/leads_order_by_nullable.rb +38 -0
- data/lib/carbon_ruby_sdk/models/leads_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/leads_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/opportunities_order_by.rb +40 -0
- data/lib/carbon_ruby_sdk/models/opportunities_order_by_nullable.rb +40 -0
- data/lib/carbon_ruby_sdk/models/opportunities_request.rb +293 -0
- data/lib/carbon_ruby_sdk/models/opportunities_response.rb +246 -0
- data/lib/carbon_ruby_sdk/models/opportunity.rb +400 -0
- data/lib/carbon_ruby_sdk/models/opportunity_filters.rb +246 -0
- data/lib/carbon_ruby_sdk/models/opportunity_status.rb +36 -0
- data/lib/carbon_ruby_sdk/models/opportunity_status_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/models/order_dir_v2_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/models/partial_account.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_account_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_contact.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_contact_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_owner.rb +216 -0
- data/lib/carbon_ruby_sdk/models/partial_owner_nullable.rb +216 -0
- data/lib/carbon_ruby_sdk/models/phone_number.rb +230 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload.rb +2 -2
- data/lib/carbon_ruby_sdk/models/task.rb +346 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +42 -0
- data/spec/api/crm_api_spec.rb +129 -0
- data/spec/models/account_filters_spec.rb +34 -0
- data/spec/models/account_response_spec.rb +40 -0
- data/spec/models/account_spec.rb +118 -0
- data/spec/models/accounts_order_by_nullable_spec.rb +22 -0
- data/spec/models/accounts_order_by_spec.rb +22 -0
- data/spec/models/accounts_request_spec.rb +70 -0
- data/spec/models/address_spec.rb +64 -0
- data/spec/models/base_includes_spec.rb +22 -0
- data/spec/models/contact_filters_spec.rb +40 -0
- data/spec/models/contact_spec.rb +136 -0
- data/spec/models/contacts_order_by_nullable_spec.rb +22 -0
- data/spec/models/contacts_order_by_spec.rb +22 -0
- data/spec/models/contacts_request_spec.rb +70 -0
- data/spec/models/contacts_response_spec.rb +40 -0
- data/spec/models/email_spec.rb +34 -0
- data/spec/models/event_spec.rb +106 -0
- data/spec/models/lead_filters_spec.rb +46 -0
- data/spec/models/lead_spec.rb +154 -0
- data/spec/models/leads_order_by_nullable_spec.rb +22 -0
- data/spec/models/leads_order_by_spec.rb +22 -0
- data/spec/models/leads_request_spec.rb +70 -0
- data/spec/models/leads_response_spec.rb +40 -0
- data/spec/models/opportunities_order_by_nullable_spec.rb +22 -0
- data/spec/models/opportunities_order_by_spec.rb +22 -0
- data/spec/models/opportunities_request_spec.rb +70 -0
- data/spec/models/opportunities_response_spec.rb +40 -0
- data/spec/models/opportunity_filters_spec.rb +46 -0
- data/spec/models/opportunity_spec.rb +124 -0
- data/spec/models/opportunity_status_nullable_spec.rb +22 -0
- data/spec/models/opportunity_status_spec.rb +22 -0
- data/spec/models/order_dir_v2_nullable_spec.rb +22 -0
- data/spec/models/partial_account_nullable_spec.rb +28 -0
- data/spec/models/partial_account_spec.rb +28 -0
- data/spec/models/partial_contact_nullable_spec.rb +28 -0
- data/spec/models/partial_contact_spec.rb +28 -0
- data/spec/models/partial_owner_nullable_spec.rb +28 -0
- data/spec/models/partial_owner_spec.rb +28 -0
- data/spec/models/phone_number_spec.rb +34 -0
- data/spec/models/sent_webhook_payload_spec.rb +1 -1
- data/spec/models/task_spec.rb +94 -0
- metadata +122 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a57f6598d1b34985c7df426631d95d93b3a127acd26908b445c8791b8e7b2902
|
4
|
+
data.tar.gz: fcca0c0c35cc0788fbb1318d1a6a3c27be3a1ffccd56d3728bf957a4d5c55c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: febf8d1fb4f090e10abb85c2168ae26ea0b29b50599a0b76cf6421af47e371a3e3d39491e091f94e66ef41c189bff6a57f40fec5bd291d25e2bad55468047905
|
7
|
+
data.tar.gz: 8efeecf75ae284fcf13407a8bced6427f19b13ca32c77e17a4c89215d815d53e855079b603d0cdf24cb4eb892a4ad976245f519846aa8495be3ef84a44e5cb65
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
carbon_ruby_sdk (0.2.
|
4
|
+
carbon_ruby_sdk (0.2.37)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
regexp_parser (2.9.2)
|
45
45
|
reline (0.5.10)
|
46
46
|
io-console (~> 0.5)
|
47
|
-
rexml (3.3.
|
47
|
+
rexml (3.3.8)
|
48
48
|
rspec (3.13.0)
|
49
49
|
rspec-core (~> 3.13.0)
|
50
50
|
rspec-expectations (~> 3.13.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
rspec-expectations (3.13.3)
|
55
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
56
|
rspec-support (~> 3.13.0)
|
57
|
-
rspec-mocks (3.13.
|
57
|
+
rspec-mocks (3.13.2)
|
58
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
59
59
|
rspec-support (~> 3.13.0)
|
60
60
|
rspec-support (3.13.1)
|
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.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.2.37-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.37)
|
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.
|
107
|
+
gem 'carbon_ruby_sdk', '~> 0.2.37'
|
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
|