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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c3549682e84998718c2eea98d0839b7727b1eab
4
- data.tar.gz: '09d30690b5b4a76e1833b6caa6fad9257c364510'
3
+ metadata.gz: b6af1967f37d038aa4f6a5bd653562feaca1204e
4
+ data.tar.gz: 1e45e2bcaa96d4f9740acfde1afac35a780dfcad
5
5
  SHA512:
6
- metadata.gz: 03b30f0816910d19494260cdedf7a1f716b8349c43cdcb640254a69bbd18e9481bb8fbe136ca8eca201dade41d45a7e5d17a3ce09b57e502f89f98c7f04bb1ed
7
- data.tar.gz: ef651b3962ac6ecbcd4610cc70904cd5d25cbfc8b4e3f82ad6a9f23abfe1dd2ddc1c48d81791c560a3401efb0c04cf3a7fe2245c5c5325482b6f235c449c32fd
6
+ metadata.gz: 650b1b0be91dda97ec3021f3b301b80a385a35de8381e7c9d798890f71b0cd1fee9ffe5a0837d3d9e8471ed7761c33a1990291914156abb6b8562233fc52167c
7
+ data.tar.gz: fbe19f818728f695174288bdd6bbe197400f9ed55ad019a8572e491a534b2a113b6c067dc97a4b8b2c468af4a52596dbcee3d160279ed2e2a2682a6cf6164416
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- surveymonkey_api (0.1.0)
4
+ surveymonkey_api (0.2.0)
5
5
  httparty (~> 0.13)
6
6
 
7
7
  GEM
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')
@@ -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 })
@@ -1,3 +1,3 @@
1
1
  module SurveymonkeyApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-09 00:00:00.000000000 Z
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