crisp_client 0.2.0 → 0.2.1
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/README.md +9 -2
- data/crisp_client.gemspec +1 -1
- data/lib/crisp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 426656a67b63a73e2fbc15c28c35ee244983df3e
|
4
|
+
data.tar.gz: 10879af766740e19f775569636327c91c6efbc1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e7a17a0ef57fc87a87b4dc5586d8025a4ace11348064fb21f0e2b1cfe31ec1cdc3669a9c4e9c1a4deb8b5eb4e7aa494c2b63e989eeb7b7a9b70e68a16f055c6
|
7
|
+
data.tar.gz: cce3e3343dd4f58f1c597670f792c057249e9bb296b9d66e8bd24bbff38bc66216cd0e6484879647fa5f16ad7cc94a6cb7b8f0ba28c829d96c61314db137cd8e
|
data/README.md
CHANGED
@@ -5,7 +5,8 @@
|
|
5
5
|
## Usage
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
cc = CrispClient::Base.new(email: ENV['CRISP_EMAIL'], password: ENV['CRISP_PASSWORD'])
|
8
|
+
cc = CrispClient::Base.new(email: ENV['CRISP_EMAIL'], password: ENV['CRISP_PASSWORD'])
|
9
|
+
cc.authenticate
|
9
10
|
#=> {"Authorization"=>"Basic MmjjiyAjSLuMmjjiyAjSLuMmjjiyAjSLuMmjjiyAjSLuMmjjiyAiaiIyMGUyYTdjYzA="}
|
10
11
|
|
11
12
|
website_id = cc.find_website_id_by_name(website_name: "Touts")
|
@@ -17,12 +18,18 @@ cc.get_people_statistics(website_id: website_id)
|
|
17
18
|
person_id = cc.add_new_people_profile(website_id: website_id, nickname: "Flavio Wuensche", email: "flavio@touts.com.br")
|
18
19
|
#=> "cd71e876-62e4-17hs-b6c2-570f44b3d83b"
|
19
20
|
cc.add_new_people_profile(website_id: website_id, nickname: "Flavio Wuensche", email: "flavio@touts.com.br")
|
20
|
-
|
21
|
+
#=> RuntimeError: people_exists
|
21
22
|
|
22
23
|
cc.remove_people_profile(website_id: website_id, people_id: person_id)
|
23
24
|
#=> "deleted"
|
24
25
|
cc.remove_people_profile(website_id: website_id, people_id: person_id)
|
25
26
|
#=> "people_not_found"
|
27
|
+
|
28
|
+
cc.list_people_profiles(website_id: website_id)
|
29
|
+
#=> will return the first 20 users by default
|
30
|
+
cc.list_people_profiles(website_id: website_id, page_number: 2)
|
31
|
+
#=> will return the next 20 users
|
32
|
+
# Other parameters you can use include: sort_field, sort_order, search_operator, search_filter
|
26
33
|
```
|
27
34
|
|
28
35
|
## Installation
|
data/crisp_client.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["f.wuensche@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Ruby Client for Crisp API}
|
13
|
-
spec.description = %q{
|
13
|
+
spec.description = %q{Appreciate ruby syntactic sugar while interacting with Crisp API}
|
14
14
|
spec.homepage = "https://github.com/fwuensche/crisp_client"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
data/lib/crisp_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crisp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flavio Wuensche
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description: Appreciate ruby syntactic sugar while interacting with Crisp API
|
56
56
|
email:
|
57
57
|
- f.wuensche@gmail.com
|
58
58
|
executables: []
|