qismo 0.17.10 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +47 -20
- data/lib/qismo/api.rb +26 -43
- data/lib/qismo/version.rb +1 -1
- data/qismo.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee4468cc8899fd8ff50f46e1a3b03a486d9535c58e450474624dfa46c9d7888d
|
4
|
+
data.tar.gz: 15d203e201451848742fdbfa7e67e26b2efb434f8ebeb64fc8af48c4dbeda486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a01de9e692e3bc0836653702f553049bacada7fb955a9888425dc09dcee79fd99d0f4c3e79da4e32c9c0f8f50919e12ed8b1d2646599a8368cc86bf56e766e
|
7
|
+
data.tar.gz: 856f96e582d66c263c4caef6c71a27d48a894acfa8b51eed4e3279f09bab6c94a9a33219a3c58143359c7009a189bdea9d07f588010b3b162d8f19d9ab8ff9ae
|
data/README.md
CHANGED
@@ -16,15 +16,14 @@ bundle add qismo
|
|
16
16
|
client = Qismo::Client.new(app_id: "QISCUS_APP_ID", secret_key: "QISCUS_SECRET_KEY")
|
17
17
|
|
18
18
|
params = {
|
19
|
-
channel: { channel_id: 12345, source: "wa" },
|
19
|
+
channel: [{ channel_id: 12345, source: "wa" }],
|
20
20
|
status: "unresolved",
|
21
21
|
serve_status: "served",
|
22
22
|
is_handled_by_bot: true,
|
23
23
|
}
|
24
24
|
|
25
|
-
|
25
|
+
pp client.list_rooms(params)
|
26
26
|
|
27
|
-
puts rooms
|
28
27
|
# [
|
29
28
|
# #<Qismo::Objects::CustomerRoom
|
30
29
|
# channel_id=126392
|
@@ -76,11 +75,11 @@ client.logger = Logger.new($stdout)
|
|
76
75
|
For advanced logging, you can also use laverage ActiveSupport instrumentation. If you are using Rails, you can use ActiveSupport without installing the gem by your self.
|
77
76
|
|
78
77
|
```ruby
|
79
|
-
ActiveSupport::Notifications.subscribe('start_request.http')
|
80
|
-
pp :
|
78
|
+
ActiveSupport::Notifications.subscribe('start_request.http') do |name, start, finish, id, payload|
|
79
|
+
pp name: name, start: start.to_f, finish: finish.to_f, id: id, payload: payload
|
81
80
|
end
|
82
81
|
|
83
|
-
client.instrumentation = { instrumenter: ActiveSupport::Notifications.instrumenter }
|
82
|
+
client.instrumentation = { instrumenter: ActiveSupport::Notifications.instrumenter }
|
84
83
|
```
|
85
84
|
|
86
85
|
You can also customize the instrumentation's namespace by using this configuration
|
@@ -124,12 +123,14 @@ client.proxy = ["proxy-hostname.local", 8080, "username", "password"]
|
|
124
123
|
Some of the Qiscus Omnichannel API will return list of data with pagination. To handle the pagination, you can to that like this example:
|
125
124
|
|
126
125
|
```ruby
|
126
|
+
|
127
127
|
all_rooms = []
|
128
|
-
|
128
|
+
|
129
|
+
rooms = client.list_rooms
|
129
130
|
all_rooms.append(rooms)
|
130
131
|
|
131
|
-
while rooms.
|
132
|
-
rooms = rooms.next_page
|
132
|
+
while rooms.next_page.present?
|
133
|
+
rooms = client.list_rooms(cursor_after: rooms.next_page)
|
133
134
|
all_rooms.append(rooms)
|
134
135
|
end
|
135
136
|
```
|
@@ -140,11 +141,35 @@ Qismo ruby raise error while getting non successful http code from Qiscus Omnich
|
|
140
141
|
|
141
142
|
```ruby
|
142
143
|
begin
|
143
|
-
client.
|
144
|
-
rescue Qismo::
|
145
|
-
e.message
|
146
|
-
e.status_code
|
147
|
-
e.response_body
|
144
|
+
client.list_rooms
|
145
|
+
rescue Qismo::BadRequestError => e
|
146
|
+
puts e.message
|
147
|
+
puts e.status_code
|
148
|
+
puts e.response_body
|
149
|
+
rescue Qismo::UnauthorizedError => e
|
150
|
+
puts e.message
|
151
|
+
puts e.status_code
|
152
|
+
puts e.response_body
|
153
|
+
rescue Qismo::PaymentRequiredError => e
|
154
|
+
puts e.message
|
155
|
+
puts e.status_code
|
156
|
+
puts e.response_body
|
157
|
+
rescue Qismo::ForbiddenError => e
|
158
|
+
puts e.message
|
159
|
+
puts e.status_code
|
160
|
+
puts e.response_body
|
161
|
+
rescue Qismo::NotFoundError => e
|
162
|
+
puts e.message
|
163
|
+
puts e.status_code
|
164
|
+
puts e.response_body
|
165
|
+
rescue Qismo::TooManyRequestError => e
|
166
|
+
puts e.message
|
167
|
+
puts e.status_code
|
168
|
+
puts e.response_body
|
169
|
+
rescue Qismo::InternalServerError => e
|
170
|
+
puts e.message
|
171
|
+
puts e.status_code
|
172
|
+
puts e.response_body
|
148
173
|
end
|
149
174
|
```
|
150
175
|
|
@@ -161,9 +186,10 @@ class QiscusWebhooksController < ApplicationController
|
|
161
186
|
|
162
187
|
# Do any action you want using payload that has been objectified
|
163
188
|
if webhook.candidate_agent.present?
|
164
|
-
Qismo.
|
165
|
-
|
166
|
-
webhook.
|
189
|
+
client = Qismo::Client.new(app_id: "", secret_key: "")
|
190
|
+
client.assign_agent(
|
191
|
+
room_id: webhook.room_id,
|
192
|
+
agent_id: webhook.candidate_agent.id
|
167
193
|
)
|
168
194
|
end
|
169
195
|
end
|
@@ -199,7 +225,7 @@ class QiscusWebhooksController < ApplicationController
|
|
199
225
|
# Fetch customer from room participants
|
200
226
|
customer = webhook.payload.room.participants.find { |participant| participant.email.start_with?("twitter_customer_") }
|
201
227
|
if customer.present?
|
202
|
-
twitter_rest_client.create_direct_message(
|
228
|
+
twitter_rest_client.create_direct_message(customer.email, webhook.payload.message.text)
|
203
229
|
end
|
204
230
|
end
|
205
231
|
|
@@ -224,8 +250,9 @@ class QiscusWebhooksController < ApplicationController
|
|
224
250
|
bot_message = response.query_result.fulfillment_text
|
225
251
|
|
226
252
|
# Send message to Qismo room
|
227
|
-
Qismo.
|
228
|
-
|
253
|
+
client = Qismo::Client.new(app_id: "", secret_key: "")
|
254
|
+
client.send_bot_message(
|
255
|
+
room_id: webhook.payload.room.id,
|
229
256
|
message: bot_message
|
230
257
|
)
|
231
258
|
end
|
data/lib/qismo/api.rb
CHANGED
@@ -32,7 +32,7 @@ module Qismo
|
|
32
32
|
# @param is_handled_by_bot [TrueClass,FalseClass]
|
33
33
|
# Filter rooms by chatbot activation status in room
|
34
34
|
# @return [Qismo::Collection<Qismo::CustomerRoom>]
|
35
|
-
def
|
35
|
+
def list_rooms(channels: nil, status: nil, serve_status: nil, name: nil, limit: 50, tag_ids: nil, user_ids: nil, order: "desc", cursor_after: nil, cursor_before: nil, is_handled_by_bot: nil)
|
36
36
|
body = post("/api/v2/customer_rooms", {
|
37
37
|
channels: channels,
|
38
38
|
status: status,
|
@@ -58,7 +58,7 @@ module Qismo
|
|
58
58
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#8c803377-eea2-4879-9d66-8906d9f41275
|
59
59
|
# @param room_id [Integer]
|
60
60
|
# @return [Qismo::Objects::CustomerRoom]
|
61
|
-
def
|
61
|
+
def get_room(room_id:)
|
62
62
|
body = get("/api/v2/customer_rooms/#{room_id}")
|
63
63
|
if body.data.customer_room.nil?
|
64
64
|
raise Qismo::NotFoundError.new("Room not found", status_code: 404, response_body: body.to_json)
|
@@ -72,7 +72,7 @@ module Qismo
|
|
72
72
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#d40b54a7-2b37-4afc-b474-62593001274e
|
73
73
|
# @param room_id [Integer]
|
74
74
|
# @return [Qismo::Collection<Qismo::Objects::Tag>]
|
75
|
-
def
|
75
|
+
def list_room_tags(room_id:)
|
76
76
|
Qismo::Collection.new(
|
77
77
|
Qismo::Objects::Tag.from_array(
|
78
78
|
get("/api/v2/room_tags/#{room_id}").data
|
@@ -109,7 +109,7 @@ module Qismo
|
|
109
109
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#88c2287b-21af-4afd-b495-aaaa2818c381
|
110
110
|
# @param room_id [Integer]
|
111
111
|
# @return [Array<Qismo::Objects::RoomAdditionalInfo>]
|
112
|
-
def
|
112
|
+
def list_room_info(room_id:)
|
113
113
|
Qismo::Objects::RoomAdditionalInfo.from_array(
|
114
114
|
get("/api/v1/qiscus/room/#{room_id}/user_info").data.extras.user_properties
|
115
115
|
)
|
@@ -117,8 +117,6 @@ module Qismo
|
|
117
117
|
Qismo::Objects::RoomAdditionalInfo.from_array([])
|
118
118
|
end
|
119
119
|
|
120
|
-
alias_method :room_info, :room_additional_info
|
121
|
-
|
122
120
|
# Set room additional info
|
123
121
|
#
|
124
122
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#2b968e9e-2a76-4569-8763-f883e11dc5a7
|
@@ -127,7 +125,7 @@ module Qismo
|
|
127
125
|
# @param info [Array<Hash>]
|
128
126
|
# Key value pair of additional info. Ex: [{ key: "Ticket Link", value: "https://ticket.com" }]
|
129
127
|
# @return [Array<Qismo::Objects::RoomAdditionalInfo>]
|
130
|
-
def
|
128
|
+
def create_room_info(room_id:, info:)
|
131
129
|
Qismo::Objects::RoomAdditionalInfo.from_array(
|
132
130
|
post(
|
133
131
|
"/api/v1/qiscus/room/#{room_id}/user_info",
|
@@ -136,31 +134,25 @@ module Qismo
|
|
136
134
|
)
|
137
135
|
end
|
138
136
|
|
139
|
-
alias_method :set_room_info, :set_room_additional_info
|
140
|
-
alias_method :create_room_info, :set_room_additional_info
|
141
|
-
alias_method :create_room_additional_info, :set_room_additional_info
|
142
|
-
|
143
137
|
# Update room additional info
|
144
138
|
#
|
145
139
|
# @param room_id [Integer]
|
146
140
|
# @param info [Array<Hash>]
|
147
141
|
# Key value pair of additional info. Ex: [{ key: "Ticket Link", value: "https://ticket.com" }]
|
148
142
|
# @return [Array<Qismo::Objects::RoomAdditionalInfo>]
|
149
|
-
def
|
143
|
+
def update_room_info(room_id:, info:)
|
150
144
|
old_info = room_additional_info(room_id).as_json
|
151
145
|
new_info = (info.as_json + old_info).uniq { |h| h.values_at("key") }
|
152
146
|
set_room_additional_info(room_id: room_id, info: new_info)
|
153
147
|
end
|
154
148
|
|
155
|
-
alias_method :update_room_info, :update_room_additional_info
|
156
|
-
|
157
149
|
# List broadcast history inside room
|
158
150
|
#
|
159
151
|
# @param room_id [Integer]
|
160
152
|
# @param page [Integer]
|
161
153
|
# @param limit [Integer]
|
162
154
|
# @return [Qismo::Collection<Qismo::Objects::BroadcastLog>]
|
163
|
-
def
|
155
|
+
def list_room_broadcasts(room_id:, page: 1, limit: 25)
|
164
156
|
body = get("/api/v2/customer_rooms/#{room_id}/broadcast_history", {
|
165
157
|
page: page,
|
166
158
|
limit: limit
|
@@ -243,8 +235,6 @@ module Qismo
|
|
243
235
|
)
|
244
236
|
end
|
245
237
|
|
246
|
-
alias_method :resolve, :resolve_room
|
247
|
-
|
248
238
|
# Get agent that can be assigned to room
|
249
239
|
#
|
250
240
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#a62432c6-1aba-4e2b-be9a-2f7151db9119
|
@@ -294,7 +284,7 @@ module Qismo
|
|
294
284
|
# @param cursor_after [String]
|
295
285
|
# @param cursor_before [String]
|
296
286
|
# @return [Qismo::Collection<Qismo::Objects::User>]
|
297
|
-
def
|
287
|
+
def list_other_agents(room_id:, search: nil, limit: 15, cursor_after: nil, cursor_before: nil)
|
298
288
|
body = get("/api/v2/admin/service/other_agents", {
|
299
289
|
room_id: room_id.to_s,
|
300
290
|
search: search,
|
@@ -320,7 +310,7 @@ module Qismo
|
|
320
310
|
# @param cursor_after [String]
|
321
311
|
# @param cursor_before [String]
|
322
312
|
# @return [Qismo::Collection<Qismo::Objects::User>]
|
323
|
-
def
|
313
|
+
def list_available_agents(room_id:, is_available_in_room: true, search: nil, limit: 15, cursor_after: nil, cursor_before: nil)
|
324
314
|
body = get("/api/v2/admin/service/available_agents", {
|
325
315
|
room_id: room_id.to_s,
|
326
316
|
is_available_in_room: is_available_in_room,
|
@@ -340,7 +330,7 @@ module Qismo
|
|
340
330
|
# Get new session webhook config
|
341
331
|
#
|
342
332
|
# @return [Qismo::Objects::Webhook]
|
343
|
-
def
|
333
|
+
def get_new_session_webhook
|
344
334
|
config = get("/api/v2/app/config/new_session_webhook").data.configs
|
345
335
|
Qismo::Objects::Webhook.new(
|
346
336
|
enabled: config.is_new_session_webhook_enabled,
|
@@ -353,7 +343,7 @@ module Qismo
|
|
353
343
|
# @param url [String]
|
354
344
|
# @param enabled [TrueClass,FalseClass]
|
355
345
|
# @return [Qismo::Objects::Webhook]
|
356
|
-
def
|
346
|
+
def create_new_session_webhook(url:, enabled: true)
|
357
347
|
config = post("/api/v2/app/config/new_session_webhook", url: url, enabled: enabled).data.configs
|
358
348
|
Qismo::Objects::Webhook.new(
|
359
349
|
enabled: config.is_new_session_webhook_enabled,
|
@@ -364,7 +354,7 @@ module Qismo
|
|
364
354
|
# Get auth webhook config
|
365
355
|
#
|
366
356
|
# @return [Qismo::Objects::Webhook]
|
367
|
-
def
|
357
|
+
def get_auth_webhook
|
368
358
|
config = get("/api/v2/app/config/auth_webhook").data.configs
|
369
359
|
Qismo::Objects::Webhook.new(
|
370
360
|
enabled: config.is_auth_webhook_enabled,
|
@@ -377,7 +367,7 @@ module Qismo
|
|
377
367
|
# @param url [String]
|
378
368
|
# @param enabled [TrueClass, FalseClass]
|
379
369
|
# @return [Qismo::Objects::Webhook]
|
380
|
-
def
|
370
|
+
def create_auth_webhook(url:, enabled: true)
|
381
371
|
config = post("/api/v2/app/config/auth_webhook", url: url, enabled: enabled).data.configs
|
382
372
|
Qismo::Objects::Webhook.new(
|
383
373
|
enabled: config.is_auth_webhook_enabled,
|
@@ -388,7 +378,7 @@ module Qismo
|
|
388
378
|
# Get resolve webhook config
|
389
379
|
#
|
390
380
|
# @return [Qismo::Objects::Webhook]
|
391
|
-
def
|
381
|
+
def get_resolve_webhook
|
392
382
|
config = get("/api/v1/app/webhook/mark_as_resolved").data
|
393
383
|
Qismo::Objects::Webhook.new(
|
394
384
|
enabled: config.is_mark_as_resolved_webhook_enabled,
|
@@ -401,7 +391,7 @@ module Qismo
|
|
401
391
|
# @param url [String]
|
402
392
|
# @param options [Hash]
|
403
393
|
# @return [Qismo::Objects::Webhook]
|
404
|
-
def
|
394
|
+
def create_resolve_webhook(url:, enabled: true)
|
405
395
|
config = post("/api/v1/app/webhook/mark_as_resolved", webhook_url: url, is_webhook_enabled: enabled).data
|
406
396
|
Qismo::Objects::Webhook.new(
|
407
397
|
enabled: config.is_mark_as_resolved_webhook_enabled,
|
@@ -414,7 +404,7 @@ module Qismo
|
|
414
404
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#849205ca-00d9-4356-9fdd-f05bff777b4e
|
415
405
|
# @param options [Hash]
|
416
406
|
# @return [Qismo::Collection<Qismo::Objects::User>]
|
417
|
-
def
|
407
|
+
def list_agents(page: 1, limit: 10, search: nil, scope: nil)
|
418
408
|
body = get("/api/v2/admin/agents", {
|
419
409
|
page: page,
|
420
410
|
limit: limit,
|
@@ -436,7 +426,7 @@ module Qismo
|
|
436
426
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#3db6c8c8-8ffe-4a88-b630-41f9d5b62298
|
437
427
|
# @param agent_ids [Array<Integer>]
|
438
428
|
# @return [Qismo::Collection<Qismo::Objects::User>]
|
439
|
-
def
|
429
|
+
def list_agents_by_ids(agent_ids:)
|
440
430
|
Qismo::Collection.new(
|
441
431
|
Qismo::Objects::User.from_array(get("/api/v1/admin/agents/get_by_ids", {"ids[]": agent_ids}).data)
|
442
432
|
)
|
@@ -455,7 +445,7 @@ module Qismo
|
|
455
445
|
# @param sort [String]
|
456
446
|
# Sort result by descending or ascending
|
457
447
|
# @return [Qismo::Collection<Qismo::Objects::User>]
|
458
|
-
def
|
448
|
+
def list_agents_by_divisions(division_ids, page: 1, limit: 10, is_available: nil, sort: "asc")
|
459
449
|
body = get("/api/v2/admin/agents/by_division", {
|
460
450
|
"division_ids[]": division_ids,
|
461
451
|
page: page,
|
@@ -476,7 +466,7 @@ module Qismo
|
|
476
466
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#c6184a6b-ba4d-4f3e-a4da-c6d0fa4597af
|
477
467
|
# @param agent_id [Integer]
|
478
468
|
# @return [Qismo::Objects::User]
|
479
|
-
def
|
469
|
+
def get_agent(agent_id:)
|
480
470
|
Qismo::Objects::User.new(get("/api/v2/admin/agent/#{agent_id}").data.agent)
|
481
471
|
end
|
482
472
|
|
@@ -484,7 +474,7 @@ module Qismo
|
|
484
474
|
#
|
485
475
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#6f3f0cb0-a391-4945-b01a-95ce81138913
|
486
476
|
# @return [Qismo::Objects::OfficeHour]
|
487
|
-
def
|
477
|
+
def get_office_hours
|
488
478
|
Qismo::Objects::OfficeHour.new(
|
489
479
|
get("/api/v1/admin/office_hours").data
|
490
480
|
)
|
@@ -500,7 +490,7 @@ module Qismo
|
|
500
490
|
# @param approved [TrueClass,FalseClass]
|
501
491
|
# Filter template by approval status
|
502
492
|
# @return [Qismo::Collection<Qismo::Objects::HsmTemplate>]
|
503
|
-
def
|
493
|
+
def list_wa_broadcast_templates(page: 1, limit: 10, approved: nil)
|
504
494
|
body = get("/api/v3/admin/hsm", {
|
505
495
|
page: page,
|
506
496
|
limit: limit,
|
@@ -514,13 +504,10 @@ module Qismo
|
|
514
504
|
)
|
515
505
|
end
|
516
506
|
|
517
|
-
alias_method :wa_message_templates, :wa_broadcast_templates
|
518
|
-
alias_method :wa_outbound_templates, :wa_broadcast_templates
|
519
|
-
|
520
507
|
# Get Whatsapp channel credit info
|
521
508
|
#
|
522
509
|
# @return [Qismo::Objects::WaCreditInfo]
|
523
|
-
def
|
510
|
+
def get_wa_credit
|
524
511
|
Qismo::Objects::WaCreditInfo.new(
|
525
512
|
get("/api/v2/admin/wa_pricing/balance").data
|
526
513
|
)
|
@@ -632,8 +619,6 @@ module Qismo
|
|
632
619
|
)
|
633
620
|
end
|
634
621
|
|
635
|
-
alias_method :create_wa_broadcast, :send_wa_broadcast
|
636
|
-
|
637
622
|
# List WA broadcast jobs
|
638
623
|
#
|
639
624
|
# @param page [Integer]
|
@@ -642,7 +627,7 @@ module Qismo
|
|
642
627
|
# @param cursor_before [Integer]
|
643
628
|
# @param name [String]
|
644
629
|
# @return [Qismo::Collection<Qismo::Objects::BroadcastJob>]
|
645
|
-
def
|
630
|
+
def list_wa_broadcast_jobs(limit: 10, cursor_after: nil, cursor_before: nil, name: nil)
|
646
631
|
body = get("/api/v2/admin/broadcast_jobs", {
|
647
632
|
limit: limit,
|
648
633
|
cursor_after: cursor_after,
|
@@ -662,7 +647,7 @@ module Qismo
|
|
662
647
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#ed0806c8-2e4a-4ea4-8acb-45c84c63c2da
|
663
648
|
# @param broadcast_job_id [Integer]
|
664
649
|
# @return [Qismo::Objects::BroadcastJob]
|
665
|
-
def
|
650
|
+
def get_wa_broadcast_job(broadcast_job_id:)
|
666
651
|
Qismo::Objects::BroadcastJob.new(
|
667
652
|
get("/api/v2/admin/broadcast_jobs/#{broadcast_job_id}").data.broadcast_job
|
668
653
|
)
|
@@ -674,7 +659,7 @@ module Qismo
|
|
674
659
|
# @param broadcast_job_id [Integer]
|
675
660
|
# @param options [Hash]
|
676
661
|
# @return [Qismo::Collection<Qismo::Objects::BroadcastLog>]
|
677
|
-
def
|
662
|
+
def list_wa_broadcast_logs(broadcast_job_id:, page: 1, limit: 10)
|
678
663
|
body = get("/api/v2/admin/broadcast_logs/#{broadcast_job_id}", {
|
679
664
|
page: page,
|
680
665
|
limit: limit
|
@@ -819,8 +804,6 @@ module Qismo
|
|
819
804
|
Qismo::Objects::CustomerRoom.new(post("/api/v2/qiscus/initiate_chat", options).data.customer_room)
|
820
805
|
end
|
821
806
|
|
822
|
-
alias_method :initiate_chat, :initiate_widget_chat
|
823
|
-
|
824
807
|
# Send messsage to custom channel
|
825
808
|
#
|
826
809
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#aee54b21-68f1-4d31-9d81-d3c73b3e125b
|
@@ -861,7 +844,7 @@ module Qismo
|
|
861
844
|
#
|
862
845
|
# @see https://documenter.getpostman.com/view/8259884/TVsuCSeT#aee54b21-68f1-4d31-9d81-d3c73b3e125b
|
863
846
|
# @return [Qismo::Objects::ListChannelsResponse]
|
864
|
-
def
|
847
|
+
def list_channels
|
865
848
|
Qismo::Objects::ListChannelsResponse.new(
|
866
849
|
get("/api/v2/channels").data
|
867
850
|
)
|
data/lib/qismo/version.rb
CHANGED
data/qismo.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.metadata = {
|
19
19
|
"source_code_uri" => "https://bitbucket.org/qiscus/qismo-rb/src/v#{spec.version}",
|
20
|
-
"documentation_uri" => "https://www.rubydoc.info/gems/qismo
|
20
|
+
"documentation_uri" => "https://www.rubydoc.info/gems/qismo",
|
21
21
|
"homepage_uri" => spec.homepage,
|
22
22
|
"rubygems_mfa_required" => "true"
|
23
23
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qismo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qiscus Integration
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -120,8 +120,8 @@ homepage: https://bitbucket.org/qiscus/qismo-rb
|
|
120
120
|
licenses:
|
121
121
|
- MIT
|
122
122
|
metadata:
|
123
|
-
source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.
|
124
|
-
documentation_uri: https://www.rubydoc.info/gems/qismo
|
123
|
+
source_code_uri: https://bitbucket.org/qiscus/qismo-rb/src/v0.18.0
|
124
|
+
documentation_uri: https://www.rubydoc.info/gems/qismo
|
125
125
|
homepage_uri: https://bitbucket.org/qiscus/qismo-rb
|
126
126
|
rubygems_mfa_required: 'true'
|
127
127
|
post_install_message:
|