crisp-api 1.1.5 → 1.1.8
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/publish.yml +37 -0
- data/EXAMPLES.md +577 -0
- data/LICENSE +1 -1
- data/README.md +808 -72
- data/crisp-api.gemspec +1 -1
- data/examples/website_send_message_in_conversation.rb +1 -1
- data/lib/crisp-api.rb +1 -1
- data/lib/resources/website.rb +4 -0
- metadata +8 -6
data/crisp-api.gemspec
CHANGED
@@ -23,7 +23,7 @@ data = client.website.send_message_in_conversation(
|
|
23
23
|
|
24
24
|
{
|
25
25
|
"type" => "text",
|
26
|
-
"content" => "This message was sent from
|
26
|
+
"content" => "This message was sent from ruby-crisp-api! :)",
|
27
27
|
"from" => "operator",
|
28
28
|
"origin" => "chat"
|
29
29
|
}
|
data/lib/crisp-api.rb
CHANGED
data/lib/resources/website.rb
CHANGED
@@ -272,6 +272,10 @@ module Crisp
|
|
272
272
|
return @parent.put(self._url_people("data", website_id, people_id), data: data)
|
273
273
|
end
|
274
274
|
|
275
|
+
def update_people_data(website_id, people_id, data)
|
276
|
+
return @parent.patch(self._url_people("data", website_id, people_id), data: data)
|
277
|
+
end
|
278
|
+
|
275
279
|
def get_people_subscription_status(website_id, people_id)
|
276
280
|
return @parent.get(self._url_people("subscription", website_id, people_id))
|
277
281
|
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.8
|
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: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -30,7 +30,9 @@ executables: []
|
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
+
- ".github/workflows/publish.yml"
|
33
34
|
- ".gitignore"
|
35
|
+
- EXAMPLES.md
|
34
36
|
- Gemfile
|
35
37
|
- LICENSE
|
36
38
|
- README.md
|
@@ -44,7 +46,7 @@ homepage: https://github.com/crisp-im/ruby-crisp-api
|
|
44
46
|
licenses:
|
45
47
|
- MIT
|
46
48
|
metadata: {}
|
47
|
-
post_install_message:
|
49
|
+
post_install_message:
|
48
50
|
rdoc_options: []
|
49
51
|
require_paths:
|
50
52
|
- lib
|
@@ -59,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
61
|
- !ruby/object:Gem::Version
|
60
62
|
version: '0'
|
61
63
|
requirements: []
|
62
|
-
rubygems_version: 3.
|
63
|
-
signing_key:
|
64
|
+
rubygems_version: 3.1.6
|
65
|
+
signing_key:
|
64
66
|
specification_version: 4
|
65
67
|
summary: Crisp API Ruby
|
66
68
|
test_files: []
|