help_scout 0.2.1 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/help_scout/version.rb +1 -1
- data/lib/help_scout.rb +15 -0
- 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: 142d4c3e8144de3dd310e059ae82b7eb2c0cf15e
|
4
|
+
data.tar.gz: 69f405e9219352846ed778332dfe27eab9861bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12967402db6b44675efd8e169aa6ac9ec4dce35d557584d811e0613780a64de89f4c6458cad2fd9a181faeef5954213cd81dadf331640a074292da2623ffac8
|
7
|
+
data.tar.gz: d505f18eed5c65d521e2d3c557b7563ca3ea84263247000133fef9c83023182e5dcfee6e7f9eb5895ffd103b3485e0cb2ac6d0f452b63557955289534ce82642
|
data/lib/help_scout/version.rb
CHANGED
data/lib/help_scout.rb
CHANGED
@@ -97,6 +97,21 @@ class HelpScout
|
|
97
97
|
get("mailboxes")
|
98
98
|
end
|
99
99
|
|
100
|
+
# Public: Get ratings
|
101
|
+
#
|
102
|
+
# More info: http://developer.helpscout.net/help-desk-api/reports/user/ratings/
|
103
|
+
# 'rating' parameter required: 0 (for all ratings), 1 (Great), 2 (Okay), 3 (Not Good)
|
104
|
+
def reports_user_ratings(user_id, rating, start_date, end_date, options)
|
105
|
+
options = {
|
106
|
+
user: user_id,
|
107
|
+
rating: rating,
|
108
|
+
start: start_date,
|
109
|
+
end: end_date,
|
110
|
+
}
|
111
|
+
|
112
|
+
get("reports/user/ratings", options)
|
113
|
+
end
|
114
|
+
|
100
115
|
protected
|
101
116
|
|
102
117
|
def post(path, options = {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: help_scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Paagman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|