survey_monkey_api 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 955ef4b226024f1f08451435898e721793891b86
4
- data.tar.gz: f0dd8d56f74b6d54590ab7b17c7cf80311eb519b
3
+ metadata.gz: 481da2935d60392e67ccb7777922eb0a7c241c46
4
+ data.tar.gz: ef322b12356512f712c1017f88b86afa7359dc77
5
5
  SHA512:
6
- metadata.gz: 7e853e75ed988a9dc338c134dfa8187bd52101d2e10f1f2a36db5b73d83bb294280271e3d3871a03b529aaab2c41511209fc63e7dce0ca1dba22a23fdfac80d5
7
- data.tar.gz: e0ea991ee90d2da68d53280b70a73fac7b31281b211f61b0838f8c7f9a0dc9aabda60862579e417e7390a2b0eb0589e10bb54458acb54ecfd0b492d4e0ee7d19
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
- per_page - Count of objects rendered per page, optional
93
- page - Page ID, optional
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
@@ -1,3 +1,3 @@
1
1
  module SurveyMonkeyApi
2
- VERSION = '0.2.3'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
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.3
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-03 00:00:00.000000000 Z
12
+ date: 2018-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler