vendasta-ri 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vendasta/ri.rb +10 -0
- data/lib/vendasta/ri/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: c6756113992e03902fab5d1a72b8c199596bb4f9
|
4
|
+
data.tar.gz: 296d197fc13d1215df42de9b388205bcf8f5e813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3828243106dc99006cf482f79c154c514fa93cfa71c96122050d8c2975fbdfc683da5ee705475fe2fef583fd16a0d7e7928d19f0cdee04ce0692aa2155b2e934
|
7
|
+
data.tar.gz: 7e0dbd10f9fd1b5fd886471ece12cc8c328b3bc458ac6d3300ac49114d6c655c3dbac3c6c13a15e00119f915ee0c95fb10b74a7de4f3f488b41b7d66b5335214
|
data/lib/vendasta/ri.rb
CHANGED
@@ -135,6 +135,16 @@ module Vendasta
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
138
|
+
def self.searchMentionsType(customerIdentifier, type) # Search Mentions by type
|
139
|
+
response = HTTParty.get("#{OPTIONS[:endpoint]}/mention/search/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier, :type => type})
|
140
|
+
|
141
|
+
if response.success?
|
142
|
+
response = JSON.parse(response.body)
|
143
|
+
else
|
144
|
+
response = JSON.parse(response.body)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
138
148
|
def self.getMention(customerIdentifier, mentionId) # Get Mentions by ID
|
139
149
|
response = HTTParty.get("#{OPTIONS[:endpoint]}/mention/get/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier, :mentionId => mentionId})
|
140
150
|
|
data/lib/vendasta/ri/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vendasta-ri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Vera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|