survey_monkey_api 0.2.3 → 0.2.4
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 +20 -2
- data/lib/surveymonkey/client/surveys.rb +12 -0
- data/lib/surveymonkey/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: 481da2935d60392e67ccb7777922eb0a7c241c46
|
4
|
+
data.tar.gz: ef322b12356512f712c1017f88b86afa7359dc77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0468165f75b73867345ebb4eb6350f3386120bdf91af09c7cbb6f86da3c541d4ea3b32dc0e4a75d4629eaa8843f0017a1267a2c6daf471462ef4c7ae8665fccd'
|
7
|
+
data.tar.gz: 175e0becc14d2a482dcfedf54602c1058c32a5602a94e92cb7e781f640f8aeb7e1ed479b00677d58f489cea00f6904dff1c3b0d9fea34ea4d47c4d04ebda6675
|
data/README.md
CHANGED
@@ -70,6 +70,8 @@ Request for getting list of surveys is #surveys.
|
|
70
70
|
```ruby
|
71
71
|
client.surveys
|
72
72
|
```
|
73
|
+
per_page - Count of objects rendered per page, optional
|
74
|
+
page - Page ID, optional
|
73
75
|
|
74
76
|
#### Responces
|
75
77
|
|
@@ -89,8 +91,24 @@ Request for getting list of surveys is #surveys.
|
|
89
91
|
}
|
90
92
|
}
|
91
93
|
```
|
92
|
-
|
93
|
-
|
94
|
+
|
95
|
+
### Survey
|
96
|
+
|
97
|
+
Request for getting survey's information #survey.
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
client.survey(survey_id)
|
101
|
+
```
|
102
|
+
survey_id - Survey ID, required
|
103
|
+
|
104
|
+
### Survey in details
|
105
|
+
|
106
|
+
Request for getting survey's information #survey_with_details.
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
client.survey_with_details(survey_id)
|
110
|
+
```
|
111
|
+
survey_id - Survey ID, required
|
94
112
|
|
95
113
|
### SurveyResponses
|
96
114
|
|
@@ -9,6 +9,18 @@ module SurveyMonkeyApi
|
|
9
9
|
response = self.class.get('/v3/surveys', query: options)
|
10
10
|
response.parsed_response
|
11
11
|
end
|
12
|
+
|
13
|
+
# Returns surveys's information
|
14
|
+
def survey(survey_id, options = {})
|
15
|
+
response = self.class.get("/v3/surveys/#{survey_id}", query: options)
|
16
|
+
response.parsed_response
|
17
|
+
end
|
18
|
+
|
19
|
+
# Returns surveys's information with details
|
20
|
+
def survey_with_details(survey_id, options = {})
|
21
|
+
response = self.class.get("/v3/surveys/#{survey_id}/details", query: options)
|
22
|
+
response.parsed_response
|
23
|
+
end
|
12
24
|
end
|
13
25
|
end
|
14
26
|
end
|
data/lib/surveymonkey/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: survey_monkey_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JungleCoders
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|