shanon 0.1.2 → 0.2.0
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/.gitignore +1 -0
- data/README.md +2 -4
- data/bin/console +1 -1
- data/lib/shanon/clients/enquete_client.rb +22 -0
- data/lib/shanon/version.rb +1 -1
- data/lib/shanon.rb +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea43b55b0c79d948fd1f041a103f2ea936940af
|
4
|
+
data.tar.gz: 978c91174eca5dc9303aafe21e85886dbf835b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e164efc1dc09e15f78d98116f6250e2c6436dd8e056877ba45c496ff1dec83f80f0f5acd0c9d05c245737aaf4e4cc0baec14ee4103bd545fcc713c6af4fa6f
|
7
|
+
data.tar.gz: e4ef971859dfe064a9cdd3d6fe3830f34d579c1f94f578ae096e90a6f6244bbae410a3400c42b0249922d995d972adcfa3eecb538fa9ed2818db1b65d19edcc1
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
# Shanon
|
1
|
+
# Shanon Ruby Client [](https://travis-ci.org/takuyan/shanon-ruby)
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A Ruby client for the [Shanon Marketing Platform APIs](http://apidoc.shanon.co.jp/ja/api/).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
data/bin/console
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
module Shanon
|
2
|
+
module Clients
|
3
|
+
# http://apidoc.shanon.co.jp/ja/api/visitor/enquete/get.html
|
4
|
+
class EnqueteClient < Shanon::AbstractClient
|
5
|
+
include Authenticatable
|
6
|
+
|
7
|
+
PATH = '/services/rest/visitor/enquete'.freeze
|
8
|
+
|
9
|
+
def get(opts={})
|
10
|
+
params = params_with_signature(opts)
|
11
|
+
response = conn.get PATH, params
|
12
|
+
parse(response.body)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def parse(xml)
|
18
|
+
::Ox.parse(xml)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/shanon/version.rb
CHANGED
data/lib/shanon.rb
CHANGED
@@ -3,8 +3,9 @@ require 'shanon/version'
|
|
3
3
|
require 'shanon/config'
|
4
4
|
require 'shanon/abstract_client'
|
5
5
|
require 'shanon/authenticatable'
|
6
|
-
|
7
|
-
|
6
|
+
|
7
|
+
# clients
|
8
|
+
Dir[File.join(File.dirname(__FILE__), 'shanon/clients/*_client.rb')].each {|f| require f }
|
8
9
|
|
9
10
|
module Shanon
|
10
11
|
# Your code goes here...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shanon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takuya Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/shanon/abstract_client.rb
|
129
129
|
- lib/shanon/authenticatable.rb
|
130
130
|
- lib/shanon/clients/authentication_client.rb
|
131
|
+
- lib/shanon/clients/enquete_client.rb
|
131
132
|
- lib/shanon/clients/visitor_client.rb
|
132
133
|
- lib/shanon/config.rb
|
133
134
|
- lib/shanon/version.rb
|