agent_cooper 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,16 @@ module AgentCooper
4
4
  VERSION = '1.9.0'
5
5
 
6
6
  base_uri 'svcs.ebay.com'
7
- default_params 'SECURITY-APPNAME' => Config.app_id,
8
- 'SECURITY-VERSION' => VERSION,
7
+ default_params 'SECURITY-VERSION' => VERSION,
9
8
  'RESPONSE-DATA-FORMAT' => ENCODING,
10
9
  'REST-PAYLOAD' => ''
11
10
 
12
11
  protected
13
12
 
13
+ def credentials
14
+ { 'SECURITY-APPNAME' => Config.app_id }
15
+ end
16
+
14
17
  def path
15
18
  '/services/search/FindingService/v1'
16
19
  end
@@ -13,6 +13,10 @@ module AgentCooper
13
13
 
14
14
  protected
15
15
 
16
+ def credentials
17
+ { 'CONSUMER-ID' => Config.app_id }
18
+ end
19
+
16
20
  def path
17
21
  '/MerchandisingService'
18
22
  end
@@ -23,7 +23,7 @@ module AgentCooper
23
23
  end
24
24
 
25
25
  def get
26
- r = self.class.get(path, :query => options)
26
+ r = self.class.get(path, :query => options.merge(credentials))
27
27
  Response.new(r)
28
28
  end
29
29
  end
@@ -11,6 +11,10 @@ module AgentCooper
11
11
 
12
12
  protected
13
13
 
14
+ def credentials
15
+ { 'APPID' => Config.app_id }
16
+ end
17
+
14
18
  def path
15
19
  '/shopping'
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module AgentCooper
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent_cooper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Closner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-24 00:00:00 -07:00
18
+ date: 2011-05-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency