crisp-api 1.1.12 → 1.1.14
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 +4 -4
- data/.github/workflows/build.yml +1 -1
- data/EXAMPLES.md +98 -0
- data/README.md +183 -61
- data/crisp-api.gemspec +2 -1
- data/lib/crisp-api.rb +1 -1
- data/lib/resources/website.rb +24 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1c8bf8ae0ba08e92419ec54f2eeda7a04a2dd804cdbb0a6242a8c5a74f11e9f
|
|
4
|
+
data.tar.gz: 07053a401d69f3400fbcc96b41993e3baffa319ba297456da833757214e93a76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d50484ebfc369c2d02dd74741bbe5eb4f3e13884b7446d39af6808faf39ddf8f72b7b47cee48343eeaf51f7b549af5342dd7eab1df322b832bbe08eeb6c0cbe6
|
|
7
|
+
data.tar.gz: b91e9df48d9f8dc6d5bf9a8707b2597cc11649425bd4ec1c26bc00df1ef962fd6b1d92af5b4a10a7dab1aba5e482f6c23de57f851af70b4423fcffc06de6cd04
|
data/.github/workflows/build.yml
CHANGED
data/EXAMPLES.md
CHANGED
|
@@ -437,6 +437,21 @@ client.website.batch_resolve_items(website_id, data);
|
|
|
437
437
|
|
|
438
438
|
=========================
|
|
439
439
|
|
|
440
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-unresolve-items
|
|
441
|
+
|
|
442
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
443
|
+
|
|
444
|
+
data = {
|
|
445
|
+
"sessions" => [
|
|
446
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
447
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
client.website.batch_unresolve_items(website_id, data);
|
|
452
|
+
|
|
453
|
+
=========================
|
|
454
|
+
|
|
440
455
|
https://docs.crisp.chat/references/rest-api/v1/#batch-read-items
|
|
441
456
|
|
|
442
457
|
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
@@ -445,6 +460,21 @@ client.website.batch_read_items(website_id, data);
|
|
|
445
460
|
|
|
446
461
|
=========================
|
|
447
462
|
|
|
463
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-unread-items
|
|
464
|
+
|
|
465
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
466
|
+
|
|
467
|
+
data = {
|
|
468
|
+
"sessions" => [
|
|
469
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
470
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
client.website.batch_unread_items(website_id, data);
|
|
475
|
+
|
|
476
|
+
=========================
|
|
477
|
+
|
|
448
478
|
https://docs.crisp.chat/references/rest-api/v1/#batch-remove-items
|
|
449
479
|
|
|
450
480
|
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
@@ -458,6 +488,72 @@ client.website.batch_remove_items(website_id, data);
|
|
|
458
488
|
|
|
459
489
|
=========================
|
|
460
490
|
|
|
491
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-report-items
|
|
492
|
+
|
|
493
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
494
|
+
|
|
495
|
+
data = {
|
|
496
|
+
"sessions" => [
|
|
497
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
498
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
499
|
+
],
|
|
500
|
+
"flag" => "spam"
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
client.website.batch_report_items(website_id, data);
|
|
504
|
+
|
|
505
|
+
=========================
|
|
506
|
+
|
|
507
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-block-items
|
|
508
|
+
|
|
509
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
510
|
+
|
|
511
|
+
data = {
|
|
512
|
+
"sessions" => [
|
|
513
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
514
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
515
|
+
],
|
|
516
|
+
"blocked" => true
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
client.website.batch_block_items(website_id, data);
|
|
520
|
+
|
|
521
|
+
=========================
|
|
522
|
+
|
|
523
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-routing-items
|
|
524
|
+
|
|
525
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
526
|
+
|
|
527
|
+
data = {
|
|
528
|
+
"sessions" => [
|
|
529
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
530
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
531
|
+
],
|
|
532
|
+
"assigned" => {
|
|
533
|
+
"user_id" => "a4c32c68-be91-4e29-b97e-b3b6af886eaa"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
client.website.batch_routing_items(website_id, data);
|
|
538
|
+
|
|
539
|
+
=========================
|
|
540
|
+
|
|
541
|
+
https://docs.crisp.chat/references/rest-api/v1/#batch-inbox-items
|
|
542
|
+
|
|
543
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
544
|
+
|
|
545
|
+
data = {
|
|
546
|
+
"sessions" => [
|
|
547
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
548
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
549
|
+
],
|
|
550
|
+
"inbox_id" => "d42e8b3b-ea8f-4e79-a9f8-d0e467fc1c31"
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
client.website.batch_inbox_items(website_id, data);
|
|
554
|
+
|
|
555
|
+
=========================
|
|
556
|
+
|
|
461
557
|
https://docs.crisp.chat/references/rest-api/v1/#get-website-availability-status
|
|
462
558
|
|
|
463
559
|
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
@@ -530,6 +626,8 @@ data = [
|
|
|
530
626
|
"ignore_privacy" => false,
|
|
531
627
|
"visitor_compose" => false,
|
|
532
628
|
"file_transfer" => true,
|
|
629
|
+
"overlay_search" => true,
|
|
630
|
+
"overlay_mode" => false,
|
|
533
631
|
"helpdesk_link" => true,
|
|
534
632
|
"helpdesk_only" => false,
|
|
535
633
|
"status_health_dead" => true,
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ You may follow the [REST API Quickstart](https://docs.crisp.chat/guides/rest-api
|
|
|
16
16
|
Add the library to your `Gemfile`:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
gem "crisp-api", "~> 1.1.
|
|
19
|
+
gem "crisp-api", "~> 1.1.14"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Then, import it:
|
|
@@ -30,7 +30,7 @@ Build a new authenticated Crisp client with your `identifier` and `key` tokens.
|
|
|
30
30
|
```ruby
|
|
31
31
|
client = Crisp::Client.new
|
|
32
32
|
|
|
33
|
-
client.set_tier(
|
|
33
|
+
client.set_tier(tier)
|
|
34
34
|
client.authenticate(identifier, key)
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -81,12 +81,12 @@ client.website.send_message_in_conversation(
|
|
|
81
81
|
)
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
**⚠️ Note that, depending on your authentication token tier, which is either `user` or `plugin`, you may not be allowed to use all methods from the library. When in doubt, refer to the library method descriptions below. Most likely, you are using a `plugin` token.**
|
|
84
|
+
**⚠️ Note that, depending on your authentication token tier, which is either `user`, `website` or `plugin`, you may not be allowed to use all methods from the library. When in doubt, refer to the library method descriptions below. Most likely, you are using a `plugin` token.**
|
|
85
85
|
|
|
86
86
|
### Website
|
|
87
87
|
|
|
88
88
|
* **Website Conversations**
|
|
89
|
-
* ⭐ **List Conversations
|
|
89
|
+
* ⭐ **List Conversations**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-conversations)
|
|
90
90
|
* `client.website.list_conversations(website_id, page_number)`
|
|
91
91
|
* <details>
|
|
92
92
|
<summary>See Example</summary>
|
|
@@ -99,7 +99,7 @@ client.website.send_message_in_conversation(
|
|
|
99
99
|
```
|
|
100
100
|
</details>
|
|
101
101
|
|
|
102
|
-
* **Search Conversations
|
|
102
|
+
* **Search Conversations**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-conversations)
|
|
103
103
|
* `client.website.search_conversations(website_id, page_number, search_query, search_type, search_operator, include_empty, filter_unread, filter_resolved, filter_not_resolved, filter_mention, filter_assigned, filter_unassigned, filter_date_start, filter_date_end, order_date_created", order_date_updated)`
|
|
104
104
|
* <details>
|
|
105
105
|
<summary>See Example</summary>
|
|
@@ -114,7 +114,7 @@ client.website.send_message_in_conversation(
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
* **Website Conversation**
|
|
117
|
-
* ⭐ **Create A New Conversation
|
|
117
|
+
* ⭐ **Create A New Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#create-a-new-conversation)
|
|
118
118
|
* `client.website.create_new_conversation(website_id)`
|
|
119
119
|
* <details>
|
|
120
120
|
<summary>See Example</summary>
|
|
@@ -126,7 +126,7 @@ client.website.send_message_in_conversation(
|
|
|
126
126
|
```
|
|
127
127
|
</details>
|
|
128
128
|
|
|
129
|
-
* **Check If Conversation Exists
|
|
129
|
+
* **Check If Conversation Exists**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#check-if-conversation-exists)
|
|
130
130
|
* `client.website.check_conversation_exists(website_id, session_id)`
|
|
131
131
|
* <details>
|
|
132
132
|
<summary>See Example</summary>
|
|
@@ -139,7 +139,7 @@ client.website.send_message_in_conversation(
|
|
|
139
139
|
```
|
|
140
140
|
</details>
|
|
141
141
|
|
|
142
|
-
* ⭐ **Get A Conversation
|
|
142
|
+
* ⭐ **Get A Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-a-conversation)
|
|
143
143
|
* `client.website.get_conversation(website_id, session_id)`
|
|
144
144
|
* <details>
|
|
145
145
|
<summary>See Example</summary>
|
|
@@ -152,7 +152,7 @@ client.website.send_message_in_conversation(
|
|
|
152
152
|
```
|
|
153
153
|
</details>
|
|
154
154
|
|
|
155
|
-
* **Remove A Conversation
|
|
155
|
+
* **Remove A Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#remove-a-conversation)
|
|
156
156
|
* `client.website.remove_conversation(website_id, session_id)`
|
|
157
157
|
* <details>
|
|
158
158
|
<summary>See Example</summary>
|
|
@@ -165,7 +165,7 @@ client.website.send_message_in_conversation(
|
|
|
165
165
|
```
|
|
166
166
|
</details>
|
|
167
167
|
|
|
168
|
-
* **Initiate A Conversation With Existing Session
|
|
168
|
+
* **Initiate A Conversation With Existing Session**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#initiate-a-conversation-with-existing-session)
|
|
169
169
|
* `client.website.initiate_conversation_with_existing_session(website_id, session_id)`
|
|
170
170
|
* <details>
|
|
171
171
|
<summary>See Example</summary>
|
|
@@ -178,7 +178,7 @@ client.website.send_message_in_conversation(
|
|
|
178
178
|
```
|
|
179
179
|
</details>
|
|
180
180
|
|
|
181
|
-
* ⭐ **Get Messages In Conversation
|
|
181
|
+
* ⭐ **Get Messages In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-messages-in-conversation)
|
|
182
182
|
* `client.website.get_messages_in_conversation(website_id, session_id, query)`
|
|
183
183
|
* <details>
|
|
184
184
|
<summary>See Example</summary>
|
|
@@ -191,7 +191,7 @@ client.website.send_message_in_conversation(
|
|
|
191
191
|
```
|
|
192
192
|
</details>
|
|
193
193
|
|
|
194
|
-
* ⭐ **Send A Message In Conversation
|
|
194
|
+
* ⭐ **Send A Message In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#send-a-message-in-conversation)
|
|
195
195
|
* `client.website.send_message_in_conversation(website_id, session_id, query)`
|
|
196
196
|
* <details>
|
|
197
197
|
<summary>See Example</summary>
|
|
@@ -211,7 +211,7 @@ client.website.send_message_in_conversation(
|
|
|
211
211
|
```
|
|
212
212
|
</details>
|
|
213
213
|
|
|
214
|
-
* **Update A Message In Conversation
|
|
214
|
+
* **Update A Message In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-a-message-in-conversation)
|
|
215
215
|
* `client.website.update_message_in_conversation(website_id, session_id, fingerprint, data)`
|
|
216
216
|
* <details>
|
|
217
217
|
<summary>See Example</summary>
|
|
@@ -227,7 +227,7 @@ client.website.send_message_in_conversation(
|
|
|
227
227
|
```
|
|
228
228
|
</details>
|
|
229
229
|
|
|
230
|
-
* **Compose A Message In Conversation
|
|
230
|
+
* **Compose A Message In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#compose-a-message-in-conversation)
|
|
231
231
|
* `client.website.compose_message_in_conversation(website_id, session_id, data)`
|
|
232
232
|
* <details>
|
|
233
233
|
<summary>See Example</summary>
|
|
@@ -245,7 +245,7 @@ client.website.send_message_in_conversation(
|
|
|
245
245
|
```
|
|
246
246
|
</details>
|
|
247
247
|
|
|
248
|
-
* ⭐ **Mark Messages As Read In Conversation
|
|
248
|
+
* ⭐ **Mark Messages As Read In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#mark-messages-as-read-in-conversation)
|
|
249
249
|
* `client.website.mark_messages_read_in_conversation(website_id, session_id, data)`
|
|
250
250
|
* <details>
|
|
251
251
|
<summary>See Example</summary>
|
|
@@ -266,7 +266,7 @@ client.website.send_message_in_conversation(
|
|
|
266
266
|
```
|
|
267
267
|
</details>
|
|
268
268
|
|
|
269
|
-
* ⭐ **Mark Messages As Delivered In Conversation
|
|
269
|
+
* ⭐ **Mark Messages As Delivered In Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#mark-messages-as-delivered-in-conversation)
|
|
270
270
|
* `client.website.mark_messages_delivered_in_conversation(website_id, session_id, data)`
|
|
271
271
|
* <details>
|
|
272
272
|
<summary>See Example</summary>
|
|
@@ -287,7 +287,7 @@ client.website.send_message_in_conversation(
|
|
|
287
287
|
```
|
|
288
288
|
</details>
|
|
289
289
|
|
|
290
|
-
* ⭐ **Get Conversation Routing Assign
|
|
290
|
+
* ⭐ **Get Conversation Routing Assign**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-conversation-routing-assign)
|
|
291
291
|
* `client.website.get_conversation_routing_assign(website_id, session_id)`
|
|
292
292
|
* <details>
|
|
293
293
|
<summary>See Example</summary>
|
|
@@ -300,7 +300,7 @@ client.website.send_message_in_conversation(
|
|
|
300
300
|
```
|
|
301
301
|
</details>
|
|
302
302
|
|
|
303
|
-
* ⭐ **Assign Conversation Routing
|
|
303
|
+
* ⭐ **Assign Conversation Routing**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#assign-conversation-routing)
|
|
304
304
|
* `client.website.assign_conversation_routing(website_id, session_id, data)`
|
|
305
305
|
* <details>
|
|
306
306
|
<summary>See Example</summary>
|
|
@@ -319,7 +319,7 @@ client.website.send_message_in_conversation(
|
|
|
319
319
|
```
|
|
320
320
|
</details>
|
|
321
321
|
|
|
322
|
-
* ⭐ **Get Conversation Metas
|
|
322
|
+
* ⭐ **Get Conversation Metas**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-conversation-metas)
|
|
323
323
|
* `client.website.get_conversation_metas(website_id, session_id)`
|
|
324
324
|
* <details>
|
|
325
325
|
<summary>See Example</summary>
|
|
@@ -332,7 +332,7 @@ client.website.send_message_in_conversation(
|
|
|
332
332
|
```
|
|
333
333
|
</details>
|
|
334
334
|
|
|
335
|
-
* ⭐ **Update Conversation Metas
|
|
335
|
+
* ⭐ **Update Conversation Metas**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-conversation-metas)
|
|
336
336
|
* `client.website.update_conversation_metas(website_id, session_id, data)`
|
|
337
337
|
* <details>
|
|
338
338
|
<summary>See Example</summary>
|
|
@@ -359,7 +359,7 @@ client.website.send_message_in_conversation(
|
|
|
359
359
|
```
|
|
360
360
|
</details>
|
|
361
361
|
|
|
362
|
-
* **List Conversation Pages
|
|
362
|
+
* **List Conversation Pages**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-conversation-pages)
|
|
363
363
|
* `client.website.list_conversation_pages(website_id, session_id, page_number)`
|
|
364
364
|
* <details>
|
|
365
365
|
<summary>See Example</summary>
|
|
@@ -373,7 +373,7 @@ client.website.send_message_in_conversation(
|
|
|
373
373
|
```
|
|
374
374
|
</details>
|
|
375
375
|
|
|
376
|
-
* **List Conversation Events
|
|
376
|
+
* **List Conversation Events**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-conversation-events)
|
|
377
377
|
* `client.website.list_conversation_events(website_id, session_id, page_number)`
|
|
378
378
|
* <details>
|
|
379
379
|
<summary>See Example</summary>
|
|
@@ -387,7 +387,7 @@ client.website.send_message_in_conversation(
|
|
|
387
387
|
```
|
|
388
388
|
</details>
|
|
389
389
|
|
|
390
|
-
* **List Conversation Files
|
|
390
|
+
* **List Conversation Files**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-conversation-files)
|
|
391
391
|
* `client.website.list_conversation_files(website_id, session_id, page_number)`
|
|
392
392
|
* <details>
|
|
393
393
|
<summary>See Example</summary>
|
|
@@ -401,7 +401,7 @@ client.website.send_message_in_conversation(
|
|
|
401
401
|
```
|
|
402
402
|
</details>
|
|
403
403
|
|
|
404
|
-
* **Get Conversation State
|
|
404
|
+
* **Get Conversation State**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-conversation-state)
|
|
405
405
|
* `client.website.get_conversation_state(website_id, session_id)`
|
|
406
406
|
* <details>
|
|
407
407
|
<summary>See Example</summary>
|
|
@@ -414,7 +414,7 @@ client.website.send_message_in_conversation(
|
|
|
414
414
|
```
|
|
415
415
|
</details>
|
|
416
416
|
|
|
417
|
-
* ⭐ **Change Conversation State
|
|
417
|
+
* ⭐ **Change Conversation State**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#change-conversation-state)
|
|
418
418
|
* `client.website.change_conversation_state(website_id, session_id, data)`
|
|
419
419
|
* <details>
|
|
420
420
|
<summary>See Example</summary>
|
|
@@ -429,7 +429,7 @@ client.website.send_message_in_conversation(
|
|
|
429
429
|
```
|
|
430
430
|
</details>
|
|
431
431
|
|
|
432
|
-
* **Get Block Status For Conversation
|
|
432
|
+
* **Get Block Status For Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-block-status-for-conversation)
|
|
433
433
|
* `client.website.get_block_status_for_conversation(website_id, session_id)`
|
|
434
434
|
* <details>
|
|
435
435
|
<summary>See Example</summary>
|
|
@@ -442,7 +442,7 @@ client.website.send_message_in_conversation(
|
|
|
442
442
|
```
|
|
443
443
|
</details>
|
|
444
444
|
|
|
445
|
-
* **Block Incoming Messages For Conversation
|
|
445
|
+
* **Block Incoming Messages For Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#block-incoming-messages-for-conversation)
|
|
446
446
|
* `client.website.block_incoming_messages_for_conversation(website_id, session_id, data)`
|
|
447
447
|
* <details>
|
|
448
448
|
<summary>See Example</summary>
|
|
@@ -457,7 +457,7 @@ client.website.send_message_in_conversation(
|
|
|
457
457
|
```
|
|
458
458
|
</details>
|
|
459
459
|
|
|
460
|
-
* **Request Email Transcript For Conversation
|
|
460
|
+
* **Request Email Transcript For Conversation**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#request-email-transcript-for-conversation)
|
|
461
461
|
* `client.website.request_email_transcript_for_conversation(website_id, session_id, data)`
|
|
462
462
|
* <details>
|
|
463
463
|
<summary>See Example</summary>
|
|
@@ -477,7 +477,7 @@ client.website.send_message_in_conversation(
|
|
|
477
477
|
|
|
478
478
|
|
|
479
479
|
* **Website People** _(these are your end-users)_
|
|
480
|
-
* **Get People Statistics
|
|
480
|
+
* **Get People Statistics**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-people-statistics)
|
|
481
481
|
* `client.website.get_people_statistics(website_id)`
|
|
482
482
|
* <details>
|
|
483
483
|
<summary>See Example</summary>
|
|
@@ -489,7 +489,7 @@ client.website.send_message_in_conversation(
|
|
|
489
489
|
```
|
|
490
490
|
</details>
|
|
491
491
|
|
|
492
|
-
* **List People Segments
|
|
492
|
+
* **List People Segments**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-suggested-people-segments)
|
|
493
493
|
* `client.website.list_people_segments(website_id, page_number)`
|
|
494
494
|
* <details>
|
|
495
495
|
<summary>See Example</summary>
|
|
@@ -502,7 +502,7 @@ client.website.send_message_in_conversation(
|
|
|
502
502
|
```
|
|
503
503
|
</details>
|
|
504
504
|
|
|
505
|
-
* ⭐ **List People Profiles
|
|
505
|
+
* ⭐ **List People Profiles**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-people-profiles)
|
|
506
506
|
* `client.website.list_people_profiles(website_id, page_number)`
|
|
507
507
|
* <details>
|
|
508
508
|
<summary>See Example</summary>
|
|
@@ -515,7 +515,7 @@ client.website.send_message_in_conversation(
|
|
|
515
515
|
```
|
|
516
516
|
</details>
|
|
517
517
|
|
|
518
|
-
* ⭐ **Add New People Profile
|
|
518
|
+
* ⭐ **Add New People Profile**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#add-new-people-profile)
|
|
519
519
|
* `client.website.add_new_people_profile(website_id, data)`
|
|
520
520
|
* <details>
|
|
521
521
|
<summary>See Example</summary>
|
|
@@ -534,7 +534,7 @@ client.website.send_message_in_conversation(
|
|
|
534
534
|
```
|
|
535
535
|
</details>
|
|
536
536
|
|
|
537
|
-
* ⭐ **Check If People Profile Exists
|
|
537
|
+
* ⭐ **Check If People Profile Exists**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#check-if-people-profile-exists)
|
|
538
538
|
* `client.website.check_people_profile_exists(website_id, people_id)`
|
|
539
539
|
* <details>
|
|
540
540
|
<summary>See Example</summary>
|
|
@@ -547,7 +547,7 @@ client.website.send_message_in_conversation(
|
|
|
547
547
|
```
|
|
548
548
|
</details>
|
|
549
549
|
|
|
550
|
-
* ⭐ **Get People Profile
|
|
550
|
+
* ⭐ **Get People Profile**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-people-profile)
|
|
551
551
|
* `client.website.get_people_profile(website_id, people_id)`
|
|
552
552
|
* <details>
|
|
553
553
|
<summary>See Example</summary>
|
|
@@ -560,7 +560,7 @@ client.website.send_message_in_conversation(
|
|
|
560
560
|
```
|
|
561
561
|
</details>
|
|
562
562
|
|
|
563
|
-
* ⭐ **Save People Profile
|
|
563
|
+
* ⭐ **Save People Profile**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#save-people-profile)
|
|
564
564
|
* `client.website.save_people_profile(website_id, people_id, data)`
|
|
565
565
|
* <details>
|
|
566
566
|
<summary>See Example</summary>
|
|
@@ -580,7 +580,7 @@ client.website.send_message_in_conversation(
|
|
|
580
580
|
```
|
|
581
581
|
</details>
|
|
582
582
|
|
|
583
|
-
* **Find People Profile By Email
|
|
583
|
+
* **Find People Profile By Email**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-people-profile)
|
|
584
584
|
* `client.website.find_people_profile_by_email(website_id, email)`
|
|
585
585
|
* <details>
|
|
586
586
|
<summary>See Example</summary>
|
|
@@ -593,7 +593,7 @@ client.website.send_message_in_conversation(
|
|
|
593
593
|
```
|
|
594
594
|
</details>
|
|
595
595
|
|
|
596
|
-
* ⭐ **Update People Profile
|
|
596
|
+
* ⭐ **Update People Profile**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-people-profile)
|
|
597
597
|
* `client.website.update_people_profile(website_id, people_id, data)`
|
|
598
598
|
* <details>
|
|
599
599
|
<summary>See Example</summary>
|
|
@@ -613,7 +613,7 @@ client.website.send_message_in_conversation(
|
|
|
613
613
|
```
|
|
614
614
|
</details>
|
|
615
615
|
|
|
616
|
-
* ⭐ **Remove People Profile
|
|
616
|
+
* ⭐ **Remove People Profile**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#remove-people-profile)
|
|
617
617
|
* `client.website.remove_people_profile(website_id, people_id)`
|
|
618
618
|
* <details>
|
|
619
619
|
<summary>See Example</summary>
|
|
@@ -626,7 +626,7 @@ client.website.send_message_in_conversation(
|
|
|
626
626
|
```
|
|
627
627
|
</details>
|
|
628
628
|
|
|
629
|
-
* **List People Conversations
|
|
629
|
+
* **List People Conversations**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-people-conversations)
|
|
630
630
|
* `client.website.list_people_conversations(website_id, people_id, page_number)`
|
|
631
631
|
* <details>
|
|
632
632
|
<summary>See Example</summary>
|
|
@@ -640,25 +640,25 @@ client.website.send_message_in_conversation(
|
|
|
640
640
|
```
|
|
641
641
|
</details>
|
|
642
642
|
|
|
643
|
-
+ **Add A People Event
|
|
643
|
+
+ **Add A People Event**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#add-a-people-event)
|
|
644
644
|
* `client.website.add_people_event(website_id, people_id, data)`
|
|
645
|
-
+ **List People Events
|
|
645
|
+
+ **List People Events**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-people-events)
|
|
646
646
|
* `client.website.list_people_events(website_id, people_id, page_number)`
|
|
647
|
-
+ **Get People Data
|
|
647
|
+
+ **Get People Data**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-people-data)
|
|
648
648
|
* `client.website.get_people_data(website_id, people_id)`
|
|
649
|
-
+ **Save People Data
|
|
649
|
+
+ **Save People Data**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#save-people-data)
|
|
650
650
|
* `client.website.save_people_data(website_id, people_id, data)`
|
|
651
|
-
+ **Update People Data
|
|
651
|
+
+ **Update People Data**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-people-data)
|
|
652
652
|
* `client.website.update_people_data(website_id, people_id, data)`
|
|
653
|
-
+ **Get People Subscription Status
|
|
653
|
+
+ **Get People Subscription Status**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-people-subscription-status)
|
|
654
654
|
* `client.website.get_people_subscription_status(website_id, people_id)`
|
|
655
|
-
+ **Update People Subscription Status
|
|
655
|
+
+ **Update People Subscription Status**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-people-subscription-status)
|
|
656
656
|
* `client.website.update_people_subscription_status(website_id, people_id, data)`
|
|
657
657
|
|
|
658
658
|
_👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
659
659
|
|
|
660
660
|
* **Website Base**
|
|
661
|
-
* **Create Website
|
|
661
|
+
* **Create Website**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#create-website)
|
|
662
662
|
* `client.website.create_website(data)`
|
|
663
663
|
* <details>
|
|
664
664
|
<summary>See Example</summary>
|
|
@@ -668,7 +668,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
668
668
|
```
|
|
669
669
|
</details>
|
|
670
670
|
|
|
671
|
-
* **Get A Website
|
|
671
|
+
* **Get A Website**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-a-website)
|
|
672
672
|
* `client.website.get_website(website_id)`
|
|
673
673
|
* <details>
|
|
674
674
|
<summary>See Example</summary>
|
|
@@ -680,7 +680,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
680
680
|
```
|
|
681
681
|
</details>
|
|
682
682
|
|
|
683
|
-
* **Delete A Website
|
|
683
|
+
* **Delete A Website**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#delete-a-website)
|
|
684
684
|
* `client.website.delete_website(website_id)`
|
|
685
685
|
* <details>
|
|
686
686
|
<summary>See Example</summary>
|
|
@@ -694,7 +694,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
* **Website Batch**
|
|
697
|
-
* **Batch Resolve Items
|
|
697
|
+
* **Batch Resolve Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-resolve-items)
|
|
698
698
|
* `client.website.batch_resolve_items(website_id, data)`
|
|
699
699
|
* <details>
|
|
700
700
|
<summary>See Example</summary>
|
|
@@ -706,7 +706,26 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
706
706
|
```
|
|
707
707
|
</details>
|
|
708
708
|
|
|
709
|
-
* **Batch
|
|
709
|
+
* **Batch Unresolve Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-unresolve-items)
|
|
710
|
+
* `client.website.batch_unresolve_items(website_id, data)`
|
|
711
|
+
* <details>
|
|
712
|
+
<summary>See Example</summary>
|
|
713
|
+
|
|
714
|
+
```ruby
|
|
715
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
716
|
+
|
|
717
|
+
data = {
|
|
718
|
+
"sessions" => [
|
|
719
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
720
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
client.website.batch_unresolve_items(website_id, data);
|
|
725
|
+
```
|
|
726
|
+
</details>
|
|
727
|
+
|
|
728
|
+
* **Batch Read Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-read-items)
|
|
710
729
|
* `client.website.batch_read_items(website_id, data)`
|
|
711
730
|
* <details>
|
|
712
731
|
<summary>See Example</summary>
|
|
@@ -718,7 +737,26 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
718
737
|
```
|
|
719
738
|
</details>
|
|
720
739
|
|
|
721
|
-
* **Batch
|
|
740
|
+
* **Batch Unread Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-unread-items)
|
|
741
|
+
* `client.website.batch_unread_items(website_id, data)`
|
|
742
|
+
* <details>
|
|
743
|
+
<summary>See Example</summary>
|
|
744
|
+
|
|
745
|
+
```ruby
|
|
746
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
747
|
+
|
|
748
|
+
data = {
|
|
749
|
+
"sessions" => [
|
|
750
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
751
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
client.website.batch_unread_items(website_id, data);
|
|
756
|
+
```
|
|
757
|
+
</details>
|
|
758
|
+
|
|
759
|
+
* **Batch Remove Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-remove-items)
|
|
722
760
|
* `client.website.batch_remove_items(website_id, data)`
|
|
723
761
|
* <details>
|
|
724
762
|
<summary>See Example</summary>
|
|
@@ -735,9 +773,91 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
735
773
|
```
|
|
736
774
|
</details>
|
|
737
775
|
|
|
776
|
+
* **Batch Report Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-report-items)
|
|
777
|
+
* `client.website.batch_report_items(website_id, data)`
|
|
778
|
+
* <details>
|
|
779
|
+
<summary>See Example</summary>
|
|
780
|
+
|
|
781
|
+
```ruby
|
|
782
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
783
|
+
|
|
784
|
+
data = {
|
|
785
|
+
"sessions" => [
|
|
786
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
787
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
788
|
+
],
|
|
789
|
+
"flag" => "spam"
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
client.website.batch_report_items(website_id, data);
|
|
793
|
+
```
|
|
794
|
+
</details>
|
|
795
|
+
|
|
796
|
+
* **Batch Block Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-block-items)
|
|
797
|
+
* `client.website.batch_block_items(website_id, data)`
|
|
798
|
+
* <details>
|
|
799
|
+
<summary>See Example</summary>
|
|
800
|
+
|
|
801
|
+
```ruby
|
|
802
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
803
|
+
|
|
804
|
+
data = {
|
|
805
|
+
"sessions" => [
|
|
806
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
807
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
808
|
+
],
|
|
809
|
+
"blocked" => true
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
client.website.batch_block_items(website_id, data);
|
|
813
|
+
```
|
|
814
|
+
</details>
|
|
815
|
+
|
|
816
|
+
* **Batch Routing Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-routing-items)
|
|
817
|
+
* `client.website.batch_routing_items(website_id, data)`
|
|
818
|
+
* <details>
|
|
819
|
+
<summary>See Example</summary>
|
|
820
|
+
|
|
821
|
+
```ruby
|
|
822
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
823
|
+
|
|
824
|
+
data = {
|
|
825
|
+
"sessions" => [
|
|
826
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
827
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
828
|
+
],
|
|
829
|
+
"assigned" => {
|
|
830
|
+
"user_id" => "a4c32c68-be91-4e29-b97e-b3b6af886eaa"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
client.website.batch_routing_items(website_id, data);
|
|
835
|
+
```
|
|
836
|
+
</details>
|
|
837
|
+
|
|
838
|
+
* **Batch Inbox Items**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#batch-inbox-items)
|
|
839
|
+
* `client.website.batch_inbox_items(website_id, data)`
|
|
840
|
+
* <details>
|
|
841
|
+
<summary>See Example</summary>
|
|
842
|
+
|
|
843
|
+
```ruby
|
|
844
|
+
website_id = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc"
|
|
845
|
+
|
|
846
|
+
data = {
|
|
847
|
+
"sessions" => [
|
|
848
|
+
"session_19e5240f-0a8d-461e-a661-a3123fc6eec9",
|
|
849
|
+
"session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881"
|
|
850
|
+
],
|
|
851
|
+
"inbox_id" => "d42e8b3b-ea8f-4e79-a9f8-d0e467fc1c31"
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
client.website.batch_inbox_items(website_id, data);
|
|
855
|
+
```
|
|
856
|
+
</details>
|
|
857
|
+
|
|
738
858
|
|
|
739
859
|
* **Website Availability**
|
|
740
|
-
* **Get Website Availability Status
|
|
860
|
+
* **Get Website Availability Status**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-website-availability-status)
|
|
741
861
|
* `client.website.get_website_availability_status(website_id)`
|
|
742
862
|
* <details>
|
|
743
863
|
<summary>See Example</summary>
|
|
@@ -751,7 +871,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
751
871
|
|
|
752
872
|
|
|
753
873
|
* **Website Operator**
|
|
754
|
-
* **List Website Operators
|
|
874
|
+
* **List Website Operators**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-website-operators)
|
|
755
875
|
* `client.website.list_website_operators(website_id)`
|
|
756
876
|
* <details>
|
|
757
877
|
<summary>See Example</summary>
|
|
@@ -763,7 +883,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
763
883
|
```
|
|
764
884
|
</details>
|
|
765
885
|
|
|
766
|
-
* **List Last Active Website Operators
|
|
886
|
+
* **List Last Active Website Operators**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-last-active-website-operators)
|
|
767
887
|
* `client.website.list_last_active_website_operators(website_id)`
|
|
768
888
|
* <details>
|
|
769
889
|
<summary>See Example</summary>
|
|
@@ -777,7 +897,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
777
897
|
|
|
778
898
|
|
|
779
899
|
* **Website Settings**
|
|
780
|
-
* **Get Website Settings
|
|
900
|
+
* **Get Website Settings**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-website-settings)
|
|
781
901
|
* `client.website.get_website_settings(website_id)`
|
|
782
902
|
* <details>
|
|
783
903
|
<summary>See Example</summary>
|
|
@@ -789,7 +909,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
789
909
|
```
|
|
790
910
|
</details>
|
|
791
911
|
|
|
792
|
-
* **Update Website Settings
|
|
912
|
+
* **Update Website Settings**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#update-website-settings)
|
|
793
913
|
* `client.website.update_website_settings(website_id, data)`
|
|
794
914
|
* <details>
|
|
795
915
|
<summary>See Example</summary>
|
|
@@ -833,6 +953,8 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
833
953
|
"ignore_privacy" => false,
|
|
834
954
|
"visitor_compose" => false,
|
|
835
955
|
"file_transfer" => true,
|
|
956
|
+
"overlay_search" => true,
|
|
957
|
+
"overlay_mode" => false,
|
|
836
958
|
"helpdesk_link" => true,
|
|
837
959
|
"helpdesk_only" => false,
|
|
838
960
|
"status_health_dead" => true,
|
|
@@ -869,7 +991,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
869
991
|
|
|
870
992
|
|
|
871
993
|
* **Website Visitors**
|
|
872
|
-
* **Count Visitors
|
|
994
|
+
* **Count Visitors**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#count-visitors)
|
|
873
995
|
* `client.website.count_visitors(website_id)`
|
|
874
996
|
* <details>
|
|
875
997
|
<summary>See Example</summary>
|
|
@@ -881,7 +1003,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
881
1003
|
```
|
|
882
1004
|
</details>
|
|
883
1005
|
|
|
884
|
-
* **List Visitors
|
|
1006
|
+
* **List Visitors**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-visitors)
|
|
885
1007
|
* `client.website.list_visitors(website_id, page_number)`
|
|
886
1008
|
* <details>
|
|
887
1009
|
<summary>See Example</summary>
|
|
@@ -894,7 +1016,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
894
1016
|
```
|
|
895
1017
|
</details>
|
|
896
1018
|
|
|
897
|
-
* **Get Session ID
|
|
1019
|
+
* **Get Session ID**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#get-session-identifier-from-token)
|
|
898
1020
|
* `client.website.get_session_id_by_token(website_id, token)`
|
|
899
1021
|
* <details>
|
|
900
1022
|
<summary>See Example</summary>
|
|
@@ -911,5 +1033,5 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
911
1033
|
### Bucket
|
|
912
1034
|
|
|
913
1035
|
* **Bucket URL**
|
|
914
|
-
* **Generate Bucket URL
|
|
1036
|
+
* **Generate Bucket URL**: [Reference](https://docs.crisp.chat/references/rest-api/v1/#generate-bucket-url)
|
|
915
1037
|
* `client.bucket.generate_bucket_url(data)`
|
data/crisp-api.gemspec
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
require File.expand_path("../lib/crisp-api", __FILE__)
|
|
2
|
+
require "date"
|
|
2
3
|
|
|
3
4
|
Gem::Specification.new do |s|
|
|
4
5
|
s.name = "crisp-api"
|
|
5
|
-
s.version = "1.1.
|
|
6
|
+
s.version = "1.1.14"
|
|
6
7
|
s.date = Date.today
|
|
7
8
|
s.summary = "Crisp API Ruby"
|
|
8
9
|
s.description = "Crisp API Ruby"
|
data/lib/crisp-api.rb
CHANGED
data/lib/resources/website.rb
CHANGED
|
@@ -75,14 +75,38 @@ module Crisp
|
|
|
75
75
|
return @parent.patch(self._url_website(website_id, "/batch/resolve"), data: data)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
def batch_unresolve_items(website_id, data)
|
|
79
|
+
return @parent.patch(self._url_website(website_id, "/batch/unresolve"), data: data)
|
|
80
|
+
end
|
|
81
|
+
|
|
78
82
|
def batch_read_items(website_id, data)
|
|
79
83
|
return @parent.patch(self._url_website(website_id, "/batch/read"), data: data)
|
|
80
84
|
end
|
|
81
85
|
|
|
86
|
+
def batch_unread_items(website_id, data)
|
|
87
|
+
return @parent.patch(self._url_website(website_id, "/batch/unread"), data: data)
|
|
88
|
+
end
|
|
89
|
+
|
|
82
90
|
def batch_remove_items(website_id, data)
|
|
83
91
|
return @parent.patch(self._url_website(website_id, "/batch/remove"), data: data)
|
|
84
92
|
end
|
|
85
93
|
|
|
94
|
+
def batch_report_items(website_id, data)
|
|
95
|
+
return @parent.post(self._url_website(website_id, "/batch/report"), data: data)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def batch_block_items(website_id, data)
|
|
99
|
+
return @parent.patch(self._url_website(website_id, "/batch/block"), data: data)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def batch_routing_items(website_id, data)
|
|
103
|
+
return @parent.patch(self._url_website(website_id, "/batch/routing"), data: data)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def batch_inbox_items(website_id, data)
|
|
107
|
+
return @parent.patch(self._url_website(website_id, "/batch/inbox"), data: data)
|
|
108
|
+
end
|
|
109
|
+
|
|
86
110
|
def get_website_availability_status(website_id)
|
|
87
111
|
return @parent.get(self._url_website(website_id, "/availability/status"))
|
|
88
112
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crisp-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Valerian Saliou
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -46,7 +46,7 @@ homepage: https://github.com/crisp-im/ruby-crisp-api
|
|
|
46
46
|
licenses:
|
|
47
47
|
- MIT
|
|
48
48
|
metadata: {}
|
|
49
|
-
post_install_message:
|
|
49
|
+
post_install_message:
|
|
50
50
|
rdoc_options: []
|
|
51
51
|
require_paths:
|
|
52
52
|
- lib
|
|
@@ -61,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
requirements: []
|
|
64
|
-
rubygems_version: 3.4.
|
|
65
|
-
signing_key:
|
|
64
|
+
rubygems_version: 3.4.19
|
|
65
|
+
signing_key:
|
|
66
66
|
specification_version: 4
|
|
67
67
|
summary: Crisp API Ruby
|
|
68
68
|
test_files: []
|