qismo 0.8.4 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0eb5507d6cf58078ced31764f32c26888d7ef0004ff38a41c4b9213f2327844e
4
- data.tar.gz: 2a8441a6e40bc565cbaa9a93a0e8defa150f9482c6c0a6fb2879a1387aa580d1
3
+ metadata.gz: 39920707bba81e3df5853731180b02e10d694a4cbf793c6f64c7bfe169a6a9c2
4
+ data.tar.gz: 4871ab5d1557e8ccd6c249354b4117da16779b5ecdcafb906641597a8ca39358
5
5
  SHA512:
6
- metadata.gz: 378107cd1698b521a16a871680571926b1fa0c5d4f028f595994bfa77ce90b10ebdd56ed7db51fa5dc5961d390cb6da81f535479b2410bf6c801335f23f95769
7
- data.tar.gz: 97938e4566a11e9611fc3c0430950258c140dcbc3da18f965c6875ea4ce80ca57293134fd87198b68ce6ec6cc5decc71a74460d1c985a806e11390c5cf0af0e4
6
+ metadata.gz: 448f4ba83da3cc5adefebe4b893b1372f2b43e582fa7b3ee8cd6d1d4f8ff2e07fc43a0a27de438c80b30a2dc7f65e2e7af718ad61757c33111b22ff88d5c4af4
7
+ data.tar.gz: 824b127bfbaad9e0f380f1765011cd76b626e7a957aa52a3845a25789a68860d23af2de435b3a543dab9428be052ffc49ada6710e088d30c6a6e998a774bf641
data/lib/qismo/api.rb CHANGED
@@ -19,7 +19,7 @@ module Qismo
19
19
  raise Qismo::NotFoundError.new("Room not found", status_code: 404, response_body: body.to_json)
20
20
  end
21
21
 
22
- body
22
+ body.data.customer_room
23
23
  end
24
24
 
25
25
  def room_tags(room_id)
@@ -259,7 +259,8 @@ module Qismo
259
259
  end
260
260
 
261
261
  def initiate_widget_chat(user_id, name, **opt)
262
- post("/api/v2/qiscus/initiate_chat", opt.merge(user_id: user_id, name: name)).data.customer_room
262
+ opt = opt.merge(app_id: app_id, user_id: user_id, name: name)
263
+ post("/api/v2/qiscus/initiate_chat", opt).data.customer_room
263
264
  end
264
265
 
265
266
  def send_message_to_custom_channel(identifier_key, user_id, name, **opt)
data/lib/qismo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qismo
4
- VERSION = "0.8.4"
4
+ VERSION = "0.8.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qismo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiscus Integration