vendasta-ri 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5d7c091deea5341f1be2471c8c20c5721ce82b7
4
- data.tar.gz: 41608aa365d4444397ec9750ccc7024799559f86
3
+ metadata.gz: c6756113992e03902fab5d1a72b8c199596bb4f9
4
+ data.tar.gz: 296d197fc13d1215df42de9b388205bcf8f5e813
5
5
  SHA512:
6
- metadata.gz: 28b26b65189345f2c4004a7aea424eff30c09f0666260642e89eae519d87fca7f8eb6e122235e94eb800cb4d170adffcaa8caaed441b845584d1487f66ea3ae7
7
- data.tar.gz: 86cc50faa326209cad7c78b708061da58f513a64352457bd2b72c8f25bca26d57f4d492785a771ec02c37d459fd79841e83d01b2d8c380af4d554c32ada0de52
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
 
@@ -1,5 +1,5 @@
1
1
  module Vendasta
2
2
  module Ri
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
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.8
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-07 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler