surveymonkey_api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/surveymonkey_api.rb +1 -1
- data/lib/surveymonkey_api/client/survey.rb +7 -1
- data/lib/surveymonkey_api/version.rb +1 -1
- metadata +2 -3
- data/lib/surveymonkey_api/survey/page.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6af1967f37d038aa4f6a5bd653562feaca1204e
|
4
|
+
data.tar.gz: 1e45e2bcaa96d4f9740acfde1afac35a780dfcad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650b1b0be91dda97ec3021f3b301b80a385a35de8381e7c9d798890f71b0cd1fee9ffe5a0837d3d9e8471ed7761c33a1990291914156abb6b8562233fc52167c
|
7
|
+
data.tar.gz: fbe19f818728f695174288bdd6bbe197400f9ed55ad019a8572e491a534b2a113b6c067dc97a4b8b2c468af4a52596dbcee3d160279ed2e2a2682a6cf6164416
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,6 +21,8 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
+
You will need an [access token](https://developer.surveymonkey.com/api/v3/#registering-an-app) for the SurveyMonkey API and save the token in an env variable 'SURVEYMONKEY_API_TOKEN'.
|
25
|
+
|
24
26
|
Access a survey:
|
25
27
|
```ruby
|
26
28
|
Surveymonkey::Survey.new('survey_id')
|
data/lib/surveymonkey_api.rb
CHANGED
@@ -8,7 +8,7 @@ require 'surveymonkey_api/response'
|
|
8
8
|
require 'surveymonkey_api/response/page'
|
9
9
|
require 'surveymonkey_api/response/question'
|
10
10
|
require 'surveymonkey_api/response/answer'
|
11
|
-
require 'pry-byebug'
|
11
|
+
# require 'pry-byebug'
|
12
12
|
|
13
13
|
# Top-level module
|
14
14
|
module SurveymonkeyApi
|
@@ -9,12 +9,18 @@ module Surveymonkey
|
|
9
9
|
response.parsed_response
|
10
10
|
end
|
11
11
|
|
12
|
-
# Return survey folders
|
12
|
+
# Return all survey folders
|
13
13
|
def survey_folders(options = {})
|
14
14
|
response = self.class.get("/survey_folders", { query: options })
|
15
15
|
response.parsed_response
|
16
16
|
end
|
17
17
|
|
18
|
+
# Return surveys folder
|
19
|
+
def survey_folder(folder_id, options = {})
|
20
|
+
response = self.class.get("/survey_folders/#{folder_id}", { query: options })
|
21
|
+
response.parsed_response
|
22
|
+
end
|
23
|
+
|
18
24
|
# Return survey details (survey structure)
|
19
25
|
def survey_details(survey_id, options = {})
|
20
26
|
response = self.class.get("/surveys/#{survey_id}/details", { query: options })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: surveymonkey_api
|
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
|
- Carlos
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,7 +105,6 @@ files:
|
|
105
105
|
- lib/surveymonkey_api/response/page.rb
|
106
106
|
- lib/surveymonkey_api/response/question.rb
|
107
107
|
- lib/surveymonkey_api/survey.rb
|
108
|
-
- lib/surveymonkey_api/survey/page.rb
|
109
108
|
- lib/surveymonkey_api/version.rb
|
110
109
|
- surveymonkey_api.gemspec
|
111
110
|
homepage: https://github.com/chdezmar/surveymonkey_api
|
File without changes
|