qismo 0.8.1 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qismo/api.rb +15 -0
- data/lib/qismo/client.rb +4 -0
- data/lib/qismo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432eecb4742527b3f65eae6e3573ed8ca122d5b9a73f27820aaa4fb7b7dbf7b3
|
4
|
+
data.tar.gz: ddf9cf75dd7d4ed5edfe0d5b1b6c51f88f6bc2e858b5fd40b16983df56cb9ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41146b0199a762cc4668d11c4a59c24cc4c67d1121a412fcec4540e1466f6e5e8251f56920af99d5a56aa443299c54c2b1cb03ed78a947c5a531f386df963e34
|
7
|
+
data.tar.gz: a6dba9bd3173c934f3d8b6a91995d14fa2c8a0b910d686503874e5db2c3ac3a9070512ffe2827cb07cd548185d94aeaa62dbd5fa75add89e0e8e4e4866a73ddc
|
data/Gemfile.lock
CHANGED
data/lib/qismo/api.rb
CHANGED
@@ -22,6 +22,19 @@ module Qismo
|
|
22
22
|
body
|
23
23
|
end
|
24
24
|
|
25
|
+
def room_tags(room_id)
|
26
|
+
get("/api/v2/room_tags/#{room_id}").data
|
27
|
+
end
|
28
|
+
|
29
|
+
def add_room_tag(room_id, tag)
|
30
|
+
post("/api/v2/room_tags/#{room_id}", tag: tag).data
|
31
|
+
end
|
32
|
+
|
33
|
+
def delete_room_tag(room_id, tag_id)
|
34
|
+
delete("/api/v2/room_tags/#{room_id}/#{tag_id}")
|
35
|
+
true
|
36
|
+
end
|
37
|
+
|
25
38
|
def room_additional_info(room_id)
|
26
39
|
body = get("/api/v1/qiscus/room/#{room_id}/user_info")
|
27
40
|
body.data.extras.user_properties
|
@@ -69,6 +82,8 @@ module Qismo
|
|
69
82
|
body.data.service
|
70
83
|
end
|
71
84
|
|
85
|
+
alias_method :resolve_room, :resolve
|
86
|
+
|
72
87
|
def allocate_agent(source, **opt)
|
73
88
|
body = post("/api/v1/admin/service/allocate_agent", opt.merge(source: source))
|
74
89
|
body.data.agent
|
data/lib/qismo/client.rb
CHANGED
data/lib/qismo/version.rb
CHANGED